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 analyzer. 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 Agilent 1670G-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 include s real
110 ! or integer numbers that you may want
120 ! to do statisti cs or math on la ter, you
130 ! should turn bo th header and lo ngform
140 ! off so only th e number is retu rned.
150 ! ************** **************** *******
160 !
170 OUTPUT 70 7;":SYSTEM:HEADE R ON"
180 OUTPUT 70 7;":SYSTEM:LONGF ORM ON"
190 !
200 ! *************************************************************
210 ! Select the slot in whic h the logic anal yzer is located.
220 ! Always a 1 for the Agil ent 1670-series logic analyzers.
230 OUTPUT 70 7;":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
43–18