Properties for Status Simulation in IviSwtch

LabVIEW IVI Class Driver

Properties for Status Simulation in IviSwtch

When an IviSwtch driver function is called, the driver queries whether NISSWTCH_ATTR_SIMULATE_STATUS_CODE is enabled. If enabled, the driver gets the appropriate function's simulation status code. If the value of the simulation status code represents a warning (has a positive value), then it is returned as the function's return status only if no other error or warning occurred before the function ends. If the value of the simulation status code represents an error (has a negative value), then it is returned as the function's return status only if no other error occurred before the function ends.

The following IviSwtch VIs do not support status code simulation:

  • IviSwtch Get Error
  • IviSwtch Clear Error
  • IviSwtch Get Next Interchange Warning
  • IviSwtch Reset Next Interchange Warning
  • IviSwtch Clear Next Interchange Warning
  • IviSwtch Get Next Coercion Record

Each VI supported by the IviSwtch class driver has a corresponding property that determines the status code to return when status code simulation is enabled. The following table lists the status code properties and the VI for which they return a value. These properties are all of type ViInt32, non-readable, and non-channel based.

Note  In the following table, the literal string NISSWTCH_ATTR_ precedes all property names.

IviSwtch Properties for Status Simulation

Property VI
INIT_STATUS IviSwtch InitializeIviSwtch Initialize With Options
CLOSE_STATUS IviSwtch Close
RESET_STATUS IviSwtch Reset
SELF_TEST_STATUS IviSwtch Self-Test
ERROR_QUERY_STATUS IviSwtch Error-Query
ERROR_MESSAGE_STATUS IviSwtch Error Message
REVISION_QUERY_STATUS IviSwtch Revision Query
RESET_DEFAULT_STATUS IviSwtch Reset With Defaults
DISABLE_STATUS IviSwtch Disable
INVALIDATE_STATUS IviSwtch Invalidate All Attributes
GET_CH_NAME_STATUS IviSwtch Get Channel Name
CAN_CONNECT_STATUS IviSwtch Can Connect Channels
CONNECT_STATUS IviSwtch Connect Channels
DISCONNECT_STATUS IviSwtch Disconnect Channels
DISCONNECT_ALL_STATUS IviSwtch Disconnect All Channels
GET_PATH_STATUS IviSwtch Get Path
IS_DEBOUNCED_STATUS IviSwtch Switch Is Debounced
SET_PATH_STATUS IviSwtch Set Path
WAIT_FOR_DEBOUNCE_STATUS IviSwtch Wait For Debounce
ABORT_SCAN_STATUS IviSwtch Abort Scan
CONFIGURE_SCAN_LIST_STATUS IviSwtch Configure Scan List
CONFIGURE_SCAN_TRIGGER_STATUS IviSwtch Configure Scan Trigger
INITIATE_SCAN_STATUS IviSwtch Initiate Scan
IS_SCANNING_STATUS IviSwtch Switch Is Scanning
SET_CONTINUOUS_SCAN_STATUS IviSwtch Set Continuous Scan
WAIT_FOR_SCAN_COMPLETE_STATUS IviSwtch Wait For Scan To Complete
SEND_SOFTWARE_TRIGGER_STATUS IviSwtch Send Software Trigger