
Performance
Verification
Tests
These programs are designed to do the Performance Verification Tests
found in Chapter 4 - Verification Tests.
Example: Voltage
Accuracy
Measurements
This program checks the MEASURED output voltage on each DAC
channel and compares the result with the 1-year accuracy specifications for
the DAC.
/* Voltage 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 volts[9] = {-10, -8, -5, -2, 0, 2, 5, 8, 10};
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++)
{
printf ("\nVoltage Accuracy Measurements on Channel %u\n", chan);
for (i = 0; i < 9; i++)
{
iprintf (id, "VOLT%u %f\n", chan, volts[i]);
printf ("\n New voltage output on channel %u = %f V", chan, volts[i]);
printf ("\n Enter MEASURED voltage value (in V) : ");
scanf ("%f", &meas);
acc = 0.0035 * abs(volts[i]) + .11334;
llim = volts[i] - acc;
ulim = volts[i] + acc;
Appendix B
Verification Tests - C Programs 65
Содержание 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 ...