User manual
Test 2-2: Testing
Control Relays
This program performs the control relays test found in Chapter 2 -
Verification Tests. See Chapter 2 for a detailed description of this test and
equipment connections.
/* Closed-channel Resistance Test E1460A
This program performs the Control Relay Test found
in the E1460A Service Manual
Program Rev. A.01.00 7/1/96 */
#include <stdio.h>
#include <sicl.h>
#define ADDR "hpib7,9,14" /* Address of device */
#define DMM "hpib7,22"
void main (void)
{
INST id, dm; /* Define id and dm as an instrument */
int channel,i;
double result[13];
char cr[256];
char *data[13][3] = {"NC","1W HI","BANK 0 COM HI","NO","1W HI","BANK 0 COM LO",
"NC","1W LO","CABLE T","NO","1W LO","1W LO REF",
"HI","AB H1","1W HI","LO","AB L1","1W LO",
"HI","AB H2","BANK 6 COM HI","LO","AB L2","BANK 6 COM LO",
"HI","AB H2","AB H1","LO","AB L2","AB L1",
"HI","BANK 2 COM HI","BANK 4 COM HI","LO","BANK 2 COM LO","BANK 4 COM LO",
"","AB GUARD","BANK 6 COM LO"};
#if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin();
#endif
ionerror(I_ERROR_EXIT);
dm = iopen (DMM); /* Open instrument session */
id = iopen(ADDR);
itimeout (dm, 10000);
printf ("\n\n\nInstall Component Assembly and Test Fixture");
printf ("\n\n 1. Turn Mainframe AND hp 3458a DMM power OFF.");
printf ("\n 2. Connect GPIB Cable between mainframe and DMM.");
printf ("\n 3. Install Agilent E1460A Component Assembly into Mainframe.");
printf ("\n 4. Attach Test Fixture to Component Assembly.");
printf ("\n 5. Turn Mainframe and DMM power ON");
printf ("\n 6. Press ENTER when ready to begin testing.");
getchar ();
/*...........................Begin Testing...............*/
iprintf (id, "*RST\n");
iprintf (id, "FUNC 1,WIRE2\n");
iprintf (dm, "PRESET NORM;TRIG HOLD\n");
iprintf (dm, "END ALWAYS\n");
iprintf (dm, "FUNC OHMF\n");
/*........................Channels 990 and 991...........*/
i = 0;
for (channel = 990;channel <= 991; channel++)
{
60 Example C Programs Agilent E1460A Service Manual