Adjustments; Dc Adjustment - HP E1340A Service Manual

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

Advertisement

Adjustments

DC Adjustment

Appendix A
These programs are designed to do the adjustments found in Chapter 3,
"Adjustments."
This program electronically adjusts the AFG for DC accuracy.
/* DC Adjustment
#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 reading;
int cal_point = 0, err_num = 0;
#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 (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------------------------------------*/
E1340A */
/* Address of device */
/* Address of multimeter */
/* Define id as an instrument */
/* Open instrument session */
Verification Tests - C Programs 101

Advertisement

Table of Contents
loading

Table of Contents