niDCPower_CalAdjustVoltageLevel

NI-DCPower Function Reference

niDCPower_CalAdjustVoltageLevel

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

Purpose

Calculates the calibration constants for the voltage level for the specified output channel. This function compares the array in requestedOutputs to the array in measuredOutputs and calculates the calibration constants for the voltage level of the output channel. Refer to the calibration procedure of the device you are calibrating for detailed instructions on the appropriate use of this function. This function can only be called in an external calibration session.

Parameters

Input
Name Type Description
vi ViSession Identifies a particular instrument calibration session. vi is obtained from the niDCPower_InitExtCal function.
channelName ViConstString Specifies the output channel 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 requested in the niDCPower_ConfigureVoltageLevel 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.