Summary of Contents for Agilent Technologies HP 16500B
Page 1
sales@artisantg.com artisantg.com (217) 352-9330 | Click HERE Find the Keysight / Agilent 16500B at our website:...
Page 2
This manual may contain references to HP or Hewlett-Packard. Please note that Hewlett- Packard's former test and measurement, semiconductor products and chemical analysis businesses are now part of Agilent Technologies. We have made no changes to this manual copy. The HP XXXX referred to in this document is now the Agilent XXXX.
Page 4
Mainframe Commands Organization When you received your HP 16500B you SYSTem Subsystem received two binders, Volume 1 and Volume 2. The Volume 2 binder gives you a place to insert the module MMEMory Subsystem programmer’s guides when the Volume 1...
Page 5
Part 3 Part 3, chapter 13, contains program examples of actual tasks that show you how to get started in programming the HP 16500B/ 16501A Logic Analysis System at the mainframe level. The complexity of your programs and the tasks they accomplish are limited only by your imagination.
Page 6
Contents Part 1 General Information 1 Introduction to Programming Introduction 1–2 Talking to the Logic Analysis System 1–3 Talking to Individual System Modules 1–4 Initialization 1–4 Instruction Syntax 1–6 Output Command 1–6 Device Address 1–7 Instructions 1–7 Instruction Terminator 1–8 Header Types 1–9 Duplicate Keywords 1–10 Query Usage 1–11...
Page 11
Contents Part 3 Programming Examples 13 Programming Examples Transferring the Mainframe Configuration 13–3 Checking for Intermodule Measurement Completion 13–6 Sending Queries to the Logic Analysis System 13–7 Getting ASCII Data with PRINt? ALL Query 13–9 Reading the disk with the CATalog? ALL query 13–10 Reading the Disk with the CATalog? Query 13–11 Printing to the disk 13–12 Index...
Page 12
Part 1 1 Introduction to Programming 1-1 2 Programming Over HP-IB 2-1 3 Programming Over RS232C 3-1 4 Programming and Documentation Conventions 4-1 5 Message Communication and System Functions 5-1 6 Status Reporting 6-1 7 Error Messages 7-1 General Information Artisan Scientific - Quality Instrumentation ...
Page 15
The programming instructions explained in this book conform to IEEE Std 488.2-1987, "IEEE Standard Codes, Formats, Protocols, and Common Commands." These programming instructions provide a means of remotely controlling the HP 16500B Logic Analysis System. There are three general categories of use. You can: •...
Page 16
Module, you will need to refer to the HP 16500L LAN Interface Module User’s Guide to understand how to send the commands in this guide. When programming the HP 16500B with the HP 16501A Expansion Frame connected, most of the remote operation of the expansion frame is transparent.
Page 17
Talking to Individual System Modules Talking to Individual System Modules Talking to individual system modules within the HP 16500B Logic Analysis System is done by preceding the module commands with the SELECT command and the number of the slot in which the desired module is installed.
Page 18
Introduction to Programming Initialization Example This BASIC statement would load the configuration file "DEFAULT " (if it exists) into the system. OUTPUT XXX;":MMEMORY:LOAD:CONFIG ’DEFAULT ’" Example Program This program demonstrates a simple HP BASIC command structure used to program the logic analysis system. 10 CLEAR XXX !Initialize instrument interface 20 OUTPUT XXX;":SYSTEM:HEADER ON"...
Page 19
Introduction to Programming Instruction Syntax Instruction Syntax To program the system remotely, you must have an understanding of the command format and structure. The IEEE 488.2 standard governs syntax rules pertaining to how individual elements, such as headers, separators, parameters and terminators, may be grouped together to form complete instructions.
Page 20
Introduction to Programming Device Address Device Address The location where the device address must be specified also depends on the host language that you are using. In some languages, this could be specified outside the output command. In BASIC, this is always specified after the keyword OUTPUT.
Page 21
Introduction to Programming Instruction Terminator When you look up a query in this programmer’s reference, you’ll find a paragraph labeled "Returned Format" under the one labeled "Query." The syntax definition by "Returned format" will always show the instruction header in square brackets, like [:SYSTem:MENU], which means the text between the brackets is optional.
Page 22
Introduction to Programming Header Types Header Types There are three types of headers: Simple Command, Compound Command, and Common Command. Simple Command Header Simple command headers contain a single keyword. START and STOP are examples of simple command headers typically used in this logic analyzer. The syntax is: <function><terminator>...
Page 23
Introduction to Programming Duplicate Keywords Common Command Header Common command headers control IEEE 488.2 functions within the logic analyzer, such as, clear status. The syntax is: *<command header><terminator> No white space or separator is allowed between the asterisk and the command header.
Page 24
Introduction to Programming Query Usage Query Usage Logic analysis system instructions that are immediately followed by a question mark (?) are queries. After receiving a query, the logic analysis system parser places the response in the output buffer. The output message remains in the buffer until it is read or until another instruction is issued.
Page 25
Introduction to Programming Program Header Options Program Header Options Program headers can be sent using any combination of uppercase or lowercase ASCII characters. System responses, however, are always returned in uppercase. Both program command and query headers may be sent in either long form (complete spelling), short form (abbreviated spelling), or any combination of long form and short form.
Page 26
Introduction to Programming Parameter Data Types Parameter Data Types There are three main types of data which are used in parameters. They are numeric, string, and keyword. A fourth type, block data, is used only for a few instructions: the DATA and SETup instructions in the SYSTem subsystem (see chapter 10);...
Page 27
Introduction to Programming Parameter Data Types You may not specify a base in conjunction with either exponents or unit suffixes. Additionally, negative numbers must be expressed in decimal. When a syntax definition specifies that a number is an integer, that means that the number should be whole.
Page 28
Introduction to Programming Selecting Multiple Subsystems Selecting Multiple Subsystems You can send multiple program commands and program queries for different subsystems within the same selected module on the same line by separating each command with a semicolon. The colon following the semicolon enables you to enter a new subsystem.
Page 29
Introduction to Programming Selecting Multiple Subsystems Receiving Information from the Logic Analysis System After receiving a query (logic analysis system instruction followed by a question mark), the system interrogates the requested function and places the answer in its output queue. The answer remains in the output queue until it is read, or, until another command is issued.
Page 30
Introduction to Programming Response Header Options Response Header Options The format of the returned ASCII string depends on the current settings of the SYSTEM HEADER and LONGFORM commands. The general format is <instruction_header><space><data><terminator> The header identifies the data that follows (the parameters) and is controlled by issuing a :SYSTEM:HEADER ON/OFF command.
Page 31
Introduction to Programming Response Data Formats Response Data Formats Both numbers and strings are returned as a series of ASCII characters, as described in the following sections. Keywords in the data are returned in the same format as the header, as specified by the LONGform command. Like the headers, the keywords will always be in uppercase.
Page 32
String Variables String Variables Because there are so many ways to code numbers, the HP 16500B Logic Analysis System handles almost all data as ASCII strings. Depending on your host language, you may be able to use other types when reading in responses.
Page 33
Introduction to Programming Numeric Base Example The following example shows logic analyzer module data being returned to a string variable with headers off: 10 OUTPUT XXX;":SYSTEM:HEADER OFF" 20 DIM Rang$[30] 30 OUTPUT XXX;":SELECT 2:MACHINE1:TWAVEFORM:RANGE?" 40 ENTER XXX;Rang$ 50 PRINT Rang$ 60 END After running this program, the controller displays: +1.00000E-05 Numeric Base...
Page 34
Introduction to Programming Definite-Length Block Response Data Example The following example shows logic analyzer module data being returned to a numeric variable. 10 OUTPUT XXX;":SYSTEM:HEADER OFF" 20 OUTPUT XXX;":SELECT 2:MACHINE1:TWAVEFORM:RANGE?" 30 ENTER XXX;Rang 40 PRINT Rang 50 END This time the format of the number (whether or not exponential notation is used) is dependant upon your host language.
Page 35
Introduction to Programming Multiple Queries For example, for transmitting 80 bytes of data, the syntax would be: Figure 1-2 Definite-length Block Response Data The "8" states the number of digits that follow, and "00000080" states the number of bytes to be transmitted, which is 80. Multiple Queries You can send multiple queries to the system within a single program message, but you must also read them back within a single program message.
Page 36
Introduction to Programming System Status Example The response of the query :SYSTEM:HEADER?:LONGFORM? with HEADER and LONGFORM turned on is: :SYSTEM:HEADER 1;:SYSTEM:LONGFORM 1 If you do not need to see the headers when the numeric values are returned, then you could use numeric variables. When you are receiving numeric data into numeric variables, the headers should be turned off.
Page 39
Introduction This section describes the interface functions and some general concepts of the HP-IB. In general, these functions are defined by IEEE 488.1 (HP-IB bus standard). They deal with general bus management issues, as well as messages which can be sent over the bus as bus commands.
Programming Over HP-IB Interface Capabilities Interface Capabilities The interface capabilities of the HP 16500B, as defined by IEEE 488.1 are SH1, AH1, T5, TE0, L3, LE0, SR1, RL1, PP0, DC1, DT1, C0, and E2. Command and Data Concepts The HP-IB has two modes of operation: command mode and data mode. The bus is in command mode when the ATN line is true.
Programming Over HP-IB HP-IB Bus Addressing Talk only mode must be used when you want the system to talk directly to a printer without the aid of a controller. Addressed talk/listen mode is used when the system will operate in conjunction with a controller. When the system is in the addressed talk/listen mode, the following is true: •...
Programming Over HP-IB Bus Commands See Also :SYSTem:LOCKout in chapter 9, "Mainframe Commands" Bus Commands The following commands are IEEE 488.1 bus commands (ATN true). IEEE 488.2 defines many of the actions which are taken when these commands are received by the system. Device Clear The device clear (DCL) or selected device clear (SDC) commands clear the input and output buffers, reset the parser, clear any pending commands, and...
Page 45
Introduction This chapter describes the interface functions and some general concepts of the RS-232C. The RS-232C interface on this instrument is Hewlett-Packard’s implementation of EIA Recommended Standard RS-232C, "Interface Between Data Terminal Equipment and Data Communications Equipment Employing Serial Binary Data Interchange."...
Programming Over RS-232C Interface Operation Interface Operation The HP 16500B Logic Analysis System can be programmed with a controller over RS-232C using either a minimum three-wire or extended hardwire interface. The operation and exact connections for these interfaces are described in more detail in the following sections. When you are...
Programming Over RS-232C Minimum Three-Wire Interface with Software Protocol Minimum Three-Wire Interface with Software Protocol With a three-wire interface, the software (as compared to interface hardware) controls the data flow between the logic analysis system and the controller. The three-wire interface provides no hardware means to control data flow between the controller and the logic analysis system.
Programming Over RS-232C Extended Interface with Hardware Handshake Extended Interface with Hardware Handshake With the extended interface, both the software and the hardware can control the data flow between the logic analysis system and the controller. This allows you to have more control of data flow between devices. The logic analysis system uses the following connections on its RS-232C interface for extended interface communication: •...
Cable Examples HP 9000 Series 300 Figure 3-1 is an example of how to connect the HP 16500B Logic Analysis System to the HP 98628A Interface card of an HP 9000 series 300 controller. For more information on cabling, refer to the reference manual for your specific controller.
Page 50
Programming Over RS-232C Cable Examples HP Vectra Personal Computers and Compatibles Figures 3-2 through 3-4 give examples of three cables that will work for the extended interface with hardware handshake. Keep in mind that these cables should work if your computer’s serial interface supports the four common RS-232C handshake signals as defined by the RS-232C standard.
Page 51
Programming Over RS-232C Cable Examples Figure 3-3 shows the schematic of a 25-pin male to 25-pin male cable 5 meters in length. The following HP cable supports this configuration: • HP 13242G, DB-25(M) to DB-25(M), 5 meter Figure 3-3 25-pin (M) to 25-pin (M) Cable Figure 3-4 shows the schematic of a 9-pin female to 25-pin male cable.
If you are not familiar with how to configure the RS-232C interface, refer to chapter 4, "The HP-IB and RS232-C Interfaces" in the HP 16500B Logic Analysis System User’s Reference. 3–9 Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com...
RS-232C bus. The RS-232C interface capabilities of the HP 16500B Logic Analysis System are listed below: • Baud Rate: 110, 300, 600, 1200, 2400, 4800, 9600, or 19.2k •...
Programming Over RS-232C RS-232C Bus Addressing The controller and the HP 16500B Logic Analysis System must be in the same bit mode to properly communicate over the RS-232C. This means that the controller must have the capability to send and receive 8 bit data.
Programming Over RS-232C Lockout Command Lockout Command To lockout the front-panel controls, use the SYSTem command LOCKout. When this function is on, all controls (except the power switch) are entirely locked out. Local control can only be restored by sending the :LOCKout OFF command.
Page 57
Introduction This chapter covers the programming conventions used in programming the instrument, as well as the documentation conventions used in this manual. This chapter also contains a detailed description of the command tree and command tree traversal. 4–2 Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com...
Programming and Documentation Conventions Truncation Rule Truncation Rule The truncation rule for the keywords used in headers and parameters is: • If the long form has four or fewer characters, there is no change in the short form. When the long form has more than four characters the short form is just the first four characters, unless the fourth character is a vowel.
The first is when the query is parsed by the instrument and the second is when the controller addresses the instrument to talk so that it may read the response. The HP 16500B Logic Analysis System will buffer responses to a query when it is parsed.
<NL> The Command Tree The command tree (figure 4-1) shows all commands in the HP 16500B Logic Analysis System and the relationship of the commands to each other. You should notice that the common commands are not actually connected to the 4–5...
Page 61
Common Commands Common commands are independent of the tree, and do not affect the position of the parser within the tree. *CLS and *RST are examples of common commands. Figure 4-1 HP 16500B Command Tree 4–6 Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com...
Programming and Documentation Conventions Tree Traversal Rules Tree Traversal Rules Command headers are created by traversing down the command tree. A legal command header from the command tree in figure 4-1 would be :MMEMORY:INITIALIZE. This is refered to as a compound header. As shown on the tree, branches are always preceded by colons.
Page 63
Programming and Documentation Conventions Tree Traversal Rules above the keyword where the last header terminated. Any command below that point can be sent within the current program message without sending the keywords(s) which appear above them. For example, the colon separating MMEMORY and INITIALIZE is the location of the parser when this compund header is parsed.
OUTPUT XXX;":MMEM:CATALOG?;:SYSTEM:PRINT ALL" Command Set Organization The command set for the HP 16500B Logic Analysis System mainframe is divided into 5 separate groups as shown in figure 4-1. The command groups are: common commands, mainframe commands, and 3 sets of subsystem commands.
Only one subsystem may be selected at a time. At power on, the command parser is set to the root of the command tree; therefore, no subsystem is selected. The three subsystems in the HP 16500B Logic Analysis System are: •...
Page 66
Programming and Documentation Conventions Subsystems Table 4-2 Alphabetic Command Cross-Reference *CLS Common Mainframe *ESE Common LOAD MMEMory *ESR Common LOCKout Mainframe *IDN Common LONGform SYSTem *IST Common MENU Mainframe *OPC Common MESE Mainframe *OPT Common MESR Mainframe *PRE Common MKDir MMEMory *RST Common...
The program examples in chapter 13, "Programming Examples," were written on an HP 9000 Series 300 controller using the HP BASIC 6.2 language. The programs always assume a generic address for the HP 16500B Logic Analysis System of XXX. In the examples, you should pay special attention to the ways in which the command and/or query can be sent.
Message Communication and System Functions 5–1 Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com...
Page 69
IEEE 488.2 Standard in ANSI/IEEE Std 488.2-1987, "IEEE Standard Codes, Formats, Protocols, and Common Commands." The HP 16500B Logic Analysis System is designed to be compatible with other Hewlett-Packard IEEE 488.2 compatible instruments. Instruments that are compatible with IEEE 488.2 must also be compatible with IEEE 488.1 (HP-IB bus standard);...
Message Communication and System Functions Protocols Protocols The protocols of IEEE 488.2 define the overall scheme used by the controller and the instrument to communicate. This includes defining when it is appropriate for devices to talk or listen, and what happens when the protocol is not followed.
Page 71
Message Communication and System Functions Protocols Protocol Overview The instrument and controller communicate using program messages and response messages. These messages serve as the containers into which sets of program commands or instrument responses are placed. Program messages are sent by the controller to the instrument, and response messages are sent from the instrument to the controller in response to a query message.
Message Communication and System Functions Syntax Diagrams Protocol Exceptions If an error occurs during the information exchange, the exchange may not be completed in a normal manner. Some of the protocol exceptions are shown below. Command Error A command error will be reported if the instrument detects a syntax error or an unrecognized command header.
Page 73
Message Communication and System Functions Syntax Diagrams Figure 5-1 Example syntax diagram 5–6 Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com...
Message Communication and System Functions Syntax Overview Syntax Overview This overview is intended to give a quick glance at the syntax defined by IEEE 488.2. It will help you understand many of the things about the syntax you need to know. IEEE 488.2 defines the blocks used to build messages which are sent to the instrument.
Page 75
Message Communication and System Functions Syntax Overview Figure 5-2 <program message> Parse Tree 5–8 Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com...
Page 76
Message Communication and System Functions Syntax Overview Upper/Lower Case Equivalence Upper and lower case letters are equivalent. The mnemonic SINGLE has the same semantic meaning as the mnemonic single. <white space> <white space> is defined to be one or more characters from the ASCII set of 0 - 32 decimal, excluding 10 decimal (NL).
Page 77
Message Communication and System Functions Syntax Overview Suffix Unit The suffix units that the instrument will accept are shown in table 5-2. Table 5-2 <suffix unit> Suffix Referenced Unit Volt Second 5–10 Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com...
Page 79
This chapter describes the status registers, status bytes and status bits defined by IEEE 488.2 and discusses how they are implemented in the HP 16500B Logic Analysis System. Also in this chapter is a sample set of steps you use to perform a serial poll over HP-IB.
Page 80
Status Reporting Figure 6-1 Status Byte Structures and Concepts 6–3 Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com...
Status Reporting Event Status Register Event Status Register The Event Status Register is an IEEE 488.2 defined register. The bits in this register are "latched." That is, once an event happens which sets a bit, that bit will only be cleared if the register is read. Service Request Enable Register The Service Request Enable Register is an 8-bit register.
Page 82
PON - power on Indicates power has been turned on. URQ - user request Always returns a 0 from the HP 16500B Logic Analysis System. CME - command error Indicates whether the parser detected an error. The error numbers and strings for CME, EXE, DDE, and QYE can be read from a device-defined queue (which is not part of IEEE 488.2) with the query...
Status Reporting Key Features LCL - remote to local Indicates whether a remote to local transition has occurred. MSB - module summary bit Indicates that an enable event in one of the modules Status registers has occurred. Key Features A few of the most important features of Status Reporting are listed in the following paragraphs.
Status Reporting Serial Poll Serial Poll The HP 16500B Logic Analysis System supports the IEEE 488.1 serial poll feature. When a serial poll of the instrument is requested, the RQS bit is returned on bit 6 of the status byte.
After the serial poll is completed, the RQS bit in the HP 16500B Logic Analysis System Status Byte Register will be reset if it was set. Once a bit in the Status Byte Register is set, it will remain set until the status is cleared with a *CLS command, or the instrument is reset.
Page 86
Status Reporting Parallel Poll Figure 6-3 shows the Parallel Poll Data Structure. The summary bit is sent in response to a Parallel Poll. This summary bit is the "ist" (individual status) local message. The Parallel Poll Enable Register determines which events are summarized in the ist.
Configuring Parallel Poll Responses Certain devices, including the HP 16500B Logic Analysis System, can be remotely programmed by a controller to respond to a parallel poll. A device which is currently configured for a parallel poll responds to the poll by placing its current status on one of the bus data lines.
Status Reporting Conducting a Parallel Poll The value of Mask (any numeric expression can be specified) is first rounded and then used to configure the device’s parallel response. The least significant 3 bits (bits 0 through 2) of the expression are used to determine which data line the device is to respond on (place its status on).
Status Reporting Disabling Parallel Poll Responses Disabling Parallel Poll Responses The PPU (Parallel Poll Unconfigure) statement gives the controller the capability of disabling the parallel poll responses of one or more devices on the bus. Examples The following statement disables device 5 only: PPOLL UNCONFIGURE 705 This statement disables all devices on interface select code 8 from responding to a parallel poll:...
Page 91
Status Reporting HP-IB Commands Parallel Poll Enable Command The parallel poll enable secondary command (PPE) configures the devices which have received the PPC command to respond to a parallel poll on a particular HP-IB DIO line with a particular level. Parallel Poll Disable Command The parallel poll disable secondary command (PPD) disables the devices which have received the PPC command from responding to the parallel poll.
Error Messages Execution Errors Execution Errors –200 Can Not Do (generic execution error) –201 Not executable in Local Mode –202 Settings lost due to return-to-local or power on –203 Trigger ignored –211 Legal command, but settings conflict –212 Argument out of range –221 Busy doing something else –222 Insufficient capability or configuration –232 Output buffer full or overflow...
Page 96
Error Messages Query Errors –320 ROM error –321 ROM checksum –322 Hardware and Firmware incompatible –330 Power on test failed –340 Self Test failed –350 Too Many Errors (Error queue overflow) Query Errors –400 Query Error (generic) –410 Query INTERRUPTED –420 Query UNTERMINATED –421 Query received.
Page 101
• *OPT *WAI Common commands can be received and processed by the HP 16500B Logic Analysis System, whether they are sent over the bus as separate program messages or within other program messages. If an instrument subsystem has been selected and a common command is received by the instrument, the system will remain in the selected subsystem.
Page 102
Common Commands Example This program message initializes the disk, selects the module in slot A, then stores the file. In this example, :MMEMORY must be sent again in order to reenter the memory subsystem and store the file. ":MMEMORY:INITIALIZE;:SELECT 1;:MMEMORY:STORE ’FILE ’, ’DESCRIPTION’"...
Page 104
Common Commands *CLS (Clear Status) Table 8-1 Common Command Parameter Values Parameter Values mask An integer, 0 through 255. pre_mask An integer, 0 through 65535. *CLS (Clear Status) Command *CLS The *CLS common command clears all event status registers, queues, and data structures, including the device defined error queue and status byte.
Page 105
Common Commands *ESE (Event Status Enable) *ESE (Event Status Enable) Command *ESE <mask> The *ESE command sets the Standard Event Status Enable Register bits. The Standard Event Status Enable Register contains a bit to enable the status indicators detailed in table 8-2. A 1 in any bit position of the Standard Event Status Enable Register enables the corresponding status in the Standard Event Status Enable Register.
Page 106
Common Commands *ESR (Event Status Register) Table 8-2 Standard Event Status Enable Register Bit Position Bit Weight Enables PON - Power On URQ - User Request CME - Command Error EXE - Execution Error DDE - Device Dependent Error QYE - Query Error RQC - Request Control OPC - Operation Complete *ESR (Event Status Register)
Page 107
Common Commands *ESR (Event Status Register) Table 8-3 shows the Standard Event Status Register. The table details the meaning of each bit position in the Standard Event Status Register and the bit weight. When you read Standard Event Status Register, the value returned is the total bit weight of all the bits that are high at the time you read the byte.
Page 108
Common Commands *IDN (Identification Number) *IDN (Identification Number) Query *IDN? The *IDN? query allows the instrument to identify itself. It returns the string: "HEWLETT-PACKARD,16500B,0,REV <revision_code>" An *IDN? query must be the last query in a message. Any queries after the *IDN? in the program message are ignored.
Page 109
Common Commands *IST (Individual Status) Example OUTPUT XXX;"*IST?" Figure 8-2 *IST Data Structure 8–10 Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com...
Page 110
An overlapped command is a command that allows execution of subsequent commands while the device operations initiated by the overlapped command are still in progress. The overlapped commands for the HP 16500B are STARt and STOP. Example OUTPUT XXX;"*OPC"...
Page 111
System. The last five parameters list the installed software for the modules in slot A through E for an HP 16500B mainframe. When an HP 16501A Expansion frame is connected, there will be ten parameters after the INTERMODULE for modules in slots A through J.
Page 112
<pre_mask> Example This example will allow the HP 16500B to generate an "ist" when a message is available in the output queue. When a message is available, the MAV (Message Available) bit in the Status Byte Register will be high.
Page 113
MSB - Module Summary *RST (Reset) The *RST command is not implemented on the HP 16500B. The HP 16500B will accept this command, but the command has no affect on the system. The *RST command is generally used to place the system in a predefined state.
Page 114
Common Commands *SRE (Service Request Enable) *SRE (Service Request Enable) Command *SRE <mask> The *SRE command sets the Service Request Enable Register bits. The Service Request Enable Register contains a mask value for the bits to be enabled in the Status Byte Register. A one in the Service Request Enable Register will enable the corresponding bit in the Status Byte Register.
Page 115
Common Commands *STB (Status Byte) Table 8-5 HP 16500B Service Request Enable Register Bit Position Bit Weight Enables 15-8 not used not used MSS - Master Summary Status (always 0) ESB - Event Status MAV - Message Available LCL- Local...
Page 116
Common Commands *TRG (Trigger) Table 8-6 The Status Byte Register Bit Position Bit Weight Bit Name Condition 0 = not Used 0 = instrument has no reason for service 1 = instrument is requesting service 0 = no event status conditions have occurred 1 = an enabled event status condition has occurred 0 = no output messages are ready 1 = an output message is ready...
Page 117
Common Commands *TST (Test) *TST (Test) Query *TST? The *TST query returns the results of the power-up self-test. The result of that test is a 9-bit mapped value which is placed in the output queue. A one in the corresponding bit means that the test failed and a zero in the corresponding bit means that the test passed.
Page 118
An overlapped command is a command that allows execution of subsequent commands while the device operations initiated by the overlapped command are still in progress. Some examples of overlapped commands for the HP 16500B are STARt and STOP. Example: OUTPUT XXX;"*WAI"...
Page 121
Introduction Mainframe commands control the basic operation of the instrument for both the HP 16500B mainframe alone or with the HP 16501A expansion frame connected. Mainframe commands can be called at anytime, and from any module. The only difference in mainframe commands with an HP 16501A connected is the number of slots and modules.
Page 124
Parameter Values value An integer from 0 to 65535. module An integer from –2 through 5 for an HP 16500B alone or from –2 through 10 with an HP 16501A connected. menu An integer. enable_value An integer from 0 to 255.
Page 125
Mainframe Commands BEEPer BEEPer Command :BEEPer [{ON|1}|{OFF|0}] The BEEPer command sets the beeper mode, which turns the beeper sound of the instrument on and off. When BEEPer is sent with no argument, the beeper will be sounded without affecting the current mode. Example OUTPUT XXX;":BEEPER"...
Page 126
CAPability CAPability Query :CAPability? The CAPability query returns the IEEE 488.1 "Interface Requirements for Devices" capability sets implemented in the device. Table 9-2 lists the capability sets implemented in the HP 16500B. Returned Format [:CAPability] IEEE488,1987,SH1,AH1,T5,L4,SR1,RL1,PP1,DC1, DT1,C0,E2<NL> Example OUTPUT XXX;":CAPABILITY?"...
Page 127
:CARDcage? The CARDcage query returns a series of integers which identifies the modules that are installed in the mainframe. For an HP 16500B alone, the first five numbers returned are the card identification numbers (a –1 means no card is in the slot). The remaining five numbers returned indicate the module assignment for each card.
Page 128
Mainframe Commands CARDcage Table 9-2 Card Identification Numbers Id Number Card HP 16515A 1 GHz Timing Master Card HP 16516A 1 GHz Timing Expansion Card HP 16530A Oscilloscope Timebase Card HP 16531A Oscilloscope Acquisition Card HP 16532A Oscilloscsope Card HP 16520A Pattern Generator Master Card HP 16521A Pattern Generator Expansion Card HP 16511B Logic Analyzer Cards HP 16510A or B Logic Analyzer Card...
Page 129
CESR register and contains the combined status of all of the MESE (Module Event Status Enable) registers of the HP 16500B. Table 9-3 lists the bit values for the CESE register. An integer from 0 to 65535 <value>...
Page 130
The CESR query returns the contents of the Combined Event Status register. This register contains the combined status of all of the MESRs (Module Event Status Registers) of the HP 16500B System. Table 9-4 lists the bit values for the CESR register.
Page 131
Mainframe Commands CESR (Combined Event Status Register) Table 9-4 HP 16500B Combined Event Status Register Bit Weight Bit Name Condition 11-15 0 = not used 1024 Module J 0 = No new status 1 = Status to report Module I...
Page 132
Mainframe Commands EOI (End Or Identify) EOI (End Or Identify) Command :EOI {{ON|1}|{OFF|0}} The EOI command specifies whether or not the last byte of a reply from the instrument is to be sent with the EOI bus control line set true or not. If EOI is turned off, the logic analyzer will no longer be sending IEEE 488.2 compliant responses.
Page 133
Mainframe Commands LOCKout Example OUTPUT XXX;":LER?" LOCKout Command :LOCKout {{ON|1}|{OFF|0}} The LOCKout command locks out or restores front panel operation. When this function is on, all controls (except the power switch) are entirely locked out. Example OUTPUT XXX;":LOCKOUT ON" Query :LOCKout? The LOCKout query returns the current status of the LOCKout command.
Page 134
(defaults to 0). Table 9-5 lists the module parameters. The mainframe menus and their parameters are listed in table 9-6. Selects module or system. An integerfrom –2 through 5 for HP 16500B only <module> or an integer from –2 through 10 with an HP 16501A connected.
Page 135
MESR register. The <N> index specifies the module, and the parameter specifies the enable value. For the HP 16500B alone, the <N> index 0 through 5 refers to system and modules 1 through 5 respectively. With an HP 16501A connected, the <N> index 6 through 10 refers to modules 6 through 10 respectively.
Page 136
Status Enable register bits, bit weights, and what each bit masks for the mainframe. Returned Format [:MESE<N>] <enable_value><NL> Example OUTPUT XXX;":MESE1?" Table 9-7 HP 16500B Mainframe (Intermodule) Module Event Status Enable Register Bit Position Bit Weight Enables not used not used not used...
Page 137
:MESR<N>? The MESR query returns the contents of the Module Event Status register. The <N> index specifies the module. For the HP 16500B alone, the <N> index 0 through 5 refers to system and modules 1 through 5 respectively. With an HP 16501A connected, the <N> index 6 through 10 refers to modules 6 through 10 respectively.
Page 138
Mainframe Commands RMODe RMODe Command :RMODe {SINGle|REPetitive} The RMODe command specifies the run mode for the selected module (or Intermodule). If the selected module is in the intermodule configuration, then the intermodule run mode will be set by this command. After specifying the run mode, use the STARt command to start the acquisition.
Page 139
Mainframe Commands RTC (Real-time Clock) RTC (Real-time Clock) Command :RTC <day>,<month>,<year>,<hour>,<minute>,<second> The real-time clock command allows you to set the real-time clock to the current date and time. integer from 1 to 31 <day> integer from 1 to 12 <month> integer from 1990 to 2089 <year>...
Page 140
The appropriate module (or system) must be selected before any module (or system) specific commands can be sent. SELECT 0 selects System, SELECT 1 through 5 selects modules A through E in an HP 16500B only. SELECT 1 through 10 selects modules A through J when an HP 16501A is connected.
Page 141
Mainframe Commands SELect Figure 9-2 Only available when an HP 16501A is connected Select Command Tree 9–22 Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com...
Page 142
Mainframe Commands SETColor SETColor Command :SETColor {<color>,<hue>,<sat>,<lum>|DEFault} The SETColor command is used to change one of the color selections on the CRT, or to return to the default screen colors. Four parameters are sent with the command to change a color: •...
Page 143
Mainframe Commands STARt Query :SETColor? <color> The SETColor query returns the hue, saturation, and luminosity values for a specified color. Returned Format [:SETColor] <color>,<hue>,<sat>,<lum><NL> Example OUTPUT XXX;":SETCOLOR? 3" STARt Command :STARt The STARt command starts the selected module (or Intermodule) running in the specified run mode (see RMODe).
Page 144
Mainframe Commands STOP STOP Command :STOP The STOP command stops the selected module (or Intermodule). If the specified module is in the Intermodule configuration, then the Intermodule run will be stopped. The STOP command is an overlapped command. An overlapped command is a command that allows execution of subsequent commands while the device operations initiated by the overlapped command are still in progress.
Page 145
The XWINdow ON command opens a window. If no display name is specified, the display name already stored in the HP 16500B X Window configuration menu is used. If a display name is specified, that name is used. The specified display name also is stored in non-volatile memory in the HP 16500B.
Page 147
Introduction SYSTem subsystem commands control functions that are common to the entire logic analysis system, including formatting query responses and enabling reading and writing to the advisory line of the instrument. Refer to figure 10-1 and table 10-1 for the SYStem Subsystem commands syntax diagram.
Page 149
SYSTem Subsystem Table 10-1 SYSTem Parameter Values Parameter Values block_data Data in IEEE 488.2 format. string A string of up to 68 alphanumeric characters. pathname A string of up to 10 alphanumeric characters for LIF in the following form: NNNNNNNNNN A string of up to 64 alphanumeric characters for DOS in one of the following forms: NNNNNNNN.NNN when the file resides in the present working...
Page 150
SYSTem Subsystem DATA DATA Command :SYSTem:DATA <block_data> The DATA command allows you to send and receive acquired data to and from a controller in block form. This helps saving block data for: • Reloading the logic analysis system • Processing data later in the logic analysis system •...
Page 151
SYSTem Subsystem DSP (Display) Query :SYSTem:DATA? The SYSTem:DATA query returns the block data. The data sent by the SYSTem:DATA query reflects the configuration of the a selected module when the last acquisition was performed. Any changes made since then through either front-panel operations or programming commands do not affect the stored data.
Page 152
STRing, then the error should be returned in the following form: <error_number>,<error_message (string)> A complete list of error messages for the HP 16500B logic analysis system is shown in chapter 7, "Error Messages." If no errors are present in the error queue, a zero (No Error) is returned.
Page 153
SYSTem Subsystem HEADer HEADer Command :SYSTem:HEADer {{ON|1}|{OFF|0}} The HEADer command tells the instrument whether or not to output a header for query responses. When HEADer is set to ON, query responses will include the command header. Example OUTPUT XXX;":SYSTEM:HEADER ON" Query :SYSTem:HEADer? The HEADer query returns the current state of the HEADer command.
Page 154
SYSTem Subsystem LONGform LONGform Command :SYSTem:LONGform {{ON|1}|{OFF|0}} The LONGform command sets the long form variable, which tells the instrument how to format query responses. If the LONGform command is set to OFF, command headers and alpha arguments are sent from the instrument in the abbreviated form.
Page 155
SYSTem Subsystem PRINt PRINt Commands :SYSTem:PRINt ALL[,DISK, <pathname>[,<msus>]] :SYSTem:PRINt PARTial,<start>,<end> [,DISK, <pathname>[,<msus>]] :SYSTem:PRINt SCReen[,DISK, <pathname> [,<msus>], {BTIF|CTIF|PCX|EPS}] The PRINt command initiates a print of the screen or listing buffer over the current PRINTER communication interface to the printer or to a file on the disk.
Page 156
PRINT? ALL is only available in menus that have the "Print All" option available on the front panel. For more information, refer to the HP 16500B Logic Analysis System User’s Reference .
Page 157
SYSTem Subsystem SETup The :SYStem:SETup command configures the logic analysis system as defined by the block data sent by the controller. This chapter describes briefly the syntax of the Setup command and query for the mainframe. Because of the capabilities and importance of the Setup command and query for individual modules, a complete chapter is dedicated to it in each of the module Programmer’s Guides.
Page 160
Introduction The MMEMory (mass memory) subsystem commands provide access to both the hard and flexible disk drives. The HP 16500B Logic Analysis System supports the DOS (Disk Operating System) format on the hard drive and both DOS and LIF (Logical Information Format) on the flexible drive.
Page 161
MMEMory Subsystem <msus> refers to the mass storage unit specifier. INTernal0 specifies the hard disk drive and INTernal1 specifies the flexible disk drive. If you are not going to store information to the flexible configuration disk, or if the flexible disk you are using contains information you need, it is advisable to write protect your disk.
Page 165
An integer, refer to table 11-2. block_data Data in IEEE 488.2 format. module An integer, –2 through 5 for the HP 16500B alone. –2 through 10 with the HP 16501A connected. ia_name A string of up to 10 alphanumeric characters for LIF in the following form: "NNNNNNNNNN"...
Page 166
MMEMory Subsystem AUToload AUToload Command :MMEMory:AUToload {{OFF|0}|{<auto_file>}}[,<msus>] The AUToload command controls the autoload feature which designates a set of configuration files to be loaded automatically the next time the instrument is turned on. The OFF parameter (or 0) disables the autoload feature. A string parameter may be specified instead to represent the desired autoload file.
Page 167
MMEMory Subsystem CATalog CATalog Query :MMEMory:CATalog? [[All,][<msus>]] The CATalog query returns the directory of the disk in one of two block data formats. The directory consists of a 51 character string for each file on the disk when the ALL option is not used. Each file entry is formatted as follows: "NNNNNNNNNN TTTTTTT FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"...
Page 168
The slash (/) character in DOS path names will be automatically translated to the backslash character (\) on the disk; therefore, any flexible DOS disk used in the HP 16500B will be compatible in DOS computers. 11–10 Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com...
Page 169
MMEMory Subsystem COPY COPY Command :MMEMory:COPY <name>[,<msus>],<new_name>[,<msus>] The COPY command copies one file to a new file or an entire disk’s contents to another disk. The two <name> parameters are the filenames. The first pair of parameters specifies the source file which must reside in the present working directory.
Page 170
MMEMory Subsystem DOWNload Examples To copy the contents of "FILE1" to "FILE2: OUTPUT XXX;":MMEMORY:COPY ’FILE1’,’FILE2’" To copy the contents of "FILE1" on the hard disk to "FILE2" on the flexible disk: OUTPUT XXX;":MMEMORY:COPY ’FILE1’INTERNAL0,’FILE2’,INTERNAL1" DOWNload Command :MMEMory:DOWNload <name>[,<msus>],<description>, <type>,<block_data> The DOWNload command downloads a file to the mass storage device. The <name>...
Page 171
Table 11-2 File Types File File Type HP 16500B System Software –15603 HP 16500B Option Software –15602 HP 16500A or HP 16500B System Configuration –16127 Autoload File –15615 Inverse Assembler –15614 DOS file ( from Print to Disk) –5813 HP 16510A/B Configuration –16097...
Page 172
MMEMory Subsystem INITialize INITialize Command :MMEMory:INITialize [{LIF|DOS}[,<msus>]] The INITialize command formats the disk in DOS (Disk Operating System) on the hard drive or either DOS or LIF (Logical Information Format) on the flexible drive. If no format is specified, then the initialize command will format the disk in the DOS format.
Page 173
Mass Storage Unit specifier. INTernal0 for the hard disk drive and <msus> INTernal1 for the flexible disk drive. An integer, –2 through 5 for the HP 16500B alone. –2 through 10 with the HP <module> 16501A connected. Examples OUTPUT XXX;":MMEMORY:LOAD:CONFIG ’FILE...
Page 174
Mass Storage Unit specifier. INTernal0 for the hard disk drive and <msus> INTernal1 for the flexible disk drive. An integer, 1 through 5 for the HP 16500B alone. 1 through 10 with an HP <module> 16501A connected. Examples OUTPUT XXX;":MMEMORY:LOAD:IASSEMBLER ’I68020 IP’,1"...
Page 175
The slash (/) character in DOS path names will be automatically translated to the backslash character (\) on the disk; therefore, any flexible DOS disk used in the HP 16500B will be compatible in DOS computers. 11–17 Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com...
Page 176
MMEMory Subsystem MSI (Mass Storage Is) MSI (Mass Storage Is) Command :MMEMory:MSI [<msus>] The MSI command selects a default mass storage device. INTernal0 selects the hard disk drive and INTernal1 selects the flexible disk drive. Once the MSI is selected it remains the default drive until another MSI command is sent to the system.
Page 177
MMEMory Subsystem PACK PACK Command :MMEMory:PACK [<msus>] The PACK command packs the files on the LIF disk the disk in the drive. If a DOS disk is in the drive when the PACK command is sent, no action is taken. Mass Storage Unit specifier.
Page 178
MMEMory Subsystem PURGe PURGe Command :MMEMory:PURGe <name>[,<msus>] The PURGe command deletes files and directories from the disk in the specified drive. The PURge command only purges directories when the directory is empty. If the PURge command is sent with a directory name and the directory contains files, the message "Directory contains files"...
Page 179
MMEMory Subsystem PWD (Present Working Directory) PWD (Present Working Directory) Query :MMEMory:PWD? [<msus>] The PWD query returns the present working directory for the specified drive. If the <msus> option is not sent, the present working directory will be returned for the current drive. Returned Format [:MMEMory:PWD] <directory>,<msus><NL>...
Page 180
MMEMory Subsystem REName REName Command :MMEMory:REName <name>[,<msus>],<new_name> The REName command renames a file on the disk in the drive. The <name> parameter specifies the filename to be changed and the <new_name> parameter specifies the new filename. You cannot rename a file to an already existing filename. A string of up to 10 alphanumeric characters for LIF in the following form: <name>...
Page 181
<msus> INTernal1 for the flexible disk drive. A string of up to 32 alphanumeric characters <description> An integer, 1 through 5 for the HP 16500B alone. 1 through 10 with an <module> HP 16501A connected. Examples OUTPUT XXX;":MMEM:STOR ’DEFAULTS’,’SETUPS FOR ALL MODULES’"...
Page 182
The appropriate module designator "_X" is added to all files when they are stored. "X" refers to either an __ (double underscore) for the system or an _(A through E) for an HP 16500B alone or an _(A through J) with an HP 16501A connected.
Page 183
MMEMory Subsystem UPLoad Example 10 DIM Block$[32000] !allocate enough memory for block data 20 DIM Specifier$[2] 30 OUTPUT XXX;":EOI ON" 40 OUTPUT XXX;":SYSTEM HEAD OFF" 50 OUTPUT XXX;":MMEMORY:UPLOAD? ’FILE1’" !send upload query 60 ENTER XXX USING "#,2A";Specifier$ !read in #8 70 ENTER XXX USING "#,8D";Length !read in block length 80 ENTER XXX USING "-K";Block$ !read in file...
Page 184
MMEMory Subsystem VOLume VOLume Query :MMEMory:VOLume? [<msus>] The VOLume query returns the volume type of the disk. The volume types are DOS or LIF. Question marks (???) are returned if there is no disk, if the disk is not formatted, or if a disk has a format other than DOS or LIF. Mass Storage Unit specifier.
Page 186
Introduction The INTermodule subsystem commands specify intermodule arming from the rear-panel input BNC (ARMIN) or to the rear-panel output BNC (ARMOUT). Refer to figure 12-1 and table 12-1 for the INTermodule Subsystem commands syntax diagram. The INTermodule commands are: • DELete •...
Page 188
Table 12-1 INTermodule Parameter Values Parameter Value module An integer, 1 through 5 for HP 16500B alone. 1 through 10 with the HP 16501A connected. user_lev A real number from –4.0 to +5.0 volts in 0.02 volt incements index An integer, 1 through 5 for HP 16500B alone. 1 through 10 with the HP 16501A connected.
Page 189
The DELete command is used to delete a module, PORT OUT, or an entire intermodule tree. The <module> parameter sent with the delete command refers to the slot location of the module. An integer, 1 through 5 for HP 16500B alone. 1 through 10 with the HP <module> 16501A connected.
Page 190
INTermodule Subsystem HTIMe HTIMe Query :HTIMe? The HTIMe query returns a value representing the internal hardware skew in the Intermodule configuration. If there is no internal skew, 9.9E37 is returned. The internal hardware skew is only a display adjustment for time-correlated waveforms.
Page 191
INTermodule Subsystem INPort Example OUTPUT XXX;":INTERMODULE:HTIME?" INPort Command :INPort {{ON|1}|{OFF|0}} The INPort command causes intermodule acquisitions to be armed from the Input port. Example OUTPUT XXX;":INTERMODULE:INPORT ON" Query :INPort? The INPort query returns the current setting. Returned Format [:INTermodule:INPort] {1|0}<NL> Example OUTPUT XXX;":INTERMODULE:INPORT?"...
Page 192
PORT OUT will be located. 1 through 5 corresponds to the slot location of the modules A through E for the HP 16500B alone and 1 through 10 corresponds to slot loction of modules A through J when an HP 16501A is connected.
Page 193
INTermodule Subsystem PORTEDGE PORTEDGE Command :PORTEDGE <edge_spec> The PORTEDGE command sets the port input BNC to respond to either a rising edge of falling edge for a trigger from an external source. The threshold level of the input signal is set by the PORTLEV command. A 1 or ON for rising edge or a 0 or OFF for falling edge.
Page 194
INTermodule Subsystem PORTLEV PORTLEV Command :PORTLEV {TTL|ECL|<user_lev>} The PORTLEV (port level) command sets the threshold level at which the input BNC responds and produces an intermodule trigger. The preset levels are TTL and ECL. The user defined level is –4.0 volts to +5.0 volts. A real number from –4.0 to + 5.0 volts in 0.02 volt increments.
Page 195
A through J when an HP 16501A is connected). The <setting> parameter is the skew setting (– 1.0 to 1.0) in seconds. An integer, 1 through 5 for HP 16500B alone. 1 through 10 with the HP <N>...
Page 196
(Group run), and a positive value indicates the module is being armed by another module with the slot location 1 to 10. 1 through 10 corresponds to slots A through J. An integer, −1 through for an HP 16500B alone. −1 through 10 with the HP <module> 16501A connected.
Page 197
TTIMe Query :TTIMe? The TTIMe query returns five values (HP 16500B alone) representing the absolute intermodule trigger time for all of the modules in the Intermodule configuration. When an HP 16501A is connected, the TTIMe query returns 10 values. The first value is the trigger time for the module in slot A, the second value is for the module in slot B, the third value is for slot C, etc.
Page 198
INTermodule Subsystem TTIMe Returned Format [:INTermodule:TTIMe] <value 1>,<value 2>,<value 3>, <value 4>,<value 5>,<value 6>,<value 7>,<value 8>, <value 9>,<value 10><NL> <value 1> Trigger time for module in slot A (real number) Trigger time for module in slot B (real number) <value 2> Trigger time for module in slot C (real number) <value 3>...
Page 201
Introduction This chapter contains short, usable, and tested program examples that cover the most asked for examples. The examples are written in HP BASIC 6.2. • Transferring the mainframe configuration between the mainframe and the controller • Checking for intermodule measurement completion •...
Page 202
SYSTem:DATA? command and query is only usefull for modules. ! ****************** SETUP COMMAND AND QUERY EXAMPLE ******************** for the HP 16500B/16501A Logic Analysis System ! ********************* CREATE TRANSFER BUFFER ************************* ! Create a buffer large enough for the block data.
Page 203
Programming Examples Transferring the Mainframe Configuration ! *********************** SEND THE SETUP QUERY ************************** OUTPUT 707;":SYSTEM:HEADER ON" OUTPUT 707;":SYSTEM:LONGFORM ON" OUTPUT @Comm;"SELECT 0" OUTPUT @Comm;":SYSTEM:SETUP?" ! ******************** ENTER THE BLOCK SETUP HEADER ********************* ! Enter the block setup header in the proper format. ENTER @Comm USING "#,B";Byte PRINT CHR$(Byte);...
Page 204
! transfer. STATUS @Buff,5;Streg 1000 1010 ! ****************** TRANSFER SETUP TO THE HP 16500B ******************** 1020 ! Transfer the setup from the buffer to the HP 16500B mainframe. 1030 1040 TRANSFER @Buff TO @Comm;COUNT Numbytes,WAIT 1050 1060 ! ********************** RESTORE BUFFER POINTERS ***********************...
Page 205
Programming Examples Checking for Intermodule Measurement Completion Checking for Intermodule Measurement Completion This program can be appended to or inserted into another program when you need to know when an intermodule measurement is complete. If it is at the end of a program it will tell you when measurement is complete. If you insert it into a program, it will halt the program until the current measurement is complete.
Page 206
OUTPUT 707;":SYSTEM:HEADER ON" OUTPUT 707;":SYSTEM:LONGFORM ON" ! ************************************************************* ! Select the mainframe. ! Always a 0 for the HP 16500B/16501A mainframe. OUTPUT 707;":SELECT 0" ! **************************************************************** ! Dimension a string in which the query response will be entered. DIM Query$[100] ! **************************************************************** 13–7...
Page 207
Programming Examples Sending Queries to the Logic Analysis System ! Send the query. In this example the MENU? query is sent. ! queries except the SYSTem:DATA and SYSTem:SETup can be sent with ! this program. OUTPUT 707;"MENU?" ! **************************************************************** ! The two lines that follow transfer the query response from the ! query buffer to the controller and then print the response.
Page 208
You must select the proper menu. The only menus that allow you to use the PRINt? ALL query are the disk menu and listing menus. ****** ASCII DATA ******* ! This program gets the hard disk directory from the HP 16500B mainframe in ASCII form by using the PRINT? ALL query. !**************************************************************** DIM Block$[32000] OUTPUT 707;"EOI ON"...
Page 209
Programming Examples Reading the disk with the CATalog? ALL query Reading the disk with the CATalog? ALL query The following example program reads the catalog of the currently selected disk drive. The CATALOG? ALL query returns the entire 70-character field. Because DOS directory entries are 70 characters long, you should use the CATALOG? ALL query with DOS disks.
Page 210
Programming Examples Reading the Disk with the CATalog? Query Reading the Disk with the CATalog? Query This example program uses the CATALOG? query without the ALL option to read the catalog of the currently selected disk drive. However, if you do not use the ALL option, the query only returns a 51-character field.
Page 211
Programming Examples Printing to the disk Printing to the disk This program prints acquired data to a disk file. The file can be either on a LIF or DOS disk. If you print the file to a flexible disk in the DOS format, you will be able to view the file on a DOS compatible computer using any number of file utility programs.
Page 215
Index talking to, 1–4 SYSTem subsystem, 10–2 SYSTem:SETup command program example, 13–3 SYSTem:SETup query program example, 13–3 Talk only mode, 2–3 Terminator, 1–8 Three-wire Interface, 3–4 Trailing dots, 4–5 Transmit Data (TD), 3–4 to 3–5 TREE command, 12–12 Truncation rule, 4–3 TTIMe query, 12–13 Units, 1–13 UPLoad command, 11–24...
Page 217
This Hewlett-Packard This is the first edition of the Hewlett-Packard edition and of any changed product has a warranty HP 16500B/16501A specifically disclaims the pages to that edition. against defects in material Programmer’s Guide. implied warranties of...