Sending queries to the logic analyzer
This program example contains the steps required to send a query to the
logic analyzer. Sending the query alone only puts the requested information
in an output buffer of the logic analyzer. You must follow the query with an
ENTER statement to transfer the query response to the controller. When the
query response is sent to the logic analyzer, the query is properly terminated
in the logic analyer. If you send the query but fail to send an ENTER
statement, the logic analyzer will display the error message "Query
Interrupted" when it receives the next command from the controller, and, the
query response is lost.
10 !************************ QUERY EXAMPLE ***********************
20 ! for the 1660-series Lo gic Analyzers
30 !
40 ! ************************ OPTIONAL ***************************
50 ! The following two lines turn the headers and longform on so
60 ! that the query name , in its long form, is included in the
70 ! query response.
80 !
90 ! ****** ******** NOT E ********** ******
100 ! If you r query resp onse include s real
110 ! or integer numbers that you may want
120 ! to do statistics o r math on la ter, you
130 ! should turn both h eader and lo ngform
140 ! off so only the number is return ed.
150 ! ****** ************ ************ *******
160 !
170 OUTPUT 707;": SYSTEM:HEADE R ON"
180 OUTPUT 707;": SYSTEM:LONGF ORM ON"
190 !
200 ! *************************************************************
210 ! Select the slot in which the logic an alyzer is locate d.
220 ! Always a 1 for the 16 60-series logi c analyzers.
230 OUTPU T 707;":SELE CT 1"
240 !
250 ! ****************************************************************
260 ! Dimension a string in which the query response will be entered.
270 !
280 DIM Query$[100]
290 !
300 ! ****************************************************************
Programming Examples
Sending queries to the logic analyzer
36–22