Sending Queries to the Logic Analysis System
This program example contains the steps required to send a query to the
logic analysis system. Sending the query alone only puts the requested
information in an output buffer of the logic analysis system. 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 analysis system, the
query is properly terminated in the logic analyzer. If you send the query but
fail to send an
ENTER
statement, the logic analysis system 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 HP 16500C/16501A Logic analysis system
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 mainframe.
220 ! Always a 0 for the HP 16500C/16501A mainframe.
230 OUTPUT 707;":SELECT 0"
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 Analysis System
15–7
Содержание 16501A LOGIC
Страница 2: ...ii ...
Страница 12: ...Contents 8 ...
Страница 14: ......
Страница 15: ...1 Introduction to Programming ...
Страница 38: ...1 24 ...
Страница 39: ...2 Programming Over HP IB ...
Страница 45: ...3 Programming Over RS 232 C ...
Страница 55: ...4 Programming Over LAN ...
Страница 68: ...4 14 ...
Страница 69: ...5 Programming and Documentation Conventions ...
Страница 75: ...Figure 5 1 HP 16500C Command Tree Programming and Documentation Conventions The Command Tree 5 7 ...
Страница 81: ...6 Message Communication and System Functions ...
Страница 86: ...Figure 6 1 Example syntax diagram Message Communication and System Functions Syntax Diagrams 6 6 ...
Страница 88: ...Figure 6 2 program message Parse Tree Message Communication and System Functions Syntax Overview 6 8 ...
Страница 91: ...7 Status Reporting ...
Страница 93: ...Figure 7 1 Status Byte Structures and Concepts Status Reporting 7 3 ...
Страница 97: ...Figure 7 2 Service Request Enabling Status Reporting Key Features 7 7 ...
Страница 100: ...Figure 7 3 Parallel Poll Data Structure Status Reporting Parallel Poll 7 10 ...
Страница 105: ...8 Error Messages ...
Страница 106: ...Introduction This chapter lists the error messages that relate to the HP 16500C Logic Analysis System 8 2 ...
Страница 110: ...8 6 ...
Страница 112: ......
Страница 113: ...9 Common Commands ...
Страница 116: ...Figure 9 1 Common Commands Syntax Diagram Common Commands 9 4 ...
Страница 122: ...Figure 9 2 IST Data Structure Common Commands IST Individual Status 9 10 ...
Страница 132: ...9 20 ...
Страница 133: ...10 Mainframe Commands ...
Страница 135: ...Figure 10 1 Mainframe Commands Syntax Diagram Mainframe Commands 10 3 ...
Страница 136: ...Figure 10 1 continued Mainframe Commands Syntax Diagram continued Mainframe Commands 10 4 ...
Страница 154: ...Figure 10 2 Select Command Tree Only available when an HP 16501A is connected Mainframe Commands SELect 10 22 ...
Страница 159: ...11 SYSTem Subsystem ...
Страница 161: ...Figure 11 1 System Subsystem Commands Syntax Diagram SYSTem Subsystem 11 3 ...
Страница 172: ...11 14 ...
Страница 173: ...12 MMEMory Subsystem ...
Страница 175: ...Figure 12 1 MMEMory Subsystem Commands Syntax Diagram MMEMory Subsystem 12 3 ...
Страница 176: ...Figure 12 1 Continued MMEMory Subsystem Commands Syntax Diagram Continued MMEMory Subsystem 12 4 ...
Страница 177: ...Figure 12 1 Continued MMEMory Subsystem Commands Syntax Diagram Continued MMEMory Subsystem 12 5 ...
Страница 198: ...12 26 ...
Страница 199: ...13 INTermodule Subsystem ...
Страница 201: ...Figure 13 1 Intermodule Subsystem Commands Syntax Diagram INTermodule Subsystem 13 3 ...
Страница 202: ...Figure 13 1 continued Intermodule Subsystem Commands Syntax Diagram continued INTermodule Subsystem 13 4 ...
Страница 216: ...13 18 ...
Страница 217: ...14 TGTctrl Subsystem ...
Страница 219: ...Figure 14 1 Targetcontrol Subsystem Commands Syntax Diagram TGTctrl Subsystem 14 3 ...
Страница 220: ...Figure 14 1 continued Targetcontrol Subsystem Commands Syntax Diagram TGTctrl Subsystem 14 4 ...
Страница 233: ...Part 3 15 Programming Examples 15 1 Programming Examples ...
Страница 234: ......
Страница 235: ...15 Programming Examples ...