
Advanced Topics
107
•
•
•
•
•
•
and contains the commands and functions necessary to communicate with the
instrument. You can use the software module entry data to locate the component
on your system and determine what instrument models and class interfaces (called
Published APIs in the configuration server) are supported by the component.
HardwareAsset
:
A
HardwareAsset
describes a specific physical device in your
system with which you communicate such as an oscilloscope or power supply. The
HardwareAsset
includes a resource descriptor – a string that specifies the I/O
interface and address of a hardware asset, such as GPIB::23::INSTR.
DriverSession
:
A
DriverSession
provides the information needed to use a
driver in a particular context. It makes the association between a
SoftwareModule
and a
HardwareAsset
. It defines a set of properties for use
by IVI instrument driver software modules, such as initial configurable settings for
attributes, virtual name mappings, and simulation settings. You can configure a
DriverSession
for each instrument, for each of its possible I/O resource
descriptors, and for each program that uses it.
LogicalName
:
A
LogicalName
is a configurable pointer to a particular
DriverSession
. Application programs use logical names to avoid direct
references to software modules and hardware assets. In a typical setup, the
application communicates with an instrument via a logical name. If the application
needs to communicate with a different instrument (for example, the same kind of
scope at a different location), only the logical name within the IVI Configuration
Store needs to be updated to point to the new driver session. You don’t need to
rewrite any code in the application, because it uses the same logical name.
The illustration below shows how the IVI Configuration Store enables
interchangeability. The application is developed and makes calls via the logical
name. In the illustration, this is shown as DMM. The actual DMM is from
Vendor X at address GPIB1::21::INSTR and uses the Vendor X DMM IVI-COM
driver. In the Configuration Store, the logical name DMM is associated with a
Driver Session that is configured to the specific information of the Vendor X
DMM.
Kommentare zu diesen Handbüchern