HP manual Introductory Programs, Sending the *IDN? Command, HEWLETT-PACKARD,E1429A,0,A.02.00

Models: E1429A

1 420
Download 420 pages 44.04 Kb
Page 20
Image 20

Introductory Programs

Sending the *IDN? Command

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.

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.

20DIM Message$[80]

30OUTPUT 70905;"*IDN?"

40ENTER 70905;Message$

50PRINT Message$

60END

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 Getting Started

Chapter 1

Page 20
Image 20
HP manual Introductory Programs, Sending the *IDN? Command, HEWLETT-PACKARD,E1429A,0,A.02.00