NI-DCPower C Function Reference Help

niDCPower_QueryMaxVoltageLevel

  • Updated2023-04-15
  • 1 minute(s) read

ViStatus niDCPower_QueryMaxVoltageLevel(ViSession vi, ViConstString channelName, ViReal64 currentLimit, ViReal64 *maxVoltageLevel);

Purpose

Queries the maximum voltage level on an output channel if the output channel is set to the specified currentLimit.

Parameters

Input
Name Type Description
vi ViSession Identifies a particular instrument session. vi is obtained from the niDCPower_InitializeWithIndependentChannels function.
channelName ViConstString Specifies the output channel to query. The maximum voltage level 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.

currentLimit ViReal64 Specifies the current limit to use when calculating the maxVoltageLevel.
Output
Name Type Description
maxVoltageLevel ViReal64* Returns the maximum voltage level that can be set on an output channel with the specified currentLimit.

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.

Log in to get a better experience