niDCPower_QueryOutputState

NI DC Power Supplies and SMUs Help (NI-DCPower)

Edition Date: January 2018

Part Number: 370736U-01

View Product Info

DOWNLOAD (Windows Only)


NI-DCPower (English | Japanese)

ViStatus niDCPower_QueryOutputState(ViSession vi, ViConstString channelName, ViInt32 outputState, ViBoolean *inState);

Purpose

Queries the specified output channel to determine if the output channel is currently in the state specified by outputState.

Related Topics:

Compliance

Parameters

Input
Name Type Description
vi ViSession Identifies a particular instrument session. vi is obtained from the niDCPower_InitializeWithChannels function.
channelName ViConstString Specifies the output channel to query. The output state may only be queried for one channel at a time.
outputState ViInt32 Specifies the output state of the output channel that is being queried.

Defined Values:
NIDCPOWER_VAL_OUTPUT_CONSTANT_VOLTAGE (0)The device maintains a constant voltage by adjusting the current.
NIDCPOWER_VAL_OUTPUT_CONSTANT_CURRENT (1)The device maintains a constant current by adjusting the voltage.
Output
Name Type Description
inState ViBoolean* Returns whether the device output channel is in the specified output state.

Return Value

Name Type Description
StatusViStatusReports the status of this operation. To obtain a text description of the status code, call the niDCPower_error_message function. To obtain additional information concerning the error condition, call the niDCPower_GetError function.

WAS THIS ARTICLE HELPFUL?

Not Helpful