niDCPower_CalAdjustCurrentMeasurement

NI-DCPower Function Reference

niDCPower_CalAdjustCurrentMeasurement

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

Purpose

Calibrates the current measurements returned by the niDCPower_Measure function for the specified output channel. This function calculates the calibration constants for the array in reportedOutputs to the array in measuredOutputs and calculates the calibration constants for the current measurements returned by the niDCPower_Measure function. Refer to the calibration procedure for the device you are calibrating for detailed instructions about 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 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 reportedOutputs and measuredOutputs.
reportedOutputs ViReal64[] Specifies an array of the output values that were returned by the niDCPower_Measure 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.