CNiIviDcPwrOutput::QueryOutputState

Measurement Studio IVI

Class
CNiIviDcPwrOutput::
QueryOutputState()
Base ClassesData ItemsFunctionsGo to hierarchy chart    Prev page: QueryCurrentLimitMaxNext page: QueryVoltageLevelMax    
Public Function Declared in:
NiIviDcPwr.h

'Declaration' icon -- Shortcut to top of page. Declaration

inline bool QueryOutputState(
    const CString &channelName,
    long outputState);

'Description' icon -- Shortcut to top of page. Description

Returns whether the power supply is in a particular output state.

Shortcut to top of page. Parameters

const CString &channelName

The channel on which to query the output state.

long outputState

The output state for which you want to query.

The following list includes valid values:

  • CNiIviDcPwr::ConstantVoltage - A constant voltage condition occurs when the output voltage is equal to the value of the VoltageLevel property and the current is less than or equal to the value of the CurrentLimit property.
  • CNiIviDcPwr::ConstantCurrent - A constant current condition occurs when the output current is equal to the value of the CurrentLimit property and the CurrentLimitBehavior property is set to CNiIviDcPwr::RegulateCurrent.
  • CNiIviDcPwr::OverVoltage - An over-voltage condition occurs when the output voltage is equal to or greater than the value of the OvpLimit property and the OvpEnabled property is true.
  • CNiIviDcPwr::OverCurrent - An over-current condition occurs when the output current is equal to or greater than the value of the CurrentLimit property and the CurrentLimitBehavior property is set to CNiIviDcPwr::TripCurrent.
  • CNiIviDcPwr::Unregulated - An unregulated condition occurs when the output voltage is less than the value of the VoltageLevel and the current is less than the value of the CurrentLimit property.

'See Also' icon -- Shortcut to top of page. See Also