Chapter 5
Calibration
VXI-SC-1102 User Manual
5-36
©
National Instruments Corporation
When you make a measurement using LabVIEW, ComponentWorks, or
VirtualBench, the driver automatically uses the calibration constants to
correct the measured voltages.
When you use application development environments other than
LabVIEW, ComponentWorks, or VirtualBench, you have the option to
apply the calibration constants to measured voltages through the NI-DAQ
API.
Sample Program for Calibration
The following sample C program will help you calibrate the
VXI-SC-1102. The calibration constants are stored only in NI-DAQ
memory. The (input, output) voltage pairs read by a DMM must be
entered by hand. Before this program is run, the NI-DAQ Configuration
Utility must be run to configure the VXI-SC chassis and to configure
the DAQ board which will be used to communicate with the
VXI-SC-1102.
The program is written to work for a DAQ board, such as the
VXI-MIO-64E-1, with a 5 V full-scale input.
#include <stdio.h>
#include <math.h>
#include <dataacq.h>
#define MIO_FULL_SCALE
5.0
/* valid for VXI-MIO-64E-1 */
#define N_VXI_SC_SLOTS
24
#define NIDAQMEM
0
#define ALL
-1
int
enterInt (char *prompt)
{
short
ret;
int
value;
Содержание VXI-SC-1000
Страница 1: ...VXI SC 1000...