<label_name> a string of up to 6 alphanumeric characters
<line_num> integer from –245760 to +245760
<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 XXX;":MACH INE2:COMPARE:DAT A ’CLOCK’, 42, ’ #B011X101X’"
OUTPUT XXX;":MA CHINE2:COMPARE:D ATA ’OUT3’, 0, ’#H FF40’"
OUTPUT XXX;":MA CHINE1:COMPARE:D ATA 129, ’#BXX00’, ’#B1101’,
’#B10XX’"
OUTPUT XXX;":MACH 2:COMPARE:DATA 511, ’4’, ’64’, ’16’, 256’,
’8’, ’16’"
Query :MACHine{1|2}:COMPare:DATA? <label _n ame>,<line_num>
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 DIM Label$[6], Res ponse$[80]
15 PRINT "This program shows th e values for a sig nal’s Compare li sting"
20 INPUT "Enter signal label: " , Label$
25 OUTPUT XXX;":SYSTEM:HEADER OFF" !Turn headers off (from responses)
30 OUTPUT XXX;":MACHINE2:COMPARE:RANGE?"
35 ENTER XXX; F irst, Last !Read i n the range’s en d-points
40 PRINT "LINE #", "VALUE of "; Label$
45 FOR State = First TO Last !Print compare value fo r each state
50 OUTPUT XXX;":MACH2:COMPARE:DATA? ’" Label$ "’," VAL$(State)
55 ENTER XXX; Response$
60 PRINT Stat e, Response$
65 NEXT State
70 END
COMPare Subsystem
DATA
20–7