©
National Instruments Corporation
B-1
SCXI-1102/B/C User Manual
Appendix
B
Calibration Sample Program
This appendix contains a sample program to help you calibrate your
submodule.
Sample Program for Calibration
The following is a sample C program that implements the procedure
discussed in the Gain and Offset Calibration section and
SCXI_Cal_Constants
/*
This sample program assists the user in calibrating the SCXI-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 running this
programed must run the NI-DAQ Configuration Utility to set up the DAQ board
that will communicate with the SCXI-1102.
This program is written for the four-slot SCXI-1000 chassis. The program
prompts for all required configuration information about the SCXI chassis. */
#include <ansi_c.h>
#include <dataacq.h>
#define SCXI1102 30
/* the SCXI-1102 module ID */
#define TWOPOINT
2
#define NIDAQMEM
0
void main()
{
char
entry[4];
int
SCXI_Chassis_ID,
moduleSlot,
/* chassis slot of module
to calibrate */
moduleChan;
long
modulesPresent[] = {-1, -1, -1, -1};
short
operatingModes[] = {0, 0, 0, 0},
connectionMap[] = {0, 0, 0, 0},
commPath,
/* DAQ board that communicates with
SCXI chassis */
dummyRangeCode = 0,
dummyDAQboard,
dummyDAQchan = 0,
dummyDAQgain = 1,