Performance verification tests, Example: closed channel resistance test – Agilent Technologies E1364A User Manual
Page 48
![background image](/manuals/40077/48/background.png)
Performance Verification Tests
These programs are designed to do the Performance Verification Tests
found in Chapter 2, "Verification Tests."
Example:
Closed Channel
Resistance Test
This example performs the Closed-Channel Resistance Test for all
Normally Open and Normally Closed contacts.
/* Closed-channel Resistance Test E1364A */
#include
#include
#define ADDR "hpib7,9,15"
/* Address of device */
#define DMM "hpib7,22"
void main (void)
{
INST id, dm;
/* Define id and dm as an instrument */
char reading[256] = {0};
/* Result variable */
int channel, i;
#if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin();
#endif
ionerror(I_ERROR_EXIT);
id = iopen (ADDR);
/* Open instrument session */
dm = iopen (DMM);
iprintf (id, "*RST\n");
iprintf (dm, "PRESET NORM;TRIG HOLD\n");
iprintf (dm, "FUNC OHMF\n");
printf ("\n\nConnect DMM to NO and C lines of E1364A (4-wire
connection)");
getchar ();
printf ("\n\nContact Resistance -- Normally open contacts\n");
for (i = 0; i <= 15; i++)
{
channel = 100 + i;
48 Example C Programs
Appendix A