iprintf (id, "FREQ 1E3;\n");
iprintf (id, ":OUTP:LOAD INF\n");
iprintf (id, "VOLT:UNIT VRMS\n");
iprintf (id, "INIT:IMM\n");
iprintf (dm, "PRESET NORM;TRIG HOLD\n");
iprintf (dm, "END ALWAYS\n");
iprintf (dm, "FUNC ACV\n");
/*--------------------Connect Equipment------------------------------------*/
printf ("\n\nAC Accuracy Test");
printf ("\n\n1. Connect DMM HI and LO to AFG Output");
printf ("\n\nPress ENTER when ready");
getchar ();
/*--------------------Perform Test-----------------------------------------*/
for (i = 0;i <= 6;i ++)
{
iprintf (id, "VOLT %f\n", volt[i]);
iprintf (dm, "TRIG SGL\n");
iscanf (dm, "%lf", &result[i]);
iscanf (dm, "%t", cr);
}
printf ("\n\n---------------------------------------");
printf ("\nAmplitude Measured");
printf ("\nRange Amplitude\n");
for (i = 0;i <= 6;i ++)
{
printf ("\n%7.3f %7.3lf ", volt[i], result[i]);
if ((result[i] < low[i]) || (result[i] > hi[i]))
printf ("*** FAILED ***");
else
printf (" PASSED");
}
iprintf (id, "*RST;*CLS\n");
iclose (id);
/* Close instrument session */
iclose (dm);
}
Appendix A
Verification Tests - C Programs 93
Содержание 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 ...