Attributes for Status Simulation in IviSwtch

CVI/LabWindows IVI Class Driver

Attributes 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 functions do not support status code simulation:

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

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

IviSwtch Attributes for Status Simulation

Attribute Function
INIT_STATUS IviSwtch_init, IviSwtch_InitWithOptions
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_ResetWithDefaults
DISABLE_STATUS IviSwtch_Disable
INVALIDATE_STATUS IviSwtch_InvalidateAllAttributes
GET_CH_NAME_STATUS IviSwtch_GetChannelName
CAN_CONNECT_STATUS IviSwtch_CanConnect
CONNECT_STATUS IviSwtch_Connect
DISCONNECT_STATUS IviSwtch_Disconnect
DISCONNECT_ALL_STATUS IviSwtch_DisconnectAll
GET_PATH_STATUS IviSwtch_GetPath
IS_DEBOUNCED_STATUS IviSwtch_IsDebounced
SET_PATH_STATUS IviSwtch_SetPath
WAIT_FOR_DEBOUNCE_STATUS IviSwtch_WaitForDebounce
ABORT_SCAN_STATUS IviSwtch_AbortScan
CONFIGURE_SCAN_LIST_STATUS IviSwtch_ConfigureScanList
CONFIGURE_SCAN_TRIGGER_STATUS IviSwtch_ConfigureScanTrigger
INITIATE_SCAN_STATUS IviSwtch_InitiateScan
IS_SCANNING_STATUS IviSwtch_IsScanning
SET_CONTINUOUS_SCAN_STATUS IviSwtch_SetContinuousScan
WAIT_FOR_SCAN_COMPLETE_STATUS IviSwtch_WaitForScanComplete
SEND_SOFTWARE_TRIGGER_STATUS IviSwtch_SendSoftwareTrigger