![]() |
QueryOutputState()






Public Function |
Declared in: NiIviDcPwr.h |
Declaration
inline bool QueryOutputState( const CString &channelName, long outputState);
Description
Returns whether the power supply is in a particular output state.
Parameters
const CString &channelName
long outputState
The channel on which to query the output state.
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.