Test 2-2: Dc Offset - HP E1340A Service Manual

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

Advertisement

Test 2-2: DC Offset

90 Verification Tests - C Programs
/*--------------------Perform Test-----------------------------------------*/
for (i = 0;i <= 8;i ++)
{
iprintf (id, "VOLT %f\n", volt[i]);
iprintf (dm, "TRIG SGL\n");
iscanf (dm, "%lf", &result[i]);
iscanf (dm, "%t", cr);
}
printf ("\n\n---------------------------------------");
printf ("\nVoltage
printf ("\nRange
for (i = 0;i <= 8;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
DC offset accuracy.
/* DC Offset 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] = {10.235, 5.12, 2.56, 0, -2.56, -5.12, -10.24};
Voltage");
Measured\n");
%7.3lf
", volt[i], result[i]);
/* Close instrument session */
/* Address of device */
/* Address of multimeter */
/* Define id as an instrument */
E1340A */
Appendix A

Advertisement

Table of Contents
loading

Table of Contents