Performance Verification Test; Example: Digital Test - HP E1330A Service Manual

Digital i/o module
Table of Contents

Advertisement

Performance
Verification
Test
Example: Digital
Test
38 Verification Tests - C Programs
This program is designed to do the Performance Verification Test found in
Chapter 2 - Verification Tests.
This example performs a bit walk test of all bits on all ports and checks the
module's ability to set and reset the handshake lines on each port.
/* Digital I/O Test
#include <stdio.h>
#include <stdlib.h>
#include <sicl.h>
#define ADDR "hpib7,9,18"
void main (void)
{
INST id;
char a[255], b[32];
char *bit_walk[] = {"00000001", "00000010", "00000100", "00001000",
"00010000", "00100000", "01000000", "10000000"};
int bit_val[] = {1, 2, 4, 8, 16, 32, 64, 128};
int fail, i, j, number;
int atoi (const char *a);
#if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin();
#endif
ionerror(I_ERROR_EXIT);
id = iopen (ADDR);
iprintf (id, "*CLS\n");
fail = 0;
printf("\nInstall component assembly and test cable");
printf("\n\n 1. Turn mainframe power off");
printf("\n 2. Install HP E1330A/B component assemby into
mainframe");
printf("\n 3. Attach test cable to component assembly");
printf("\n 4. Turn mainframe power on");
printf("\n 5. Press ENTER when ready to begin testing");
gets (a);
/*-----------------------------------Bit walk test-------------------------------------*/
E1330A */
/* Address of device */
/* Define id as an instrument */
/* Open instrument session */
Appendix A

Advertisement

Table of Contents
loading

This manual is also suitable for:

E1330b

Table of Contents