Service manual
A
Verification Tests - C Programs
Functional
Verification
Test
This program is designed to do the Functional Verification Test found in
Chapter 2 - Verification Tests.
Example This example sends a *IDN? command to the Digital I/O Module. This test
can be used to verify that the module is connected properly and is
responding to a basic command.
#include <stdio.h>
#include <sicl.h>
#define ADDR "hpib7,9,18" /* 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, "*IDN?\n", "%t", a); /* ID command */
printf ("\n %s", a); /* Print result */
getchar (); /* Pause */
iclose (id); /* Close instrument session */
}
Example C Programs A-1