Adjustments
These programs are designed to do the adjustments found in Chapter 3,
"Adjustments."
DC Adjustment
This program electronically adjusts the AFG for DC accuracy.
/* DC Adjustment 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 reading;
int cal_point = 0, err_num = 0;
#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 (dm, "PRESET NORM;TRIG HOLD\n");
iprintf (dm, "END ALWAYS\n");
iprintf (dm, "FUNC DCV;NPLC 10;RANGE 1\n");
/*--------------------Check Firmware Revision------------------------------*/
iprintf (id, "*IDN?\n");
iscanf (id, "%t", cr);
if (cr[31] == 48)
{
printf ("\n%s", cr);
printf ("\n\n This procedure requires a firmware revision of A.01.02 or later.");
goto EXIT;
}
/*--------------------Connect Equipment------------------------------------*/
Appendix A
Verification Tests - C Programs 101
Summary of Contents for E1340A
Page 6: ...Notes 6 HP E1340A Arbitrary Function Generator Service Manual ...
Page 8: ......
Page 10: ...Notes 12 What s in this Manual HP E1340A Service Manual ...
Page 18: ...Notes 20 General Information Chapter 1 ...
Page 74: ...Notes 76 Adjustments Chapter 3 ...
Page 78: ...Notes 80 Replaceable Parts Chapter 4 ...
Page 104: ...Notes 106 Verification Tests C Programs Appendix A ...