QueryState(string, DCPowerMeasurementOutputState)
- 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
Namespace: NationalInstruments.ModularInstruments.NIDCPower
public bool QueryState(string channelString, DCPowerMeasurementOutputState outputState)
Remarks
NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively.
The default value is ConstantVoltage.
Parameters
| Name | Type | Description |
|---|---|---|
| channelString | string | 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 PXI1Slot3 is the instrument resource name and 0 is the channel. |
| outputState | DCPowerMeasurementOutputState | Specifies the outputState of the channel that is being queried. |
Returns
Returns whether the specified channel is in the specified state.