HP (Hewlett-Packard) B Network Router User Manual


 
Introductory Programs
The introductory programs in this section include:
Sending the *IDN? Command
Digitizer Self-Test
Resetting the digitizer and clearing the status registers
Querying the digitizer configuration
HP BASIC and C language versions of the introductory programs follow. C
language versions of these and all programs in the manual are contained on
the following disk which ships with the manual:
HP E1429A/B Example Programs: C Language
3.5" 720 KByte disk (HP E1429-10302)
Other than the introductory programs and selected programs throughout the
manual, the program listings show only the digitizer commands.
Sending the *IDN?
Command
The following programs are a fast method for determining if the digitizer is
set to the intended address and is communicating with the computer. The
programs send the *IDN? command which returns:
HEWLETT-PACKARD,E1429A,0,A.02.00
HP BASIC
10 !Send the *IDN? command, enter and display the result.
20 DIM Message$[80]
30 OUTPUT 70905;"*IDN?"
40 ENTER 70905;Message$
50 PRINT Message$
60 END
IDN.C
/* IDN.C - This program sends the *IDN? command to the digitizer as a */
/* way to determine if the computer is communicating with the digitizer */
/* Include the following header files */
#include <stdio.h>
#include <cfunc.h> /* This file is from the HP-IB Command Library Disk */
#define ADDR 70905 /* I/O path from the PC to the digitizer */
Continued on Next Page
20 Gettin
g
Started Chapter 1