iprintf (dm, "TRIG SGL\n");
/* Get measurement from DMM */
iscanf (dm, "%lf", &result);
iscanf (dm, "%t", cr);
reference = 20 * log10 (result) + 13.0103;
/* Calculate reference level */
iprintf (id, "ABORT\n");
/* Set AFG to crossover frequency */
iprintf (id, "FREQ 1E5\n");
iprintf (id, "INIT:IMM\n");
iprintf (id, "*OPC?\n");
iscanf (id, "%t", cr);
iprintf (dm, "TRIG SGL\n");
/* DMM reading at 100 kHz */
iscanf (dm, "%lf", &result);
iscanf (dm, "%t", cr);
xoverdmm = result;
printf ("\n\n1. Connect Power Meter to AFG Output");
printf ("\nPress ENTER when ready");
getchar ();
iprintf (pm, "IP\n");
/* Set up power meter */
iprintf (pm, "AU M4 WT\n");
iprintf (pm, "0.1 MHZ\n");
/* Crossover frequency */
iprintf (pm, "T3\n");
iscanf (pm, "%lf", &result);
xoverpm = sqrt (abs (result) * 50);
/* Convert from watts to volts */
correction = xoverdmm / xoverpm;
/* Calculate correction factor */
/*--------------------Perform Test-----------------------------------------*/
printf ("\n\nTest Reading Reading Corrected Reading Error
Specification");
printf ("\nFrequency Reading");
printf ("\n(Hz) (watts) (Volts) (volts) (dBm) (dB) (dB)\n");
for (i = 1;i <= 15;i ++)
{
iprintf (id, "ABORT\n");
iprintf (id, "FREQ %uE6\n", i);
iprintf (id, "INIT:IMM\n");
iprintf (pm, "%uMHZ\n", i);
iprintf (pm, "T3\n");
iscanf (pm, "%lf", &watts[i-1]);
volts[i-1] = sqrt (abs (watts[i-1]) * 50);
/* Convert from watts to volts */
corrvolts[i-1] = volts[i-1] * correction;
/* Calculate corrected volts */
dbm[i-1] = 20 * log10 (corrvolts[i-1]) + 13.0103;
/* Calculate dbm */
error[i-1] = dbm[i-1] - reference;
/* Calculate error in dBm */
Appendix A
Verification Tests - C Programs 95
Содержание 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 ...