User manual

printf ("\n\nHigh to Common Measurements");
printf ("\n\n 1. Connect DMM Input HI lead to High lines");
printf ("\n 2. Connect DMM Input LO lead to Common lines");
printf ("\n 3. Press ENTER when connections are complete");
getchar ();
for (i = 0;i <= 7; i++)
for (j = 0;j <= 7; j++)
{
iprintf (id, "CLOS (@1%u%u)\n", i, j);
iprintf (dm, "TRIG SGL\n");
iscanf (dm, "%lf", &result);
iscanf (dm, "%t", cr);
iprintf (id, "OPEN (@1%u%u)\n", i, j);
iprintf (dm, "TRIG SGL\n");
iscanf (dm, "%lf", &result2);
iscanf (dm, "%t", cr);
printf ("\nchannel %u%u closed resistance = %.4e Ohms", i, j, result);
printf ("\n open resistance = %.4e Ohms", result2);
if (result < 3.5) printf ("\n*** Resistance for Channel %u%u is < 3.5 Ohms ***", i,j);
}
printf ("\n\nMeasurements complete for High lines.");
printf ("\nPress ENTER for Low measurements");
getchar ();
/*........................Low Lines.....................*/
printf ("\n\nLow to Common Measurements");
printf ("\n\n 1. Connect DMM Input HI lead to Low lines");
printf ("\n 2. Connect DMM Input LO lead to Common lines");
printf ("\n 3. Press ENTER when connections are complete");
getchar ();
for (i = 0;i <= 7; i++)
for (j = 0;j <= 7; j++)
{
iprintf (id, "CLOS (@1%u%u)\n", i, j);
iprintf (dm, "TRIG SGL\n");
iscanf (dm, "%lf", &result);
iscanf (dm, "%t", cr);
iprintf (id, "OPEN (@1%u%u)\n", i, j);
iprintf (dm, "TRIG SGL\n");
iscanf (dm, "%lf", &result2);
iscanf (dm, "%t", cr);
printf ("\nchannel %u%u closed resistance = %.4e Ohms", i, j, result);
printf ("\n open resistance = %.4e Ohms", result2);
if (result < 3.5) printf ("\n*** Resistance for Channel %u%u is < 3.5 Ohms ***", i,j);
}
printf ("\n\nMeasurements complete for Low lines.");
iprintf (id, "*RST\n");
iclose (id);iclose (dm); /* Close instrument session */
}
Agilent E1460A Service Manual Example C Programs 59