Performance Verification Tests
These programs are designed to do the Performance Verification Tests
found in Chapter 2, "Verification Tests."
Test 2-1:
DC Accuracy
The purpose of this test is to verify that the AFG meets its specifications for
DC accuracy.
/* DC 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[9];
float volt[9] = {10.235, 5.12, 2.56, .32, 0, -.32, -2.56, -5.12, -10.24};
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");
iprintf (id, "FUNC DC;\n");
iprintf (id, ":OUTP:LOAD INF\n");
iprintf (dm, "PRESET NORM;TRIG HOLD\n");
iprintf (dm, "END ALWAYS\n");
iprintf (dm, "FUNC DCV\n");
/*--------------------Connect Equipment------------------------------------*/
printf ("\n\nDC Accuracy Test");
printf ("\n\n1. Connect DMM HI and LO to AFG Output");
printf ("\n\nPress ENTER when ready");
getchar ();
Appendix A
Verification Tests - C Programs 89
Содержание 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 ...