Service manual
Example: DC
Isolation Test
This example performs DC Isolation Tests for HI to Chassis, HI to LO, and
HI to GU (Guard).
 printf ("\n\nChannels 90-92 LO and G Contact Resistance\n");
 printf ("\n CH 90 LO %6.4lf Ohms  CH 91 LO %6.4lf Ohms CH 92 LO %6.4lf
Ohms", result1[0][1],result1[1][1],result1[2][1]);
  printf ("\n  CH 90 G %6.4lf Ohms  CH 91 G %6.4lf Ohms  CH 92 G %6.4lf
Ohms", result1[0][2],result1[1][2],result1[2][2]);
 printf ("\n\nChannel 93 HI, LO, and G Contact Resistance\n");
  printf ("\n  CH 93 HI %6.4lf Ohms\n  CH 93 LO %6.4lf Ohms\n  CH 93 G
%6.4lf Ohms\n",result1[0][3],result1[1][3],result1[2][3]);
 iclose (id);
 iclose (dm);             
 /* Close instrument session */
}
/*  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;                       
/* Define id and dm as instruments
*/
  char reading[256]= {0};                /* Result variable */
  char cr[256]= {0};
  #if defined(__BORLANDC__) && !defined(__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 ();
68 Example C Programs Appendix A










