Status Code Simulation
You use the dialog box shown below to configure the status code for a simulation. You can access this view in the IviDmm, the IviDCPwr, or the IviScope Simulator Setup dialog boxes. In this case, you see the Simulator Setup dialog box for IviScope.
To configure the status code simulation, select Status Code Simulation from the View ring control.
Scroll down to see a description of each control.
Status Code Simulation View
The Status Code Simulation view is the same for all simulation drivers. The Status Code Simulation view has the following controls:
Simulate Status Codes
This control lists all of the class driver functions that the selected instrument specific driver supports. The list also indicates each function's associated simulation status code in both macro name form and in hexadecimal value form. You use the Status Code Macro and Custom Status Code controls to modify simulation status codes.
Setting this control has the same effect as configuring the PREFIX_ATTR_SIMULATE_STATUS_CODES attribute on the Initial Settings tab of IVI Drivers»Advanced»Simulation Driver Sessions»nisIviClass in MAX or in the simulation interactive panels.-
Status Code Macro
This control allows you to change the simulation status code of the currently selected function. Setting this control to the custom status code option sets the value you placed in the Custom Status Code control as the function's simulated status code.
If you select Custom Status Code, you can configure a custom status code in the Custom Status Code control. Custom Status Code
This control lets you specify a custom status code to simulate for a particular function.Reset all to VI_SUCCESS
This control resets all of the class driver functions' simulation status codes to VI_SUCCESS (0).
Configuring simulated status codes with this dialog box has the same effect as configuring the corresponding simulated status code attributes on the Initial Settings tab of IVI Drivers»Advanced»Simulation Driver Sessions»nisIviClass in MAX or in the simulation interactive panels.
Related Topics
Attributes for Controlling IviDmm Simulation | Attributes for Controlling IviScope Simulation |
Attributes for Controlling IviFgen Simulation | Attributes for Controlling IviSwtch Simulation |
Attributes for Controlling IviDCPwr Simulation |