Chapter 5
Calibration
©
National Instruments Corporation
5-37
VXI-SC-1102 User Manual
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. */
01Title.book : 09Ch5.frm Page 37 Friday, March 21, 1997 3:40 PM