Attributes for IviSwtch Simulation
Two sets of attributes exist for use with the IviSwtch Simulation Driver. The following table describes attributes that control behavior of the driver. Another table lists attributes that simulate the status of specific driver functions.
Attributes for Controlling IviSwtch Simulation
Name | Data Type | Access | Applies To | Description |
---|---|---|---|---|
INTERACTIVE_SIMULATION | ViBoolean | W | N/A | Specifies whether to set the driver to interactive mode. In interactive mode, the simulation driver provides you with pop-up user interface panels in which to enter information. Non-interactive mode is useful when you do not want the interactive panels to interrupt your test program. |
SELF_TEST_CODE | ViInt32 | W | N/A | Specifies the self-test code. When the IviSwtch_self_test function is called, the self-test code parameter (second parameter) returns this value. |
SELF_TEST_MSG | ViString | W | N/A | Specifies the self-test message. When the IviSwtch_self_test function is called, the self-test message parameter (third parameter) returns this string. |
ERROR_QUERY_CODE | ViInt32 | W | N/A | Specifies the error-query code. When the IviSwtch_error_query function is called, the error-query code parameter (second parameter) returns this value. |
ERROR_QUERY_MSG | ViString | W | N/A | Specifies the error-query message. When the IviSwtch_error_query function is called, the error-query message parameter (third parameter) returns this string. |
DRIVER_REV_QUERY | ViString | W | N/A | Specifies the instrument driver revision message. When the IviSwtch_revision_query function is called, the instrument driver revision message parameter (second parameter) returns this string. |
INSTR_REV_QUERY | ViString | W | N/A | Specifies the firmware revision message. When the IviSwtch_revision_query function is called, the firmware revision message parameter (third parameter) returns this string. |
SIMULATE_STATUS_CODE | ViBoolean | W | N/A | Specifies whether to simulate return codes from the IviSwtch driver functions. Refer to the IviSwtch Attributes for Status Simulation table. |