niDCPower_QueryMaxVoltageLevel

NI-DCPower Function Reference

niDCPower_QueryMaxVoltageLevel

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_init or niDCPower_InitWithOptions function.
channelName ViConstString Specifies the output channel to query. The maximum voltage level may only be queried for one channel at a time.
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.