Chapter 2 Function Reference — Calibrate_DS A
©
National Instruments Corporation 2-55 NI-DAQ FRM for PC Compatibles
Calibrate_DSA
Format
status = Calibrate_DSA (deviceNumber, operation, refVoltage)
Purpose
Use this function to calibrate your DSA device.
Parameters
Input
Parameter Discussion
The legal range for operation is given in terms of constants defined in a header file. The header
file you should use depends on the language you are using:
C programmers—NIDAQCNS.H (DATAACQ.H) for LabWindows/CVI)
BASIC programmers—NIDAQCNS.INC Visual Basic for Windows programmers
should refer to the Programming Language Considerations section in Chapter 1,
Using the NI-DAQ Functions, for more information.
Pascal programmers—NIDAQCNS.PAS
operation determines the operation to be performed.
Range:
ND_SELF_CALIBRATESelf-calibrates the device.
ND_EXTERNAL_CALIBRATEExternally calibrates the device.
ND_RESTORE_FACTORY_CALIBRATIONCalibrates the device using internal factory
reference.
refVoltage is the value of the DC calibration voltage connected to analog input channel 0
when operation is ND_EXTERNAL_CALIBRATE. This parameter is ignored when operation is
set to ND_EXTERNAL_CALIBRATE or ND_RESTORE_FACTORY_CALIBRATION.
Range:+1.0 to +9.99 V.
To achieve the highest accuracy, use a reference voltage between +5.0 and +9.99 V.
Name Type Description
deviceNumber i16 assigned by configuration utility
operation u32 operation to be performed
refVoltage f64 DC calibration voltage