Querying the

Digitizer

Configuration

After resetting the digitizer or cycling power, the digitizer parameters are set to their power-on values. These values are listed in Appendix B, Table B-2. You can determine the digitizer’s reset settings or its current configuration using the command:

*LRN?

The data returned by *LRN? is a semicolon (;) separated list of each parameter setting.

HP BASIC

10!Assign an I/O path between the computer and the A/D.

20ASSIGN @A_d TO 70905

30!Call the subprogram

40Lrn_conf(@A_d)

50END

60!

70SUB Lrn_conf(@A_d)

80Lrn_conf: !subprogram which queries the digitizer configuration

90DIM Lrn$[2000]

100INTEGER I

110OUTPUT @A_d;"*LRN?"

120ENTER @A_d;Lrn$

130Lrn$=Lrn$&";"

140REPEAT

150

I=POS(Lrn$,";")

160

PRINT Lrn$[1;I-1]

170Lrn$=Lrn$[I+1]

180UNTIL Lrn$=""

190SUBEND

Chapter 1

Getting Started 25

Page 25
Image 25
HP E1429A manual Querying Digitizer Configuration, Lrn?, Integer, Repeat