Example: Current Accuracy Measurements - HP E1328A Service Manual

4-channel d/a converter
Hide thumbs Also See for E1328A:
Table of Contents

Advertisement

Example: Current
Accuracy
Measurements
66 Verification Tests - C Programs
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);
}
This program checks the MEASURED output current on each DAC channel
and compares the result with the 1-year accuracy specifications for the DAC.
/* Current Accuracy Measurements Test
#include <stdio.h>
#include <math.h>
#include <sicl.h>
#define ADDR "hpib7,9,9"
void main ()
{
INST id;
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);
id = iopen (ADDR);
iprintf (id, "*RST\n");
for(chan = 1; chan <= 4; chan++)
/* Close instrument session */
E1328A */
/* Address of device */
/* Define id as an instrument */
/* Exit on error */
/* Open instrument session */
Appendix B

Advertisement

Table of Contents
loading

Table of Contents