Attributes for IviDmm Simulation
Two sets of attributes exist for use with the IviDmm Simulation Driver. The following table describes attributes that control behavior of the driver. Another table lists attributes that simulate the status of specific driver functions.
An IviDmm Simulator Setup Dialog Box exists to help you configure the measurement simulation for the IviDmm Simulator driver.
Attributes for Controlling IviDmm Simulation
Name |
Data Type |
Access |
Applies To |
Description |
INTERACTIVE_SIMULATION |
ViBoolean |
W |
N/A |
Specifies whether to set the driver to interactive mode. In interactive mode, the simulation driver provides you with pop-up user interface panels in which to enter information. Non-interactive mode is useful when you do not want the interactive panels to interrupt your test program. |
SELF_TEST_CODE |
ViInt32 |
W |
N/A |
Specifies the self-test code. When the IviDmm_self_test function is called, the self Test Code parameter (second parameter) returns this value. |
SELF_TEST_MSG |
ViString |
W |
N/A |
Specifies the self-test message. When the IviDmm_self_test function is called, the self Test Message parameter (third parameter) returns this string. |
ERROR_QUERY_CODE |
ViInt32 |
W |
N/A |
Specifies the error-query code. When the IviDmm_error_query function is called, the error Query Code parameter (second parameter) returns this value. |
ERROR_QUERY_MSG |
ViString |
W |
N/A |
Specifies the error-query message. When the IviDmm_error_query function is called, the error Query Message parameter (third parameter) returns this string. |
DRIVER_REV_QUERY |
ViString |
W |
N/A |
Specifies the instrument driver revision message. When the IviDmm_revision_query function is called, the instrument driver revision message parameter (second parameter) returns this string. |
INSTR_REV_QUERY |
ViString |
W |
N/A |
Specifies the firmware revision message. When the IviDmm_revision_query function is called, the firmware revision message parameter (third parameter) returns this string. |
READING_BASE |
ViReal64 |
W |
N/A |
Specifies the base value of all computer generated measurements. Simulated measurements fall between the range of this value plus the value of the NISDMM_ATTR_READING_NOISE attribute and this value minus the value of the NISDMM_ATTR_READING_NOISE attribute.
|
Note This attribute is ignored if the NISDMM_ATTR_FORCE_OVERRANGE attribute is set to VI_TRUE. |
|
READING_NOISE |
ViReal64 |
W |
N/A |
Specifies the reading noise of all computer generated measurements. Simulated measurements fall between the range of the value of the NISDMM_ATTR_READING_BASE attribute plus this value and the value of the NISDMM_ATTR_READING_BASE attribute minus the this value.
|
Note This attribute is ignored if the NISDMM_ATTR_FORCE_OVERRANGE attribute is set to VI_TRUE |
|
FORCE_OVERRANGE |
ViBoolean |
W |
N/A |
Specifies whether to return and overrange value for all computer-generated measurements. When enabled, all measurement functions simulate a measurement overload condition by returning a value of IVI_VAL_NAN as the measurement and an overrange warning as the status code. |
SIMULATE_STATUS_CODE |
ViBoolean |
W |
N/A |
Specifies whether to simulate return codes from the IviDmm driver functions. Refer to the IviDmm Attributes for Status Simulation table. |
Related Topic
Setting Up Simulated Errors
Setting Up Simulation for VXIplug&play