Agilent Technologies E1346A Manuel de service Page 59

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 66
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 58
Appendix A
Verification Tests - C Programs
Functional
Verification
Test
This program is designed to do the Functional Verification Test found
in Chapter 2 - Verification Tests.
Example: Self Test The self test for Agilent E1346A Single Ended Relay Multiplexer
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 baxic command.
NOTE
This program assumes a primary address of 09 and a secondary address of
14. If your Multiplexer address does not match this, you must either
change the Multiplexers address setting or change the program line
# define ADDR "hpib7,9,14" to match your Multiplexers address setting.
# 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 */
iprint(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 A-1
Vue de la page 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 65 66

Commentaires sur ces manuels

Pas de commentaire