Service manual

 printf ("\n\nMeasurements complete for Channel HI and LO");
 printf ("\nPress ENTER for Tree Switch measurements");
 getchar ();
 /*...........................Tree Switch Measurements..................................*/
 iprintf (dm, "PRESET NORM;TRIG HOLD\n");
 iprintf (dm, "END ALWAYS\n");
 iprintf (dm, "FUNC OHM\n");
 for (i = 0;i <= 1; i++)
 {
  if (i == 0)
 {
   path = "HI";
  printf ("\n\nTree HI to Direct HI Measurements");
  printf ("\n\n 1. Connect DMM Input HI leads to Tree HI");
   printf ("\n 2. Connect DMM Input LO leads to Direct HI");
 }
 else
 {
   path = "LO";
   printf ("\n\nTree LO to Direct LO Measurements");
  printf ("\n\n 1. Connect DMM Input HI leads to Tree LO");
   printf ("\n 2. Connect DMM Input LO leads to Direct LO");
 }
 printf ("\n 3. Press ENTER when connections are complete.");
 getchar ();
  iprintf (id, "*RST\n");
  /*-------Check for stuck channels------*/
  iprintf (dm, "TRIG SGL\n");
  iscanf (dm, "%lf", &value);
 iscanf (dm, "%t", cr);
 if (value < 10000)
 {
  printf ("\n\n***** Measurement indicates a stuck channel *****");
  printf ("\n***** Correct the problem before proceeding *****");
   goto EXIT;
 }
  for (j = 0; j <= 1; j++)
 {
   iprintf (id, "SCAN:PORT ABUS\n");
  if (j == 0)  iprintf (id, "CLOS (@100)\n");
   else    iprintf (id, "CLOS (@115)\n");
   iprintf (dm, "TRIG SGL\n");
  iscanf (dm, "%lf", &tree[i][j]);
  iscanf (dm, "%t", cr);
  if (j == 0)  iprintf (id, "OPEN (@100)\n");
   else    iprintf (id, "OPEN (@115)\n");
A-4  Example C Programs










