Download RF Multiplexer
Transcript
Example:
Expander Self Test
The Functional Verification Test for the Agilent E1473A and E1475A RF
Multiplexer Expanders consists of sending the :COPTion? query command
and checking the response. This test can be used to verify that the device is
connected properly and is responding to basic commands.
#include <stdio.h>
#include <sicl.h>
#define ADDR "hpib7,9,15"
/* Address of device */
main ()
{
INST id;
char a[256] = {0};
id = iopen (ADDR);
/* Define id as an instrument */
/* Result variable */
/* Open instrument session */
ipromptf(id, "SYST:COPT? 1\n", "%t", a);
printf("\n %s", a);
getchar();
/* Self test command */
/* Print result */
/* Pause */
iclose (id);
/* Close instrument session */
}
60 Example C Programs
Agilent E1472A/73A/74A/75A Service Manual