Properties for Status Simulation in IviScope
When an IviScope driver function is called, the driver queries whether NISSCOPE_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 return 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 IviScope VIs do not support status code simulation:
- IviScope Get Error
- IviScope Clear Error
- IviScope Get Next Interchange Warning
- IviScope Reset Next Interchange Warning
- IviScope Clear Next Interchange Warning
- IviScope Get Next Coercion Record
Each VI supported by the IviScope class driver has a corresponding property that determines the status code to return when status code simulation is enabled. The following list indicates 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 NISSCOPE_ATTR_ precedes all property names. |