Properties for Status Simulation in IviCounter
When an IviCounter driver VI is called, the driver queries whether NISCOUNTER_ATTR_SIMULATE_STATUS_CODE is enabled. If NISCOUNTER_ATTR_SIMULATE_STATUS_CODE is enabled, the driver gets the simulation status code for the appropriate VI. If the value of the simulation status code represents a warning, meaning it has a positive value, then the status code is returned as the VI's return status only if no other error or warning occurred before the VI ends. If the value of the simulation status code represents an error, meaning it has a negative value, then the status code is returned as the VI's return status only if no other error occurred before the VI ends.
The following IviCounter VIs do not support status code simulation:
- IviCounter Get Next Interchange Warning
- IviCounter Reset Next Interchange Warning
- IviCounter Clear Next Interchange Warning
- IviCounter Get Next Coercion Record
Each VI supported by the IviCounter 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 the property returns a value. These properties are all of type 32-bit signed integers, non-readable, and non-channel based.
Note In the following table, the literal string NISCOUNTER_ATTR_ precedes all property names. |