Test 2-4: AC
Flatness
The purpose of this test is to verify that the AFG meets its specifications for
AC accuracy at frequencies other than 1 kHz.
/* AC Flatness 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 */
#define POW "hpib7,14"
/* Address of power meter */
void main (void)
{
INST id, dm, pm;
/* Define instruments */
char cr[256] = {0};
double result, reference, xoverdmm, xoverpm, correction;
double watts[15], volts[15], corrvolts[15], dbm[15], error[15];
int i;
#if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin();
#endif
ionerror(I_ERROR_EXIT);
id = iopen (ADDR);
/* Open instrument session */
dm = iopen (DMM);
pm = iopen (POW);
/*--------------------Initialize AFG and Multimeter------------------------*/
iprintf (id, "*RST;*CLS\n");
iprintf (id, "FUNC SIN;\n");
iprintf (id, ":VOLT 10DBM;\n");
iprintf (id, ":OUTP:LOAD 50\n");
iprintf (id, "FREQ 1000\n");
iprintf (id, "INIT:IMM\n");
iprintf (dm, "PRESET NORM;TRIG HOLD\n");
iprintf (dm, "END ALWAYS\n");
iprintf (dm, "FUNC ACV\n");
iprintf (dm, "FUNC ACV\n");
/*--------------------Measure reference and correction values--------------*/
printf ("\n\nAC Flatness Test");
printf ("\n\n1. Connect DMM HI and LO to AFG Output through 50 Ohm feed
through termination");
printf ("\n\nPress ENTER when ready");
getchar ();
94 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 ...