AC Flatness
Adjustment
This program electronically adjusts the AFG for AC Flatness..
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 ERR CODE READING (V)");
printf ("\n--------- -------- -----------\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 %2u %.4lf",cal_point, err_num, reading);
}
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);
/* Close instrument session */
iclose (dm);
}
/* AC Flatness Adjustment E1340A */
#include <stdio.h>
#include <sicl.h>
#include <math.h>
102 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 ...