Service manual
Performance
Verification
Tests
These programs are designed to do the Performance Verification Tests
found in Chapter 2, "Verification Tests."
Example: Closed
Channel
Resistance Test
The following program performs a Closed Channel Resistance Test on
Channels 00 - 15 and 90 - 92 HI, LO, and GU. If the conntact resistance for
a channel is > 2.0 Ω, the program displays the message Resistance
for Channel chan Relay is > 2.0 Ohms .
/* 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 instruments */
int channel, i, j;
double ohm, R[6], result[48], value[48], result1[3][3], value1[3][3];
char cr[256] = {0};
#if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin();
#endif
ionerror(I_ERROR_EXIT);
/* Open instrument session */
dm = iopen (DMM);
itimeout (dm, 10000);
iprintf (dm, "PRESET NORM\n");
iprintf (dm, "END ALWAYS\n");
iprintf (dm, "TRIG HOLD\n");
iprintf (dm, "FUNC OHMF\n");
/* ..........................Measure Protection Resistors...............................*/
printf ("\n\nMeasure Protection Resistors R38 - R43");
printf ("\n\n 1. Turn mainframe power OFF.");
printf ("\n 2. Remove E1346A component assembly from mainframe.");
printf ("\n\nPress ENTER when ready to measure protection resistors.");
getchar ();
printf ("\n\n");
for (i = 0;i <= 5; i++)
{
printf ("\nConnect DMM leads (4-wire) to resistor R%u", i+38);
printf ("\nPress ENTER when ready to measure resistance");
getchar ();
64 Example C Programs Appendix A