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

Note

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

NameTypeDescription
channelStringstring

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.

outputStateDCPowerMeasurementOutputState

Specifies the outputState of the channel that is being queried.

Returns

Returns whether the specified channel is in the specified state.