
Example: Positive
Current Compliance
This program checks the MEASURED current output from the DAC
channel being tested. If the DC SOURCE voltage is
≥
13.0V when the
output current drops to 90% of maximum current, the program generates a
"Test PASSED" indication. If the DC SOURCE voltage is < 13.0V when
the output current drops to 90% of maximum current, the program generates
a "Test FAILED" indication.
if (value >= 15)
pass = "PASSED";
else
pass = "FAILED";
printf("\n\nMaximum channel %u output = %.1f volts", chan, value);
printf("\nTest %s for channel %u\n", pass, chan);
}
iclose (id);
/* Close instrument session */
}
/* Positive Current Compliance 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 source = 0, value = 0, result = 0;
int chan;
char *pass;
#if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin();
#endif
ionerror(I_ERROR_EXIT);
/* Exit on error */
id = iopen (ADDR);
/* Open instrument session */
for(chan = 1; chan <= 4; chan++)
{
iprintf (id, "CAL%u:STAT OFF\n", chan);
iprintf (id, "CURR%u MAX\n", chan);
Appendix B
Verification Tests - C Programs 63
Содержание 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 ...