Performance Verification Tests; Test 2-1: Dc Accuracy - HP E1340A Service Manual

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

Advertisement

Performance Verification Tests

Test 2-1:
DC Accuracy
Appendix A
These programs are designed to do the Performance Verification Tests
found in Chapter 2, "Verification Tests."
The purpose of this test is to verify that the AFG meets its specifications for
DC accuracy.
/* DC 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[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);
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 ();
E1340A */
/* Address of device */
/* Address of multimeter */
/* Define id as an instrument */
/* Open instrument session */
Verification Tests - C Programs 89

Advertisement

Table of Contents
loading

Table of Contents