niDCPower_QueryOutputState
- Updated2025-10-06
- 1 minute(s) read
Queries the specified channel to determine if the channel is currently in the state specified by outputState.
Syntax
ViStatus _VI_FUNC niDCPower_QueryOutputState(ViSession vi, ViConstString channelName, ViInt32 outputState, ViBoolean *inState)
Parameters
| Name | Direction | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| vi | [in] | ViSession | Identifies a particular instrument session. vi is obtained from the niDCPower_InitializeWithIndependentChannels function. | |||||||||||||||||||||
| channelName | [in] | ViConstString | Specifies the channel to query. The output state may only be queried for one channel at a time. Specify the channel using the form PXI1Slot3/0, where is the instrument resource name and 0 is the channel. | |||||||||||||||||||||
| outputState | [in] | ViInt32 | Specifies the output state of the channel that is being queried. Defined Values:
| |||||||||||||||||||||
| inState | [out] | ViBoolean * | Returns whether the specified channel is in the specified output state. |
Returns
Reports the status of this operation. To obtain a text description of the status code, call niDCPower_error_message. To obtain additional information concerning the error condition, call niDCPower_GetError. The general meaning of the status code is as follows:
Value | Meaning |
|---|---|
0 | Success |
Positive Values | Warnings |
Negative Values | Errors |