National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference SCXI_Cal_Constants
NI-DAQ FRM for PC Compatibles 2-322
©
National Instruments Corporation
SCXI_Cal_Constants
Format
status = SCXI_Cal_Constants (SCXIchassisID, moduleSlot, channel, opCode, calibrationArea,
rangeCode, SCXIgain, DAQboard, DAQchan, DAQgain,
TBgain, scaled1, binary1, scaled2, binary2, calConst1,
calConst2)
Purpose
Calculates calibration constants for the given channel and range or gain using measured input
value/binary pairs. You can use this with any SCXI analog input or analog output module. The
constants can be stored and retrieved from NI-DAQ memory or the module EEPROM (if your
module has an EEPROM). The driver uses the calibration constants to more accurately scale
analog input data when you use the
SCXI_Scale function and output data when you use
SCXI_AO_Write.
Parameters
Input
Name Type Description
SCXIchassisID i16 SCXI chassis ID number
moduleSlot i16 SCXI module slot number
channel i16 analog input or output channel number
opCode i16 operation to perform with the calibration
constants
calibrationArea i16 where to store or retrieve constants
rangeCode i16 the voltage/current range for the analog output
channel
SCXIgain f64 gain setting for the SCXI analog input channel
DAQboard i16 device number of DAQ device used to acquire
binary1 and binary2
DAQchan i16 DAQ device channel number used when acquiring
binary1 and binary2
DAQgain i16 DAQ device gain code used when acquiring
binary1 and binary2