Performance
Verification
Test
This program is designed to do the Performance Verification Test found in
Chapter 2 - Verification Tests.
Example: Digital
Test
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 E1330A */
#include <stdio.h>
#include <stdlib.h>
#include <sicl.h>
#define ADDR "hpib7,9,18"
/* Address of device */
void main (void)
{
INST id;
/* Define id as an instrument */
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);
/* Open instrument session */
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-------------------------------------*/
38 Verification Tests - C Programs
Appendix A