int i;
#if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin();
#endif
ionerror(I_ERROR_EXIT);
id = iopen (ADDR);
/* Open instrument session */
dm = iopen (DMM);
/*--------------------Initialize AFG and Multimeter------------------------*/
iprintf (id, "*RST;*CLS\n");
iprintf (id, "OUTP:LOAD INF\n");
iprintf (id, ":VOLT 0.001;\n");
iprintf (id, ":FUNC USER\n");
iprintf (id, "LIST:SEGM:SEL A\n");
iprintf (id, "LIST:SEGM:VOLT ");
for (i = 1;i <= 4096;i ++)
iprintf (id, "0");
iprintf (id, "\n");
iprintf (id, "FUNC:USER A\n");
iprintf (id, "INIT:IMM\n");
iprintf (dm, "PRESET NORM;TRIG HOLD\n");
iprintf (dm, "END ALWAYS\n");
iprintf (dm, "FUNC DCV\n");
/*--------------------Connect Equipment------------------------------------*/
printf ("\n\nDC Offset 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:OFFS %f\n", volt[i]);
iprintf (dm, "TRIG SGL\n");
iscanf (dm, "%lf", &result[i]);
iscanf (dm, "%t", cr);
}
printf ("\n\n---------------------------------------");
printf ("\nVoltage Voltage");
printf ("\nRange Offset\n");
Appendix A
Verification Tests - C Programs 91
Содержание 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 ...