Agilent Technologies E1343A Wartungshandbuch Seite 65

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 84
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 64
Appendix A
Verification Tests - C Programs
Functional Verification Test
These programs are designed to do the Functional Verification Tests found
in Chapter 2, "Verification Tests."
Example: Self-Test The Functional Verification Test for the multiplexer modules consists of
sending the
*IDN? command and checking the response. This test can be
used to verify that the multiplexer is connected properly and is responding
to a basic command.
#include <stdio.h>
#include <sicl.h>
#define ADDR "hpib7,9,14"
/* Address of device */
void main (void)
{
INST id;
/* Define id as an instrument */
char a[256] = {0}; /* Result variable */
int i;
ionerror (I_ERROR_EXIT);
id = iopen (ADDR);
/* Open instrument session */
iprintf(id, "*IDN?\n"); /* Send *IDN? command */
iscanf (id, "%t", a); /* Get response */
printf("\n %s", a); /* Print result */
getchar(); /* Pause */
iclose (id); /* Close instrument session */
}
Appendix A Example C Programs 63
Seitenansicht 64
1 2 ... 60 61 62 63 64 65 66 67 68 69 70 ... 83 84

Kommentare zu diesen Handbüchern

Keine Kommentare