Appendix B
Calibration Sample Program
SCXI-1102/B/C User Manual
B-4
©
National Instruments Corporation
SCXI_Cal_Constants(SCXI_Chassis_ID, moduleSlot, moduleChan,
TWOPOINT, NIDAQMEM, dummyRangeCode, gain,
dummyDAQboard, dummyDAQchan, dummyDAQgain, 1,
vinput1, bin_output1, vinput2, bin_output2,
&bin_offset, &gainerr);
/* Calculate offset and gain
error. */
offset = bin_offset / scale;
/* Convert from DAQ board
format. */
printf("Calculated offset %f V, gain error %f%% ", offset,
gainerr);
printf("and stored in NI-DAQ memory.\n\n");
}
}
}