Test 2-2: DC Offset
The purpose of this test is to verify that the AFG meets its specifications for
DC offset accuracy.
/*--------------------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 Voltage");
printf ("\nRange Measured\n");
for (i = 0;i <= 8;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);
}
/* DC Offset 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] = {10.235, 5.12, 2.56, 0, -2.56, -5.12, -10.24};
90 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 ...