Agilent Technologies 1660AS TV Converter Box User Manual


 
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 Logic 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 ! ************** NOTE ****************
100 ! If your query response includes real
110 ! or integer numbers that you may want
120 ! to do statistics or math on later, you
130 ! should turn both header and longform
140 ! off so only the number is returned.
150 ! *************************************
160 !
170 OUTPUT 707;":SYSTEM:HEADER ON"
180 OUTPUT 707;":SYSTEM:LONGFORM ON"
190 !
200 ! *************************************************************
210 ! Select the slot in which the logic analyzer is located.
220 ! Always a 1 for the 1660-series logic analyzers.
230 OUTPUT 707;":SELECT 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