DAQmxAdjustDSAAOCal

NI-DAQmx C Functions

DAQmxAdjustDSAAOCal

int32 DAQmxAdjustDSAAOCal (uInt32 calHandle, uInt32 channel, float64 requestedLowVoltage, float64 actualLowVoltage, float64 requestedHighVoltage, float64 actualHighVoltage, float64 gainSetting);

Purpose

Adjusts the external calibration constants for the analog output section of a DSA device. You must use the device to generate a high voltage and low voltage at a specified gain, measure the high and low voltages, then specify the requested high voltage, low voltage, and gain along with the actual high voltage and low voltage.

Parameters

Input
Name Type Description
calHandle uInt32 A reference to the calibration session that you created using the DAQmxInitExtCal function.
channel uInt32 The number of the channel to calibrate. This number is the numeric portion of the physical channel name, not the full physical channel name.
requestedLowVoltage float64 The low voltage you attempted to generate at the gain setting you specified.
actualLowVoltage float64 The actual low voltage as measured by an external sensor.
requestedHighVoltage float64 The high voltage you attempted to generate at the gain setting you specified.
actualHighVoltage float64 The actual high voltage as measured by an external sensor.
gainSetting float64 The gain setting you used when you attempted to generate the requested high voltage and requested low voltage.

Return Value

Name Type Description
status int32 The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error.