iprintf (id, "CLOS (@%u)\n", channel); ipromptf (dm, "TRIG SGL\n", "%t", reading); printf ("\n Channel %u (closed): %s", i, reading);
iprintf (id, "OPEN (@%u)\n", channel); ipromptf (dm, "TRIG SGL\n", "%t", reading); printf ("\n Channel %u (open): %s", i, reading);
}
printf ("\n\nConnect DMM to NC and C lines of E1364A
getchar ();
iprintf (id, "CLOS (@100:115)\n");
printf ("\n\nContact Resistance
for (i = 0; i <=15; i++)
{
channel = 100 + i;
iprintf (id, "OPEN (@%u)\n", channel); ipromptf (dm, "TRIG SGL\n", "%t", reading); printf ("\n Channel %u (closed): %s", i, reading);
iprintf (id, "CLOS (@%u)\n", channel); ipromptf (dm, "TRIG SGL\n", "%t", reading); printf ("\n Channel %u (open): %s", i, reading);
}
iclose (id);iclose (dm); | /* Close instrument session */ |
}
Appendix A | Example C Programs 49 |