Ac Flatness Adjustment - HP E1340A Service Manual

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

Advertisement

AC Flatness
Adjustment
102 Verification Tests - C Programs
printf ("\n\nDC Adjustment Procedure");
printf ("\n\n1. Connect DMM HI and LO to AFG Output");
printf ("\n\nPress ENTER when ready");
getchar ();
/*--------------------Perform Test-----------------------------------------*/
iprintf (id, "CAL:DC:BEGIN\n");
iprintf (id, "*OPC?\n");
iscanf (id, "%t", cr);
printf ("\n\nCAL POINT
printf ("\n---------
do
{
iprintf (dm, "TRIG SGL\n");
iscanf (dm, "%lf", &reading);
iscanf (dm, "%t", cr);
if (cal_point == 5) iprintf (dm, "RANGE 10\n");
iprintf (id, "CAL:DC:POINT? %lf\n", reading);
iscanf (id, "%u,%u%t", &cal_point, &err_num, cr);
printf ("\n %2u
}
while ((err_num == 0) && (cal_point != 0));
if (err_num == 0)
printf ("\n\nCalibration Successful");
else
printf ("\n\nCALIBRATION ERROR NUMBER %u AT CAL POINT %u",
err_num, cal_point);
EXIT:
iprintf (id, "*RST;*CLS\n");
iclose (id);
iclose (dm);
}
This program electronically adjusts the AFG for AC Flatness..

/* AC Flatness Adjustment

#include <stdio.h>
#include <sicl.h>
#include <math.h>
ERR CODE
READING (V)");
--------
-----------\n");
%2u
%.4lf",cal_point, err_num, reading);
/* Close instrument session */
E1340A */
Appendix A

Advertisement

Table of Contents
loading

Table of Contents