Service manual

Performance
Verification
Tests
These programs are designed to do the Performance Verification Tests
found in Chapter 2 - Verification Tests.
NOTE
These programs assume 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 lines
#define ADDR "hpib7,9,14" to match your FET Multiplexers address
setting.
Example: Closed
Channel
Resistance Test
This example performs a closed channel resistance test of all measurement
paths. If a FET on resistance is >3.1 k , the program prints a message
indicating which channel has failed. Before the closed channel
measurement, the program checks for stuck channels. If a stuck channel is
found, the program prints a message and halts.
/* Closed-channel Resistance Test E1351A */
#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 i, j;
double result[2][15], tree[2][2], value;
char cr[256];
char *path;
#if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin();
#endif
ionerror(I_ERROR_EXIT);
dm = iopen (DMM); /* Open instrument session */
id = iopen(ADDR);
printf ("\n\n\nInstall Component Assembly and Test Fixture");
printf ("\n\n 1. Turn Mainframe AND 3458a DMM power OFF.");
printf ("\n 2. Connect GPIB Cable between mainframe and DMM.");
printf ("\n 3. Install Agilent E1351A 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 ();
A-2 Example C Programs