niDCPower_CalAdjustCurrentLimit

NI-DCPower Function Reference

niDCPower_CalAdjustCurrentLimit

ViStatus niDCPower_CalAdjustCurrentLimit (ViSession vi, ViConstString channelName, ViReal64 range, ViUInt32 numberOfMeasurements, ViReal64 requestedOutputs[], ViReal64 measuredOutputs[]);

Purpose

Calculates the calibration constants for the current limit for the specified output channel and range. This function compares the array in requestedOutputs to the array in measuredOutputs and calculates the calibration constants for the current limit returned by the device. Refer to the calibration procedure for the power supply you are calibrating for detailed instructions on the appropriate use of this function. This function can only be called from an external calibration session.

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 channel name to which these calibration settings apply.
range ViReal64 Specifies the range to calibrate with these settings. Only one channel at a time may be calibrated.
numberOfMeasurements ViUInt32 Specifies the number of elements in requestedOutputs and measuredOutputs.
requestedOutputs ViReal64[] Specifies an array of the output values that were requested in the niDCPower_ConfigureCurrentLimit function.
measuredOutputs ViReal64[] Specifies an array of the output values measured by an external precision digital multimeter.

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.