iprintf (id, "*RST;*CLS\n");
/*--------------------Setup AFG--------------------------------------------*/
iprintf (id, "CAL:AC:BEGIN\n");
iprintf (id, "*OPC?\n");
iscanf (id, "%t", cr);
cal_point = 1;
/*--------------------CAL Loop---------------------------------------------*/
printf ("\n\nCAL POINT ERR CODE READING (V) ERROR (DB)");
printf ("\n--------- -------- ----------- ----------\n");
iprintf (dm, "ACBAND %lf,%lf\n", .9E3, 1.1E3);
iprintf (dm, "TRIG SGL\n");
/* Get reference reading from DMM */
iscanf (dm, "%lf", &reading);
iscanf (dm, "%t", cr);
reference = reading * sqrt(2);
/* Convert to peak volts */
iprintf (id, "CAL:AC:POINT? %lf\n", reading);
iscanf (id, "%u,%u%t", &this_point, &err_num, cr);
printf ("\n %2u %2u %.4lf",cal_point, err_num, reading);
if (err_num != 0) goto ERROR;
printf ("Connect Power Meter to AFG output and press ENTER");
getchar ();
iprintf (pm, "IP\n");
iprintf (pm, "AU M4 WT\n");
do
{
cal_point = this_point;
freq = freq_step * this_point;
iprintf (pm, "%lfMHZ\n", freq/1E6);
iprintf (pm, "T3\n");
iscanf (dm, "%lf", &reading);
reading = sqrt (abs (reading) * 50);
/* Convert to volts */
reading = reading * corr_factor;
/* Calculate corrected reading */
reading = reading * sqrt(2);
/* Convert to peak volts */
error_db = 20 * log10(reading/reference);
iprintf (id, "CAL:AC:POINT? %lf\n", reading);
iscanf (id, "%u,%u%t", &this_point, &err_num, cr);
printf ("\n %2u %2u %.4lf %.4lf",cal_point, err_num, reading,
error_db);
}
while ((err_num == 0) && (this_point != 0) && (this_point <= 16));
ERROR:
iprintf (id, "SYST:ERR?\n");
104 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 ...