Service manual
Chapter 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 Functional Verification Test for the Agilent E1351A, E1352A,
E1353A, E1357A, and E1358A FET Multiplexers consists of sending the
*IDN? command and checking the response. This test can be used to verify
that the FET Multiplexer is connected properly and is responding to a basic
command.
NOTE
This program assumes a primary address of 09 and a secondary address of
14. If your FET Multiplexer address does not match this, you must either
change the FET Multiplexer address setting or change the program line
#define ADDR "hpib7,9,14" to match your FET 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 */
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 */
}
Example C Programs A-1