Properties for Status Simulation in IviDCPwr

LabVIEW IVI Class Driver

Properties for Status Simulation in IviDCPwr

When an IviDCPwr driver function is called, the driver queries whether NISDCPWR_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 IviDCPwr VIs do not support status code simulation:

  • IviDCPwr Get Error
  • IviDCPwr Clear Error
  • IviDCPwr Get Next Interchange Warning
  • IviDCPwr Reset Next Interchange Warning
  • IviDCPwr Clear Next Interchange Warning
  • IviDCPwr Get Next Coercion Record

Each VI supported by the IviDCPwr 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 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 NISDCPWR precedes all property names.

IviDCPwr Properties for Status Simulation

Property VI
INIT_STATUS IviDCPwr InitializeIviDCPwr Initialize With Options
CLOSE_STATUS IviDCPwr Close
RESET_STATUS IviDCPwr Reset
SELF_TEST_STATUS IviDCPwr Self-Test

ERROR_QUERY_STATUS

IviDCPwr Error-Query

ERROR_MESSAGE_STATUS

IviDCPwr Error Message
REVISION_QUERY_STATUS IviDCPwr Revision Query
RESET_DEFAULT_STATUS IviDCPwr Reset With Defaults
DISABLE_STATUS IviDCPwr Disable
INVALIDATE_STATUS IviDCPwr Invalidate All Attributes
GET_CH_NAME_STATUS IviDCPwr Get Channel Name
CONFIGURE_OUTPUT_ENABLED_STATUS IviDCPwr Configure Output Enabled
CONFIGURE_OUTPUT_RANGE_STATUS IviDCPwr Configure Output Range
CONFIGURE_CURRENT_LIMIT_STATUS IviDCPwr Configure Current Limit
CONFIGURE_OVP_STATUS IviDCPwr Configure OVP
CONFIGURE_VOLTAGE_LEVEL_STATUS IviDCPwr Configure Voltage Level
QUERY_OUTPUT_STATE_STATUS IviDCPwr Query Output State
QUERY_MAX_CURRENT_LIMIT_STATUS IviDCPwr Query Max Current Limit
QUERY_MAX_VOLTAGE_LEVEL_STATUS IviDCPwr Query Max Voltage Level
RESET_OUTPUT_PROTECTION_STATUS IviDCPwr Reset Output Protection
CONFIGURE_TRIGGER_SOURCE_STATUS IviDCPwr Configure Trigger Source
CONFIGURE_TRIGGERED_VOLTAGE_LEVEL_STATUS IviDCPwr Configure Triggered Voltage Level
CONFIGURE_TRIGGERED_CURRENT_LIMIT_STATUS IviDCPwr Configure Triggered Current Limit
ABORT_STATUS IviDCPwr Abort
INITIATE_STATUS IviDCPwr Initiate
SEND_SOFTWARE_TRIGGER_STATUS IviDCPwr Send Software Trigger
MEASURE_STATUS IviDCPwr Measure