Service manual
Performance
Verification
Test
This program is designed to do the Performance Verification Test found
in Chapter 2 - Verification Tests.
NOTE
These programs assume 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 lines
# define ADDR "hpib7,9,14" to match your Multiplexers address setting.
Example: Closed
Channel
Resistance Test
This example performs a Closed Channel Resistance Test to measure
Channels 00 - 47, Channels 90 - 92, cna Channel 93 HI, LO, and GU
relay contact resistances. If the relay contact resistance for a channel is
> 2.0W, the program prints a message indicating which channel has
failed the test. on all channels in the RF Multiplexer. If a channel is out
of specification, the program prints a message and pauses.
/* Closed-channel Resistance Test E1346A */
# include < stdio.h>
# include < sicl.h>
# define ADDR "hpib7,9,14" /* Address of device */
# define DMM "hpib7,22" /* Address of multimeter */
void main (void)
{
INST id, dm; /* Define id and dm as an instrument */
int channel, i, j;
double ohm, R[6], result[48], result1[3][3], value1[3][3];
char cr[256] = { 0} ;
# if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin();
# endif
ionerror(I_ERROR_EXIT);
id = iopen (ADDR); /* Open instrument session */
itimeout (dm, 10000);
printf (dm, "PRESET NORM\ n");
printf (dm, "END ALWAYS\ n");
printf (dm, "TRIG HOLD\ n");
printf (dm, "FUNC OHMF\ n");
A-2 Example C Programs Appendix A