![HP E1330A Скачать руководство пользователя страница 37](http://html.mh-extra.com/html/hp/e1330a/e1330a_service-manual_160331037.webp)
Appendix 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 */
}
Appendix A
Verification Tests - C Programs 37