When to use the instrument specific interfaces |
Top Previous Next |
As the name implies, the instrument-specific capabilities are those methods and properties that are unique to the instrument. In practice, the instrument-specific portion of the driver exposes the full functionality of the instrument -- including functionality that may also be available in the class-compliant capabilities. Users that do not care about interchangeability or that need to access functionality that is not defined by IVI will use the instrument-specific interfaces in application programs. •When the required functionality is not exposed in the class-compliant interfaces. •When interchangeability is not a requirement. •When performance is critical. Sometimes a driver may perform better using the instrument specific interfaces because they match the instrument functionality more closely than the class-compliant interfaces. ExampleThe following example demonstrates accessing instrument-specific function on the driver. Note that instrument-specific function calls are always prefixed with the instrument-specific prefix ("Btn55xxx"). In contrast, calls to IVI-defined class-compliant functions are prefixed with the IVI class name.
Using both the class driver and specific driverWhen programming against the class driver, it is possible to get access to the specific driver session that is used internally by the class driver. This allows the client program to talk directly to the specific driver. ExampleThe following client code uses the class driver and the specific driver.
|