
Example: Current
Accuracy
Measurements
This program checks the MEASURED output current on each DAC channel
and compares the result with the 1-year accuracy specifications for the DAC.
if ((meas < llim) || (meas > ulim))
printf ("Test FAILED on channel %u for %.1f V", chan, volts[i]);
else
printf ("Test PASSED on channel %u for %.1f V", chan, volts[i]);
}
}
printf ("Voltage Accuarcy Tests Complete");
iclose (id);
/* Close instrument session */
}
/* Current Accuracy Measurements Test E1328A */
#include <stdio.h>
#include <math.h>
#include <sicl.h>
#define ADDR "hpib7,9,9"
/* Address of device */
void main ()
{
INST id;
/* Define id as an instrument */
float amps[9] = {-.02, -.016, -.01, -.004, 0, .004, .01, .016, .02};
float acc, ulim, llim, meas;
int chan,i;
#if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin();
#endif
ionerror(I_ERROR_EXIT);
/* Exit on error */
id = iopen (ADDR);
/* Open instrument session */
iprintf (id, "*RST\n");
for(chan = 1; chan <= 4; chan++)
66 Verification Tests - C Programs
Appendix B
Содержание E1328A
Страница 4: ...Notes 4 Contents HP E1328A Service Manual ...
Страница 46: ...Figure 6 7 HP E1328A DAC Replaceable Parts 46 Replaceable Parts Chapter 6 ...
Страница 48: ...48 Manual Changes Chapter 7 ...
Страница 54: ...54 Service Chapter 8 ...
Страница 60: ...60 Calculating D A Converter Accuracy Appendix A ...