Service manual
B
Verification Tests - C Programs
Functional
Verification
Test
This program is designed to do the Functional Verification Test found in
Chapter 4 - Verification Tests.
Example:Self Test This example performs a multimeter self-test to ensure that the multimeter is
communicating with the mainframe, external controller, and/or external
terminal.
#include <stdio.h>
#include <sicl.h>
#define ADDR "hpib7,9,03" /* Address of device */
void main ()
{
INST id; /* Define id as an instrument */
char a[256] = {0}; /* Result variable */
id = iopen (ADDR); /* Open instrument session */
ipromptf(id, "*TST?\n", "%t", a); /* Self test command */
printf("\n %s", a); /* Print result */
getchar(); /* Pause */
iclose (id); /* Close instrument session */
}
Example C Programs B-1