Appendix B Calibration Sample Program
VXI-SC-1102/B/C User Manual B-2
©
National Instruments Corporation
do
{
fputs(prompt, stdout);
fflush(stdin);
ret = scanf("%d", &value);
} while (!ret);
return (value);
}
double
enterFloat (char *prompt)
{
short
ret;
double
value;
do
{
fputs(prompt, stdout);
fflush(stdin);
ret = scanf("%lf", &value);
} while (!ret);
return (value);
}
void
main()
{
int
vxiChassisID,
commPath,
moduleSlot, /* slot of module to calibrate */
moduleChan;
short
dummyRangeCode = 0,
dummyDAQboard,
dummyDAQchan = 0,
dummyDAQgain = 1,
dummyDAQrange; /* These dummy variables would be
used if the measurement actually
came from a DAQ board and not an
external DMM. */