HP (Hewlett-Packard) B Network Router User Manual


 
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.
20 ASSIGN @A_d TO 70905
30 !Call the subprogram
40 Lrn_conf(@A_d)
50 END
60 !
70 SUB Lrn_conf(@A_d)
80 Lrn_conf: !subprogram which queries the digitizer configuration
90 DIM Lrn$[2000]
100 INTEGER I
110 OUTPUT @A_d;"*LRN?"
120 ENTER @A_d;Lrn$
130 Lrn$=Lrn$&";"
140 REPEAT
150 I=POS(Lrn$,";")
160 PRINT Lrn$[1;I-1]
170 Lrn$=Lrn$[I+1]
180 UNTIL Lrn$=""
190 SUBEND
Chapter 1 Gettin
g
Started 25