Test 2-3:
AC Accuracy
The purpose of this test is to verify that the AFG meets its specifications for
AC accuracy at 1 kHz.
for (i = 0;i <= 6;i ++)
{
printf ("\n%7.3f %7.3lf ", volt[i], result[i]);
if (abs(result[i] - volt[i]) > 0.276)
printf ("*** FAILED ***");
else
printf (" PASSED");
}
iprintf (id, "*RST;*CLS\n");
iclose (id);
/* Close instrument session */
iclose (dm);
}
/* AC Accuracy Performance Verification Test E1340A */
#include <stdio.h>
#include <sicl.h>
#include <math.h>
#define ADDR "hpib7,9,10"
/* Address of device */
#define DMM "hpib7,22"
/* Address of multimeter */
void main (void)
{
INST id, dm;
/* Define id as an instrument */
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);
/* Open instrument session */
dm = iopen (DMM);
/*--------------------Initialize AFG and Multimeter------------------------*/
iprintf (id, "*RST;*CLS\n");
92 Verification Tests - C Programs
Appendix A
Содержание E1340A
Страница 6: ...Notes 6 HP E1340A Arbitrary Function Generator Service Manual ...
Страница 8: ......
Страница 10: ...Notes 12 What s in this Manual HP E1340A Service Manual ...
Страница 18: ...Notes 20 General Information Chapter 1 ...
Страница 74: ...Notes 76 Adjustments Chapter 3 ...
Страница 78: ...Notes 80 Replaceable Parts Chapter 4 ...
Страница 104: ...Notes 106 Verification Tests C Programs Appendix A ...