Download HP 16554A User's Manual

Transcript
COMPare Subsystem
DATA
<label_name>
<line_num>
a string of up to 6 alphanumeric characters
integer from –122880 to +122880 (HP 16554A) or –253951 to +253951
(HP 16555A) or –507903 to +507903 (HP 16555D)
<data_pattern>
"{#B{0|1|X} . . . |
#Q{0|1|2|3|4|5|6|7|X} . . . |
#H{0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F|X} . . . |
{0|1|2|3|4|5|6|7|8|9} . . . }"
Example
OUTPUT
OUTPUT
OUTPUT
OUTPUT
Query
:MACHine{1|2}:COMPare:DATA? <label_name>,
<line_num>
XXX;":MACHINE2:COMPARE:DATA ’CLOCK’, 42, ’#B011X101X’"
XXX;":MACHINE2:COMPARE:DATA ’OUT3’, 0, ’#HFF40’"
XXX;":MACH1:COMP:DATA 129,’#BXX00’,’#B1101’,’#B10XX’"
XXX;":MACH1:COMP:DATA −511,’4’,’64’,’16’,’256’,’8’,’6’"
The DATA query returns the value of the compare listing image for a given
label and state row.
Returned Format
[:MACHine{1|2}:COMPare:DATA] <label_name>,<line_num>,
<data_pattern><NL>
Example
10
15
20
25
30
35
40
45
50
55
60
65
70
DIM Label$[6], Response$[80]
PRINT "This program shows the values for a signal’s Compare listing"
INPUT "Enter signal label: ", Label$
OUTPUT XXX;":SYSTEM:HEADER OFF"
!Turn headers off (from responses)
OUTPUT XXX;":MACHINE2:COMPARE:RANGE?"
ENTER XXX; First, Last
!Read in the range’s end-points
PRINT "LINE #", "VALUE of "; Label$
FOR State = First TO Last
!Print compare value for each state
OUTPUT XXX;":MACH2:COMPARE:DATA? ’" Label$ "’," VAL$(State)
ENTER XXX; Response$
PRINT State, Response$
NEXT State
END
10–7