Service manual
Example: DC
Isolation Test
This example performs DC Isolation Tests for HI to Chassis, HI to LO,
and HI to GU (Guard).
/* DC Isolation Test E1346A */
# include < stdio.h>
# include < sicl.h>
# define ADDR "hpib7,9,14" /* Address of device */
# define DMM "hpib7,22" /* Address of multimeter*/
void main (void)
{
INST id, dm;
char reading[256]= { 0} ; /* Define id and dm as instruments * /
char cr[256]= { 0} ; /* Result variable * /
# if defined(__BORLANDC__) && Idefined(__WIN32__)
_InitEasyWin();
#endif
ionerror(I_ERROR_EXIT);
id = iopen (ADDR); /* Open instrument session */
dm = iopen (DMM);
iprintf (dm, "PRESET NORM;TRIG HOLD\ n");
iprintf (dm, "FUNC OHM;RANGE 1E9\ n");
iprintf (dm, "END ALWAYS\ n");
iprintf (id, "*RST\ n");
iprintf (id, "CLOS (@193,100,108,116)\ n");
/*..........HI to CHASSIS..........*/
printf ("\ n\ nConnect DMM HI and LO to E1346A COMMON HI and CHASSIS");
getchar ();
iprintf (dm, "TRIG SGL\ n");
iscanf (dm, "%t", reading);
printf ("\ nDC Isolation - HI to CHASSIS ");
printf (" R = %s Ohms", reading);
/*..........HI to LO..........*/
printf ("\ n\ nConnect DMM HI and LO to E1346A COMMON HI and COMMON LO");
getchar 0;
iprintf (dm, "TRIG SGL\ n");
iscanf (dm, "%t", reading);
printf ("\ nDC Isolation - HI to LO ");
printf (" R = %s Ohms", reading);
/*..........HI to GUARD..........*/
Appendix A Example C Programs A-7