Example: Voltage Accuracy Measurements; Performance Verification Tests - HP E1328A Service Manual

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

Advertisement

Performance
Verification
Tests
Example: Voltage
Accuracy
Measurements
Appendix B
These programs are designed to do the Performance Verification Tests
found in Chapter 4 - Verification Tests.
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
#include <stdio.h>
#include <math.h>
#include <sicl.h>
#define ADDR "hpib7,9,9"
void main ()
{
INST id;
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);
id = iopen (ADDR);
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;
E1328A */
/* Address of device */
/* Define id as an instrument */
/* Exit on error */
/* Open instrument session */
Verification Tests - C Programs 65

Advertisement

Table of Contents
loading

Table of Contents