Test 2-3: Ac Accuracy - HP E1340A Service Manual

Function generator
Hide thumbs Also See for E1340A:
Table of Contents

Advertisement

Test 2-3:
AC Accuracy
92 Verification Tests - C Programs
for (i = 0;i <= 6;i ++)
{
printf ("\n%7.3f
if (abs(result[i] - volt[i]) > 0.276)
printf ("*** FAILED ***");
else
printf ("
PASSED");
}
iprintf (id, "*RST;*CLS\n");
iclose (id);
iclose (dm);
}
The purpose of this test is to verify that the AFG meets its specifications for
AC accuracy at 1 kHz.
/* AC Accuracy Performance Verification Test
#include <stdio.h>
#include <sicl.h>
#include <math.h>
#define ADDR "hpib7,9,10"
#define DMM "hpib7,22"
void main (void)
{
INST id, dm;
char cr[256] = {0};
double result[7];
float volt[7] = {7.239, 6.450, 5.750, 4.566, 2.881, 1.440, 0.229};
float low[7] = {6.889, 6.138, 5.472, 4.345, 2.742, 1.370, 0.218};
float hi[7] = {7.606, 6.777, 6.042, 4.798, 3.027, 1.513, 0.241};
int i;
#if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin();
#endif
ionerror(I_ERROR_EXIT);
id = iopen (ADDR);
dm = iopen (DMM);
/*--------------------Initialize AFG and Multimeter------------------------*/
iprintf (id, "*RST;*CLS\n");
%7.3lf
", volt[i], result[i]);
/* Address of device */
/* Address of multimeter */
/* Define id as an instrument */
/* Open instrument session */
/* Close instrument session */
E1340A */
Appendix A

Advertisement

Table of Contents
loading

Table of Contents