Page 1
Programming Reference HP 1650B/HP 1651 B Logic Analyzers HEWLETT PACKARD @Copyright Hewlett-Packard Company 1989 Printed in the U.S.A. August 1989 Manual Number 0165040913...
Page 3
Product This Hewlett-Packard product has a warranty against defects in material and workmanship for a period of one year from date of shipment. During Warranty warranty period, Hewlett-Packard Company will, at its option, either repair or replace products that prove to be defective. For warranty service or repair, this product must be returned to a service facility designated by Hewlett-Packard.
Page 4
Exclusive Remedies THE REMEDIES PROVIDED HEREIN ARE THE BUYER’S SOLE AND EXCLUSIVE REMEDIES. HEWLETT-PACKARD SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER BASED ON CONTRACT, TORT, OR ANY OTHER LEGAL THEORY. Assistance Product maintenance agreements and other customer assistance agreements are available for Hewlett-Packard products.
Page 5
Printing History New editions are complete revisions of the manuai. Update packages, which are issued between editions, contain additional and replacement pages to be merged into the manual by the customer. The dates on the title page change only when a new edition or a new update is published. No information is incorporated into a reprinting unless it appears as a prior update;...
Page 6
List of Effective Pages The List of Effective Pages gives the data of the current edition and of any pages changed in updates to that edition. Within the manual, any page changed since the last edition will have the date the changes were made printed on the bottom of the page.
Send measurement data to the instrument The instructions listed in this manual give you access to the measurements and front panel features of the HP 165OB/51B. The complexity of your programs and the tasks they accomplish are limited only by your imagination.
HP 1650B/51B. For example, HP 9000 Series 200/300 BASIC uses the OUTPUT statement for sending commands and queries to the HP 1650B/51B. After a query is sent, the response is usually read in using the ENTER statement. All progr amming examples in this manual are presented in BASIC.
Output Command The output command is entirely dependant on the language you choose to use. Throughout this manual HP 9000 Series 200/300 BASIC 4.0 is used in the programmin g examples. People using another language will need to CLEAR in order to convert the examples. The instructions for the HP 1650B/51B are always shown between the double-quotes.
Compound Command Header. Compound command headers are a combination of two or more program keywords. The first keyword selects the subsystem, and the last keyword selects the function within that Introduction to Programming an instrument HP 1650B/HP 16518 Programming Reference...
Page 21
488.2 functions within the instrument (such as clear status, etc.). Their syntax is: No space or separator is allowed between the asterisk and the command header. *CLS is an example of a common command header. HP 1650B/HP 16518 Introduction to Programming an Instrument Programming Reference...
For example, the function keyword MMODE may be used to specify the marker mode in the subsystem for state listing or the timing waveforms: :TWAVEFORM:MMODE TIME SLIST and TWAVEFORM are subsystem selectors and determine which marker mode is being modified. HP 1650B/HP 16518 introduction to Programming an Instrument Programming Reference...
Sending another command before reading the result of the query will cause the output buffer to be cleared and the current response to be lost. This will also generate a “QUERY UNTERMINATED” error in the error queue. HP 1650B/HP 1651B Introduction to Programming an Instrument Programming Reference...
MMEMory subsystem (see chapter 7). These syntax rules also show how data may be formatted when sent back from the HP 1650B/51B as a response. The parameter list always follows the instruction header and is separated from it by white space. When more than one parameter is used, they are separated by commas.
Page 25
When receiving responses, upper-case letters will be used exclusively. The use of longform or shortform in a response depends on the setting you last specified via the SYSTem:LONGform command (see chapter 6). HP 1650B/HP 1651B Introduction to Programming an instrument Programming Reference...
The colon following the semicolon enables you to enter a new subsystem. For example: Multiple commands may be any combination of simple, compound and Note d common commands. Introduction to Programming an Instrument HP 1650B/HP 16518 Programming Reference l-10...
BASIC provides a CLEAR command which clears the interface buffer. If you’re using HP-IB, CLEAR will also reset the HP 1650B/XB’s parser. The parser is the program which reads in the instructions which you send it.
Example Program This program demonstrates the basic command structure used to program the HP 1650B/51B. instrument interface 10 CLEAR XXX OUTPUT XXX;":SYSTEM:HEADER ON" 30 OUTPUT XXX;" :SYSTEM:LDNGFORM ON" 40 OUTPUT XXX;" :MMEM:LOAD:CONFIG 'TEST-E'" configuration file 50 OUTPUT FDRMAT.l" 60 OUTPUT SINGLE"...
Page 29
The following examples show some possible responses for a query: with HEADER OFF: <data r -z terminator > with HEADER ON and LONGFORM OFF: with HEADER ON and LONGFORM ON: HP 1650B/HP 16618 Introduction to Programming an Instrument Programming Reference 1-13...
LONGform command. Like the headers, the keywords will always be in upper-case. The following are possible responses to the “MACHINEl: TFORMAT: LAB? ‘ADDR’ ” query. (Header off; Longform off) HP 1650B/HP 16518 introduction to Programming an Instrument Programming Reference 1-14...
String Variables Since there are so many ways to code numbers, the HP 1650B/XB handles almost all data as ASCII strings. Depending on your host language, you may be able to use other types when reading in responses. Sometimes it is helpful to use string variables in place of constants to send instructions to the HP 1650B/51B.
50 END This time the format of the number (such as whether or not exponential notation is used) is dependant upon your host language. In BASIC, the output would look like: HP 1650B/HP 16518 Introduction to Programming an Instrument Programming Reference...
The “8” states the number of digits that follow, and ‘WOOOO80” states the number of bytes to be transmitted. Indefinite-length block data is not supported on the HP1650B/51B. Note !!b HP 1650B/HP 16518 introduction to Programming an Instrument Programming Reference 1-17...
The appendix “Status Reporting” explains how to check the status of the instrument, Introduction to Programming an Instrument HP 1650B/HP 16518 Programming Reference 1-18...
Addressing By using the front-panel I/O and SELECT keys, the HP-IB interface can be placed in either talk only mode (Printer connected to HP-IB) or addressed talk/listen mode (Controller connected to HP-IB) (see “I/O Port Configuration” in chapter 5 of the HPl65OBIHP 1651B Front-Panel Reference manual).
DEVICE ADDRESS = (Interface Select Code) X 100 + (Instrument Address) For example, if the instrument address for the HP 1650B/51B is 4 and the interface select code is 7, when the program message is passed, the routine performs its function on the instrument at device address 704.
Lockout and the front panel will also be entirely active. If the HP 1650B/51B is in remote mode, the instrument will go from remote to local with any front panel activity.
Interface Clear (IFC) This command halts all bus activity. This includes unaddressing all listeners and the talker, disabling serial poll on all devices, and returning control to the system controller. HP 1650B/HP 16518 Programming Over HP-IB Programming Reference...
DCD and DSR inputs to the HP 1650B/51B must remain high for proper operation. With extended hardwire operation, a high 0; the CTS input allows the HP 1650B/51B to send data and a low on this line disables the HP 1650B/51B data transmission. Likewise, a high on the RTS line allows the controller to send data and a low on this line signals a request for the controller to disable data transmission.
Pin 2 TD (Transmit Data from HP 1650B/51B) Pin 3 RD (Receive Data into HP 1650B/51B) The TD (Transmit Data) line from the HP 1650B/51B must connect to the RD (Receive Data) line on the controller. Likewise, the RD line from the HP 1650BElB must connect to the TD Iine on the controller.
Pin 4 RTS (Request To Send) is an output from the HP 1650B/51B which can be used to control incoming data flow. Pm 5 CTS (Clear To Send) is an input to the HP 1650B/51B which controls data flow from the HP 1650B/51B.
HP 1650B/51B. Cable Example Figure 2-l is an example of how to connect the HP 1650B/51B to the HP 98628A Interface card of an HP 9000 series 200/300 controller. For more information on cabling, refer to the reference manual for your specific controller.
Interface The baud rate, stop bits, parity, protocol, and data bits must be configured exactly the same for both the controller and the HP 1650B/51B to Capabilities properly communicate over the RS-232C bus. The HP 1650B/51B RS-232C interface capabilities are listed below: Baud Rate: 110,300,600,1200,2400,4800,9600, or 19.2 k...
Information is usually stored in bytes (8 bits at a time). With Mode. need to convert the data. The controller and the HP 1650B/51B must be in the same bit mode to Note properly communicate over the RS-232C. This means that the controller must have the capability to send and receive 8 bit data.
Local control can only be restored by sending the command :LOCKout OFF. For more information on this command see the chapter “System Commands” in this manual. certain RS-232C states. HP 1650B/HP 1651B Programming Over RS-232C Programming Reference...
Some examples of how the truncation rule is applied to various commands are shown in table 4-l. Table 4-l. Keyword Truncation Shortform DATA DATA START STAR LONG DELAY ACCUMULATE A C C HP 1650B/HP 16518 Programming and Documentation Conventions Programming Reference...
The first is when the query is parsed by the instrument and the second is Generation when the controller addresses the instrument to talk so that it may read the response. The HP 1650B/51B will buffer responses to a query when it is parsed. Syntax At the beginning of each of the following chapters are syntax diagrams showing the proper syntax for each command.
Page 51
When several items are enclosed by braces and separated by 1 s, one, and only one of these elements must be selected. Three Xs after an ENTER or OUTPUT statement represent the device address required by your controller. HP 1650B/HP 16518 Programming and Documentation Conventions Programming Reference...
The Command The command tree (figure 4-l) shows all commands in the HP 1650B/51B logic analyzers and the relationship of the commands to each other. Tree Parameters are not shown in this figure. The command tree allows you to see what the HP 1650B/51B’s parser expects to receive. All legal headers of a branch has been reached.
Page 53
Example 3 OUTPUT In example 3, the leading colon before SYSTEM tells the parser to go back to the root of the command tree. The parser can then see the SYSTEM:PRINT command. HP 165OB/HP 16518 Programming and Documentation Conventions Programming Reference...
Page 54
‘eform: Accumulate COLumn DATA LINE R A N G e OPATtem OPATtem OTAG RANGe RUNTil REMove RUNTil XPATtem l RsT l SRE XTAG XPATtem Figure 4-1. HP 1650B/51 B Command Tree HP 1650B/HP 1651B Programming and Documentation Conventions Programming Reference...
Page 55
COMPare, STRace STOP &Race MMEMory STORe:CONfig SYSTem STRace MMEMory SFORmat, TFORmat SLISt, TWAVeform SFORmat TFORmat SYSTem MENU SLISt TWAVeform TWAVeform SLISt, TWAVeform TWAVeform SLISt, TWAVeform SLISt, TWAVeform SLISt, TWAVeform TWAVeform, WLISt HP 1650B/HP 16618 Programming and Documentation Conventions Programming Reference...
Command Set The command set for the HP 1650B/51B logic analyzer is divided into 17 separate groups: common commands, system commands and 15 sets of Organization subsystem commands. Each of the 17 groups of commands is described in the following chapters. Each of the chapters contain a brief description of the subsystem, a set of syntax diagrams for those commands, and finally, the commands for that subsystem in alphabetical order.
Examples and appendices were written on an HP 9000 Series 200/300 controller using the HP BASIC 4.0 language. The programs always assume a generic address for the HP 1650B/51B of XXX. In the following examples, special attention should be paid to the ways in which the command and/or query can be sent.
Common commands can be received and processed by the HP 1650B/51B whether they are sent over the bus by themselves or as part of a multiple-command string. If an instrument subsystem has been selected and a common command is received by the instrument, the instrument will remain in the selected subsystem.
Page 60
= An integer, 0 through 255. 77zis number is the sum of all the bits in mask the mask corresponding to conditions that are enabled. Refer to the Figure Common Commands Syntax Diagram HP 1650B/HP 16518 Common Commands Programming Reference...
Page 61
If the *CLS command immediately follows a -z terminator > , the output queue and the MAV (Message Available) bit will be cleared. Command Syntax: Example: OUTPUT ppendix B for a complete discussion of status. HP 1650B/HP 16518 Common Commands Programming Reference...
In this example, the *ESE 32 command will enable CME (Command Error), bit 5 of the Standard Event Status Enable Register. Therefore, when a command error occurs, the event summary bit (ESB) in the Status Byte Register will also be set. Common Commands HP 1650B/HP 1651B Programming Reference...
Page 63
URQ - User Request CME - Command Error EXE - Execution Error DDE - Device Dependent Error QYE - Query Error RQC - Request Control OPC - Operation Complete High - enables the ESR bit Common Commands HP 1650B/HP 1651B Programming Reference...
Standard Event Status Register, and the bit weight. When you read Standard Event Status Register, the value returned is the total bit weights of all bits that are high at the time you read the byte. HP 1650B/HP 16518 Common Commands Programming Reference...
1 = a query error has been detected 0 = request control - NOT used - always 0 0 = operation is not complete 1 = operation is complete 0 = False = Low 1 = True = High HP 1650B/HP 16518 Common Commands Programming Reference...
Query Syntax: *IDN? Returned Format: <revision code> where: c revision code > :: = fourdigit code representing ROM revision 1 0 D I M 20 OUTPUT 30 ENTER XXX;Id$ 40 PRINT 50 END HP 1650B/HP 16518 Common Commands Programming Reference...
Overlapped Commands. 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 1650B/51B are: STAR S T O P The *OPC query places an ASCII “1”...
*RST *RST (Reset) command The *RST command (488.2) sets the HP 1650B/51B to the power-up default settings as if no autoload file was present. The changes include: System Configuration menu is brought up Machine 1 is a timing analyzer, with auto-scale on...
Refer to Appendix B for a complete discussion of status. Note d Command Syntax: SRE c mask > where: :: = integer from 0 to 255 Example: OUTPUT XXX ; “*SRE 16” This example forces the MSS bit high (see table 5-3). HP 1650B/HP 16518 Common Commands Programming Reference...
Page 70
<ma sk> ::= sum of all bitsthatare set- Othrough 255 Example: 10 DIM Sre-value$[lOO] 20 OUTPUT XXX;"*SRE?" 30 ENTER XXX;Sre-value$ 40 PRINT Sre-value$ Table 5-3. HP 1650B/SlB Service Request Enable Register Enables Weight used 15-8 used MSS - Master Summary Status...
Refer to Appendix B for a complete discussion of status. Note @ Query Syntax: STi3? Returned Format: where: :: = integer from 0 to 255 Example: 10 DIM Stb-value$[lOO] 20 OUTPUT 30 ENTER XXX;Stb-value$ 40 PRINT Stb-value$ 50 END Common Commands HP 1650B/HP 16618 Programming Reference...
Page 72
0 = a remote-to-local transition has not occurred 1 = a remote-to-local transition has occurred not used not used 0 = HP 1650B/1651B has activity to report 1 = no activity to report 0 = False = Low 1 = True = High...
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 1650B/51B are: STOP Command Syntax: Example:...
System commands control the basic operation of the instrument including formatting query responses and enabling reading and writing to the advisory line of the instrument’s display. They can be called at anytime. The HP 1650B/51B System commands are: DATA DSP (display)
Page 76
Figure 6-l. System Commands Syntax Diagram System Commands HP 1650B/HP 1651B Programming Reference...
Page 77
= integerfrom 0 to 255. index = integerfrom 0 to 5. block-data = data in IEEE 488.2 fomtat. string = string up to 60 alphanumen’c characters. Figure 6-l. System Commands Syntax Diagram (continued) HP 1650B/HP 16518 System Commands Programming Reference...
Page 78
{ M A C H i n e { 112) 1 NONE} c NL> Example: 1 0 D I M Mode$[lOO] 30 ENTER XXX;Mode$ 4 0 P R I N T Mode$ 50 END HP 1650B/HP 16518 System Commands Programming Reference...
The data sent by the SYSTem:DATA query reflect the configuration of Note d the machines when the last run was performed. Any changes made since then through either front-panel operations or programming commands do not affect the stored configuration. HP 1650B/HP 16518 System Commands Programming Reference...
Page 80
HP 1650B/51B. The (block data > parameter can be broken down into a The c block length specifier > always takes the form #8DDDDDDDD.
Page 81
ON" 40 OUTPUT OFF" 50 OUTPUT ! send data query ! read in X8 70 ENTER XXX USING ! read in block length ! read in data 80 ENTER XXX USING 90 END System Commands HP 1650B/HP 16518 Programming Reference...
Each 1Cbyte group is made up of two bytes (16 bits) of status for Analyzer 1, two bytes of status for Analyzer 2, then five sets of two bytes of information for each of the five 16-bit pods of the HP 16510B. One analyzer’s information is independent of the other Note I$ analyzer’s information.
Page 83
DATA The preamble (bytes 17 through 176) consists of the following 160 bytes: 2 bytes - Instrument ID (always 1650 for both the HP 1650B and HP 1651B) bytes - Revision Code The values stored in the preamble represent the captured data currently...
Page 84
1 byte - Time tags on (state with tagging only) - In state tagging mode, was the data captured with time tags (value = 1) or state tags (value = 0). byte - Reserved System Commands HP 1650B/HP 16518 6-10 Programming Reference...
Page 85
The following four sections describe the four data modes that may be encountered. Each section describes the Status bytes (shown under the Machine 1 and Machine 2 headings), and the Information bytes (shown under the Pod 5 through Pod 1 headings). HP 1650B/HP 16518 System Commands Programming Reference...
Information bytes are invalid and should be ignored. Bit 1 is used only when Bit 2 is clear. Whenever there has been a sequence level transition Bit 1 will be set, and otherwise will be clear. System Commands HP 1650B/HP 16518 Programming Reference...
Page 87
(or 40 ns ticks) have elapsed since the last stored state. If this is the first stored state in memory, then the count information that is stored should be discarded. HP 1650B/HP 16518 System Commands Programming Reference...
Page 88
The glitch information is then stored. If this is the first stored sample in memory, then the glitch information stored should be discarded. System Commands HP 1650B/HP 16518 6 1 4 Programming Reference...
Page 89
01 - This pod’s Information bytes contain the frost word of a count. 00 - This pod’s Information bytes contain part of a count other than the first word. HP 1650B/HP 16518 System Commands Programming Reference 6-15...
Page 90
Rows of count will always be followed by four rows of data except for the last row, which may be either data or count. System Commands HP 1650B/HP 16518 6-16 Programming Reference...
Page 91
Status Data Data Data Data Data 14485 Status Data Data Data Data Data Status 14499 Status Data Data Data Data Data Status *The headings are not a part of the returned data. System Commands HP 1650B/HP 1651B Programming Reference 6-17...
:: = string of up to 60 alphanumeric characters Example: OUTPUT XXX;“:SYSTEM:OSP ‘ T h e m e s s a g e g o e s h e r e ” ’ HP 1850B/HP 18518 System Commands Programming Reference...
The ERRor query returns the oldest error number from the error queue. A complete list of error numbers for the HP 1650B/51B is shown in appendix C. If no errors are present in the error queue, a zero is returned.
XXX;" :SYSTEM:HEADER ON" Example: Query Command: Returned Format: 10 DIM Mode$[lOO] Example: 20 OUTPUT 30 ENTER XXX;Mode$ 40 PRINT 50 END Headers should be turned off when returning values to numeric variables. Note #! HP 1650B/HP 16518 System Commands Programming Reference...
Note #b send KEY commands too rapidly will cause a KEY buffer overflow error to be displayed on the HP 1650B/51B screen. The KEY query returns the key code for the last front- panel key pressed or the last simulated key press over the bus.
Page 96
Table 61. Key codes Key Value HP 1650B/1651B Key Value R U N STOP unused SELECT unused unused Don’t Care Knob left Knob right L/R Roll unused unused unused Clear Entry TRACE DISPLAY Power Up System Commands HP 1650B/HP 16518 6-22 Programming Reference...
A zero indicates a remote-to-local transition has not taken place. :SYSTem:LER? Returned Format: [:SYSTem:LER] (01 l}<NL> Example: 10 DIM Event$[lOO] 30 ENTER XXX;Event$ 40 PRINT 50 END HP 1650B/HP 16518 System Commands Programming Reference 6-23...
: S Y S T e m : L O C K o u t ? Returned Format: [:SYSTem:LOCKout] {Oil} c NL> Example: 10 DIM Status$[lOO] 20 OUTPUT XXX;":SYSTEM:LOCKOUT?" 30 ENTER XXX;Status$ 40 PRINT 50 END HP 165OB/HP 1651B System Commands Programming Reference 6 2 4...
The query returns the status of the LONGform command. Command Syntax: :SYSTem:LONGform {{ON 11) 1 {OFFIO}} OUTPUT XXX;":SYSTEM:LONGFORM ON" Example: Query Syntax: :SYSTem:LONGform? Returned Format: [:SYSTem:LONGform] (1 IO} c NL> 10 DIM Mode$[lOO] Example: 20 OUTPUT 30 ENTER XXX;Mode$ 40 PRINT HP 1650B/HP 16518 System Commands Programming Reference...
: : = a n a l y z e r 2 OUTPUT XXX;"SYSTEM:MENU Example: :SYSTem:MENU? Returned Format: [:SYSTem:MENU] c menu-type > , c math-num > Example: 10 DIM Response$ ENTER XXX;Response$ 40 PRINT Response$ 50 END HP 1650B/HP 16518 System Commands Programming Reference 6-26...
Command Syntax: where: :: = integer from 0 to 255 Example: O U T P U T XXX;“:SYSTEM:MESE 1” System Commands HP 1650B/HP 16518 Programming Reference 6-27...
Page 102
(A “1” enables the MESR bit) Weight ; Enables Not used Not used Not used . Not used Not used Not used RNT - Run until satisfied MC - Measurement complete HP 1650B/HP 16518 System Commands Programming Reference 6 2 8...
:: = integer from 0 to 255 Example: 10 OUTPUT XXX;“:SYSTem:MESR?” 2 0 E N T E R X X X ; M e r 3 0 P R I N T M e r 40 END HP 165OB/HP 16518 System Commands Programming Reference 6-29...
Page 104
Not used Not used Not used Not used Not used Not used 1 = Run until satisified 0 = Run until not satisified 1 = Measurement complete 0 = Measurement not complete System Commands HP 1650B/HP 1651B Programming Reference 6-30...
PPOWer The PPOWer (preprocessor power) query returns the current status of the HP 1650B/51B’s high-current limit circuit. If it is functioning properly, 1 is returned. If the current draw is too high, 0 is returned until the problem is corrected and the circuit automatically resets. Sending the query to an HP 165OA/165L4 results in -1 being returned.
Page 106
The PRINt command initiates a print of the screen or print all over either HP-IB or RS-232C. The PRINt parameters SCReen or ALL specify how the screen data is sent to the controller. PRINt SCReen transfers the data to the controller in a printer specific graphics format. PRINt ALL...
1 0 D I M Mode$[lOOl 2 0 O U T P U T XXX;“:RMOOE?” 3 0 E N T E R XXX;Mode$ 4 0 P R I N T Mode$ 50 END HP 1650B/HP 16518 System Commands Programming Reference...
Page 108
"1650 OISPE" Additionally, the following sections may also be included, depending on what’s available: "SYMBOLS A w "SYMBOLS B u "SPA DATA A" "SPA DATA "INVASM A " "INVASM B " "COMPARE System Commands HP 1650B/HP 16518 6-34 Programming Reference...
Page 109
OFF" 50 OUTPUT ! send setup query ! read in X8 60 ENTER XXX USING ! read in block length 70 ENTER XXX"#,80";8locklength 80 ENTER XXX USING ! read in data 90 END HP 1650B/HP 16518 System Commands Programming Reference...
The STARt command is an Overlapped Command. An Overlapped Note 4 Command is a command that allows execution of subsequent commands while the device operations initiated by the Overlapped Command are still in progress. Command Syntax: Example: OUTPUT XXX;":START" System Commands HP 1650B/HP 16518 6-36 Programming Reference...
SYSTem; therefore, it is not preceded by :SYSTem. Note @ c ommand is a command that allows execution of subsequent commands while the device operations initiated by the Overlapped Command are still in progress. Command Syntax: Example: OUTPUT XX&%TOp” HP 1650B/HP 16518 System Commands Programming Reference...
Note @ disk you are using contains information you need, it is advisable to write protect your disk. This will protect the contents of the disk from accidental damage due to incorrect commands, etc. HP 1650B/HP 16618 MMEMory Subsystem Programming Reference...
Page 115
= string of up to 10 alphanumeric characters representing a valid file name. Figure 7-1. MMEMory Subsystem Commands Syntax Diagram (continued) HP 165OBIHP 16518 Note Front-Panel Reference manual for a description of a valid file name. HP 1650B/HP 1651B Programming Reference...
Examples: OUTPUT XXX;":MMEMORY:AUTOLOAD OUTPUT XXX;":MMEMORY:AUTOLOAD Query Command: Returned Format: [ : M M E M o r y : A U T o l o a d ] Example: 20 OUTPUT XXX;" :MMEMORY:AUTOLOAO?" 50 END HP 1650B/HP 16518 Programming Reference...
Page 117
30 OUTPUT XXX;":SYSTEM:HEAD OFF" 40 OUTPUT XXX;":MMEMORY:CATALDG?" catalog query 50 ENTER XXX USING "#,2A";Specifier$ 70 FOR I=1 TO Length STEP 51 ENTER XXX USING PRINT File$ NEXT I 1 0 0 110 ENTER XXX USING 120 END HP 1650B/HP 16518 Programming Reference...
Command Syntax: c n a m e >, < n a m e > where: Example: To copy the contents of “FILEl” to “FILEZ: OUTPUT XXX;“:MMEMORY:COPY ‘FILEl’,‘FILEE’” HP 1650B/HP 16518 Programming Reference...
:: = integer (see Table 7-l) c block data > :: = contents of file in block data format Example: OUTPUT XXX;":MMEMORY:DOWNLOAD CREATED FROM SETUP Table 7-1. File Types HP 165011 SYSTEM -16383 -16096 -15614 INVERSE ASSEMBLER -15610 HP 1650B/HP 16518 Programming Reference...
Page 120
Once executed, the initialize command formats the specified disk, Note #b permanently erasing all existing information from the disk. After that, there is no way to retrieve the original information. Command Syntax: Example: OUTPUT XXX;” :MMEMORY:INITIALIZE” HP 1650B/HP 16518 Programming Reference...
Command Syntax: < n a m e > where: c name > :: = string of up to 10 alphanumeric characters representing a valid file name Examples: OUTPUT XXX;“:MMEMORY:LOAD:CONFIG ‘FILE-“’ OUTPUT XXX;“:MMEMORY:LOAD ‘FILE-“’ OUTPUT XXX;“:MMEM:LOAD:CONFIG ‘FILE-A”’ HP 1650B/HP 1651B Programming Reference...
LOAD This variation of the LOAD command allows inverse assembler files to be loaded into analyzer 1 or analyzer 2 of the HP 1650B/51B. The c L4 name > parameter specifies the inverse assembler filename. The machine the inverse assembler is loaded.
PACK PACK command The PACK command packs the fies on a diik in the disk drive. Command Syntax: OUTPUT Example: HP 1650B/HP 1651B Programming Reference 7-11...
After that, there is no way to retrieve the original information. Command Syntax: :MMEMory:PURGe cname > where: name :: = string of up to 10 alphanumeric characters representing a valid file OUTPUT XXX;":MMEMORY:PURGE Examples: HP 1650B/HP 16518 Programming Reference...
> :: = string of up to 10 alphanumeric characters representing a valid file name name> :: = string of up to 10 alphanumeric characters representing a valid file name Examples: OUTPUT XXX;“:MMEMORY:RENAME HP 1650B/HP 16518 7-13 Programming Reference...
Command Syntax: where: :: = string of up to 10 alphanumeric characters representing a valid file name :: = string of up to 32 alphanumeric characters Example: OUTPUT XXX;" :MMEM:STORE SETUPS'" HP 1650B/HP 16518 Programming Reference 7-14...
Example: 10 DIM Block$[32000] enough memory for block data 20 DIM Specifier$[E] 30 OUTPUT XXX;" :SYSTEM HEAD OFF" 40 OUTPUT XXX;":MMEMORY:UPLOAD? 50 ENTER XXX USING 60 ENTER XXX USING 70 ENTER XXX USING 80 END HP 1650B/HP 1651B Programming Reference...
The DLISt selector (dual list) is used as part of a compound header to access those settings normally found in the Dual State Listing menu. The dual list displays data when two state analyzers are run simultaneously. Command Syntax: Example: OUTPUT XXX;" :OLIST:LINE 0.1" DLlSt Subsystem HP 1850B/HP 1851B...
> , < base > }, < math-num > where: ::= {1(213)415161718} :: = a string of up to 6 alphanumeric characters <base> :: = { BlNary 1 HEXadeoimal ) OCTal 1 DECimal J ASCii I SYMBol} ::= (112) OUTPUT XXX;“:DLISt:CDLUMN 4,‘DATA’,HEXADECIMAL,l” Example: HP 1650B/HP 16518 Programming Reference...
Page 132
[ : D L I S t : C O L u m n ] Returned Format: Example: 1 0 D I M Cl$[lOO] 2 0 O U T P U T XXX;“:DLIST:COLUMN? 4 ” 30 ENTER XXX;Cl$ 40 PRINT Cl% E N D HP 1650B/HP 16518 Programming Reference...
: : = (112) Example: OUTPUT XXX;“:DLIST:LINE 5 1 1 . 1 ” Query Syntax: Format: Example: 20 OUTPUT XXX;“:DLIST:LINE?” 30 ENTER XXX;Ln$ 4 0 P R I N T L n $ 50 END HP 1650B/HP 16518 Programming Reference...
(state acquisition memory location) the marked pattern is stored in. Note 3 h th t e o er must be a state analyzer with time tagging on (use = real number time-value Figure 9-l. WLlSt Subsystem Syntax Diagram HP 1650B/HP 166lB WLlSt Subsystem Programming Reference...
The WLISt Subsystem is only available when one state analyzer (with time Note d tagging on) and one timing analyzer are specified. Command Syntax: Example: OUTPUT XXX;": WLIST:XTIME HP 1650B/HP 16518 Programming Reference...
:: = integer Example: 10 DIM So$[lOO] 2 0 O U T P U T XXX;“:WLIST:OSTATE?” 3 0 E N T E R XXX;So$ 4 0 P R I N T So$ 50 END HP 1650B/HP 16518 Programming Reference...
[ : W L I S t : X S T a t e ] c state num z- c NL> where: :: = integer Example: 10 DIM Sx$[lOO] 20 OUTPUT 30 ENTER XXX;Sx$ 40 PRINT Sx$ 50 END HP 1650B/HP 16518 Programming Reference...
Returned Format: Example: 1 0 D I M To$[lOO] 2 0 O U T P U T XXX;“:WLIST:OTIME?” 3 0 E N T E R XXX;To$ 4 0 P R I N T To$ 50 END HP 1650B/HP 16518 Programming Reference...
< t i m e - v a l u e > <NLz= Example: 1 0 DIM Tx$[lOO] 20 OUTPUT XXX;“:WLIST:XTIME?” 3 0 E N T E R XXX;Tx$ 4 0 P R I N T Tx$ 50 END HP 1650B/HP 165113 Programming Referencle...
Page 141
Additionally, the following subsystems are a part of the MACHine subsystem. Each is explained in a separate chapter. (chapter 11) (chapter 12) (chapter 13) (chapter 14) (chapter 15) (chapter 16) (chapter 17) (chapter 18) (chapter 19) (chapter 20) HP 1650B/HP 16518 Programming Reference...
Page 142
= (NONE 1 <pod-num > [, <pod-num >I...} pod-list pod-num = {I 1 2 1 3 I 4 I 5) = string up to 10 alphanumeric characters machine-name Figure 10-l. Machine Subsystem Syntax Diagram HP 1650B/HP 1651B Programming Reference...
Page 143
Since the MACHine c N > command is a root level command, it will normally appear as the first element of a compound header. Command Syntax: where: :: = { 1 12) (the number of the machine) OUTPUT XXX; “:MACHINEl:NAME ‘DRAMTEST’” Example: HP 1650B/HP 16518...
Page 144
O U T P U T XXX;“:MACHINEl:ARM M A C H I N E 2 ” Query Syntax: : MACHine Returned Format: Example: 10 DIM Stringt [lOO] 20 OUTPUT xxx; “:MACHINEl:ARM?” 4 0 P R I N T String$ HP 165OB/HP 16518 Programming Reference...
Page 145
The ASSign query returns which pods are assigned to the current analyzer (machine). (2):ASSign cpod_list> Command Syntax: where: Example: OUTPUT XXX;":MACHINEl:ASSIGN 5, 2, Query Syntax: Returned Format: Example: 10 DIM String$ [loo] 20 OUTPUT 30 ENTER XXX;String$ 40 PRINT 50 END HP 16506/HP 1651B Programming Reference...
Page 146
*OPC and *WAI commands (see the chapter “Common Commands”) in conjunction with AUToscale. When the AUToscale command is issued, existing timing analyzer Note @ configurations are erased and the other analyzer is turned off. Command Syntax: Example: OUTPUT XXX;":MACHINEl:AUTOSCALE" HP 1650B/HP 16518 Programming Reference...
Page 147
:: = string of up to 10 alphanumeric characters Example: OUTPUT 'DRAMTEST'" Query Syntax: Returned Format: c machine name > c NL> [MACHine{ 11 P}:NAME] Example: 10 DIM String$ [loo] 20 OUTPUT XXX;":MACHINEl:NAME?" 40 PRINT HP 1650B/HP 16618 Programming Reference...
Page 148
[ : M A C H i n e { l IP):NPE] <analyzertype> cNL> Returned Format: 10 DIM String$ [loo] Example: 20 OUTPUT XXX;“:MACHINEl:TYPE?” 3 0 E N T E R XXX;String$ 40 PRINT String$ 50 END HP 1850B/HP 18818 Programming Reference...
Page 149
SFORmat Subsystem Introduction The SFORmat subsystem contains the commands available for the State Format menu in the HP 1650B/51B logic analyzer. These commands are: Figure 1 l-1. SFORmat Subsystem Syntax Diagram HP 1650B/HP 16518 SFORmat Subsystem 11-l Programming Reference...
Page 150
= {J 1 K 1 = (OFF I ZUSing I FALLing I BOTH I LOW 1 HIGH} clock-spec = voltage (real number) -9.9 to + 9.9 value 1 l-l. SFORmat Subsystem Syntax Diagram (continued) Figure HP 1650B/HP 16518 11-2 Programming Reference...
Page 151
State Format menu. It always follows the MACHine selector because it selects a branch directly below the Command Syntax: :MACHine{l IP}:SFORmat Example: OUTPUT XXX;" :MACHINE2:SFORMAT:MASTER J, RISING" HP 1650B/HP 16518 SFORmat Subsystem Programming Reference 11-3...
Page 152
: M A C H i n e { l l2}:SFORmat:CLOCkcN>? Returned Format: Example: 1 0 D I M String$ [IOO] 20 OUTPUT XXX; “:MACHINEl:SFORMAT:CLOCKZ?” 30 ENTER XXX; String$ 4 0 P R I N T String$ 50 END HP 1650B/HP 16518 11-4 Programming Reference...
Page 153
OUTPUT XXX;“:MACHINE2:SFORMAT:CPERIOD GT” Query Syntax: : M A C H i n e { l IP}:SFORmat:CPERiod? Returned Format: 1 I2}:SFOFtmat:CPERiod] {GT 1 LT} c NL> Example: 10 DIM String$[lDOl 30 ENTER XXX; 40 PRINT String$ HP 1650B/HP 16518 11-5 Programming Reference...
Page 154
The LABel query returns the current specification for the selected (by name) label. If the label does not exist, nothing is returned. The polarity is always returned as the first parameter. Numbers are always returned in decimal format. HP 1650B/HP 16518 11-6 Programming Reference...
Page 155
> , c polarity> [, <assignment >I... -z NL> Example: 10 DIM String$[lDO] 2 0 O U T P U T XXX;“:MACHINE2:SFORMAT:LABEL? ‘DATA”’ 30 ENTER XXX String$ 4 0 P R I N T String$ 50 END HP 1650B/HP 16518 11-7 Programming Reference...
Page 156
The MASTer query returns the clock specification for the specified clock. Command Syntax: where: ::= {JJKILIMIN} ::= {OFF~RlSing~FALLing~BOTH~LOW~HIGH} Example: OUTPUT XXX;":MACHINE2:SFORMAT:MASTER Query Syntax: :MACHine{l IP}:SFORmat:MASTer? Returned Format: Example: 10 DIM String$[lOO] 20 OUTPUT XXX;":MACHINE2:SFORMAT:MASTER?<clock_id>" 30 ENTER XXX 40 PRINT String$ 50 END HP 1850B/HP 16518 11-8 Programming Reference...
Page 157
: M A C H i n e { l 12):SFORmat:REMove { < n a m e > [ A L L } where: :: = string of up to 6 alphanumeric characters Examples: OUTPUT XXX;“:MACHINE2:SFORMAT:REMOVE ‘A”’ OUTPUT XXX ; ” :MACHINE2:SFORMAT:REMOVE ALL” 16518 HP 1650B/HP 11-9 Programming Reference...
Page 158
:: = (OFF1 RlSing 1 FALling 1 BOTH I LOW I HIGH} OUTPUT XXX;":MACHINEZ:SFORMAT:SLAVE J, RISING" Example: Query Syntax: 1 IP}:SFORmat:SLAVe? c clock-id > Returned Format: <clock-id > , <clock-spec 10 DIM String$[lOO] Example: OUTPUT <clock-id>” 30 ENTER XXX String$ 40 PRINT String$ 50 END HP 1650B/HP 16518 Programming Reference...
Page 159
ECL, TTL, or a specific voltage from -9.9V to + 9.9V in 0.1 volt increments. On the HP 1650B, the pod thresholds of pods 1,2 and 3 can be set Note d independently. The pod thresholds of pods 4 and 5 are slaved together;...
Page 161
STRace Subsystem Introduction The STRace subsystem contains the commands available for the State Trace menu in the HP 1650B/51B logic analyzer. The STRace subsystem commands are: FIND TERM STRace b r a n c h - q u a l i f i e r...
Page 163
> [OR c or-term2 >I... I < and-term2 > [AND c and-term2 >I... } expression2 = { < {A I B I C ID I INRange I OuTRange} and-term1 = = {NOTEINOTFINOTGINOTH} and-term2 Figure 12-1. STRace Subsystem Syntax Diagram (continued) HP 1650B/HP 1.651~ Programming Rqfe$ice 12-3...
Page 164
State Trace menu. It always follows the MACHine selector because it selects a branch directly below the MACHine level in the command tree. Command OUTPUT XXX;":MACHINEl:STRACE:TAG TIME" Example: HP 1650WHP 1651B STRace Subsystem 12-4 Programming Reference...
Page 165
Note d level, or they must both be after the trigger level. The trigger level is determined through the SEQuence command. The BRANch query returns the current branch qualifier specification for a given sequence level. HP 1650WHP 16516 Programming Reference...
Page 166
((A OR B) OR NOTG). 1" Query Syntax :MACHine{l i2}:STRace:BFlANchcN>? Returned Format: c N>] 10 DIM String$[lOD] Example: 20 OUTPUT XXX;" :MACHINEl:STRACE:BRANCH3?” 3 0 E N T E R XXX;String$ 40 PRINT String$ 50 END HP 1650B/HP 16518 12-6 Programming Reference...
Page 167
It is acceptable for a group to consist of a single term. Thus, an expression like (B AND G) is allowed, since the two operands are both simple terms from separate groups. HP 1650B/HP 16518 Programming Reference 12-7...
Page 168
:: = { -zor_term2z [OR cor_term2>]... 1 <and_term2z [AND cand_term2>]...} :: = { NOTA I NOTB I NOTC I NOTD I INRange I OUTRange) ::= {EJFIGIH} :: = {NOTE I NOTF I NOTG I NOTH} HP 1650B/HP 16518 12-8 Programming Reference...
Page 170
:: = { cor_term2> [OR cor_term2>]... [AND <and_term2>]...} : : = {AIBICIDIINRangelOUTRange} : : = {NOTAI N O T B 1 NOTC / NOTD I INRange : : = {EIFIGIH} : : = (NOTEINOTFINOTGINOTH) HP 1650WHP 16518 12-10 Programming Reference...
Page 171
XXX;" :MACHINEl:STRACE:PRESTORE ANYSTATE" OUTPUT XXX:" :MACHINEl:STRACE:PRESTORE OUTPUT XXX;":MACHINEl:STRACE:PRESTORE (A OR 8 OR D OR F OR H)" Query Syntax: 10 DIM String$[lOO] Example: 20 OUTPUT XXX;":MACHINEl:STRACE:PRESTORE?" 30 ENTER XXX;String$ 40 PRINT String$ 50 END HP 1650B/HP 16518 12-11 Programming Reference...
Page 172
The FMNGe query returns the range recognizer end point specifications for the range. When two state analyzers are on, the RANGe term is not available in the Note 4 second state analyzer assigned and there are only 4 pattern recognizers per analyzer. HP 1650B/HP 16518 12-12 Programming Reference...
Page 173
Query Syntax: Returned Format: 1 IO}:STRAce:RANGe] Example: 1 0 D I M String$[lOD] 20 OUTPUT XXX;” :MACHINEl:STRACE:RANGE?” 3 0 E N T E R XXX;String$ 4 0 P R I N T String$ 50 END HP 1650B/HP 16518 12-13 Programming Reference...
Page 175
Query Syntax: Returned Format: {OFF 1 PERLevel Example: 10 DIM String$[lOO] 20 OUTPUT XXX;" :MACHINEl:STRACE:RESTART?" ENTER XXX;String$ 40 PRINT Stringf 50 END HP 1650B/HP 16518 Programming Reference 12-15...
Page 176
<number of levels >, c level of trigger > < NL> Example: 2 0 O U T P U T XXX;“:MACHINEl:STRACE:SEQUENCE?” 3 0 E N T E R XXX;String$ 4 0 P R I N T String$ 50 END HP 1650B/HP 16518 12-16 Programming Reference...
Page 177
: : = {A~B~C~D~INBange~OLJTFtange} <and-term 1 > : : = { NOTA( N O T B I NOTC I NOTD I INRange c or-term2 > : : = {EIFIGIH} :: = {NOTE ( NOTFI NOTG I NOTH) HP 1650B/HP 16518 Programming Reference 12-17...
Page 178
OUTPUT ANYSTATE" Examples: OUTPUT XXX;": MACHINEl:STRACE:STORE2 OUTRANGE" D NDTH)" OUTPUT Query Syntax: Returned Format: <store-qualifier> < NL> Example: 10 DIM String$[lOD] 20 OUTPUT 40 PRINT Stringf 50 END HP 1850B/HP 1851B 12-18 Programming Reference...
Page 179
command/query The TAG command selects the type of count tagging (state or time) to be performed during data acquisition. State tagging is indicated when the parameter is the state tag qualifier, which will be counted in the qualified state mode. The qualifier may be a single term or a complex expression. The terms A through H are defined by the TERM command.
Page 180
OUTPUT XXX;":MACHINEl:STRACE:TAG TIME" OUTPUT XXX;" :MACHINEl:STRACE:TAG OUTPUT XXX;":MACHINEl:STRACE:TAG ((INRANGE OR A) AND E)" Query Syntax: Returned Format: [:MACHine{l l2}:STRace:TAG] Example: 10 DIM String$[lOO] 20 OUTPUT XXX;":MACHINEl:STRACE:TAG?" 30 ENTER XXX;String$ 40 PRINT String$ 50 END HP 1650B/HP 16518 12-20 Programming Reference...
Page 181
:: = string of up to 6 alphanumeric characters c pattern > :: = “{#B{OI 1 IX} . . . I . . I Example: O U T P U T XXX;“:MACHINEl:STRACE:TERM O U T P U T XXX;“:MACHINEl:STRACE:TERM HP 1650B/HP 1651B Programming Reference 12-21...
Page 182
Query Syntax: Returned Format: Example: 10 DIM String$[lOO] 20 OUTPUT XXX;":MACHINEl:STRACE:TERM? 30 ENTER XXX;String$ 40 PRINT 50 END HP 1650B/HP 16618 12-22 Programming Reference...
Page 183
Introduction The SLISt subsystem contains the commands available for the State Listing menu in the HP 1650B/51B logic analyzer. These commands are: DATA OTAG XTAG HP 1650B/HP 1651B Programming Reference...
Page 186
. . . I . . I occurrence = integerfrom -1023 to + 1023 time-value = real number state-value = real number value > 1 value = real number Figure 13-1. SLlSt Subsystem Syntax Diagram (continued) HP 1650B/HP 16518 Programming Reference...
Page 187
The SLISt selector is used as part of a compound header to access those settings normally found in the State Listing menu. It always follows the Command Syntax: Example: OUTPUT XXX;":MACHINEl:SLIST:LINE 256" HP 1650B/HP 16518 Programming Reference...
Page 188
: : = (1 12131415161716) <label-name > :: = a string of up to 6 alphanumeric characters :: = { BlNary I HEXadecimal for labels :: = {ABSolute I RELative} for tags HP 1650B/HP 1651B Programming Reference 13-6...
Page 189
A label for tags must be assigned in order to use ABSolute or RELative Note d state tagging. Examples: OUTPUT XXX;":MACHINEl:SLIST:COLUMN OUTPUT XXX;":MACHINEl:SLIST:COLUMN Query Syntax: Returned Format: Example: 10 DIM Cl$[lOO] 20 OUTPUT XXX;" :MACHINEl:SLIST:COLUMN? 4" 30 ENTER XXX;Cl$ 40 PRINT Cl$ 50 END HP 1650B/HP 16518 Programming Reference...
Page 190
. . ( {Oil 12i3i4i5i6i7(8i9}. . . }” E x a m p l e : 2 0 OUTPUT XXX;" :MACHINEl:SLIST:OATA? 5 1 2 . ‘RAS’” 30 ENTER XXX;Sd$ 40 PRINT Sd$ 50 E N D HP 1650B/HP 18818 Programming Reference 13-8...
Page 191
Command Syntax: where: :: = integer from -1023 to +1023 OUTPUT XXX;“:MACHINEl:SLIST:LINE 0” Example: :MACHine{l I2}:SLISt:LINE? Query Syntax: Returned Format: 10 DIM Ln$[lOO] Example: 20 OUTPUT XXX;“:MACHINEl:SLIST:LINE?” 30 ENTER XXX;Ln$ 40 PRINT Ln$ 50 END HP 1650B/HP 1651B Programming Reference 13-9...
Page 192
1 I2):SLISt:MMODel -Z m a r k e r - m o d e > < NL> Example: 1 0 D I M Mn$[lOO] 2 0 O U T P U T XXX;“:MACHINEl:SLIST:MMODE?” 3 0 E N T E R XXX;Mn$ 40 PRINT Mn$ 50 END HP 1650B/HP 1651B Programming Reference 13-10...
Page 193
:: = string of up to 6 alphanumeric characters c label-pattern > : : = “{#B{Oll IX}. . . 1 . . 1 Examples: O U T P U T XXX;“:MACHINEl:SLIST:OPATTERN O U T P U T XXX;“:MACHINEl:SLIST:OPATTERN HP 1650B/HP 16518 Programming Reference 13-11...
Page 194
1 0 D I M Op$[lOD] 2 0 O U T P U T XXX;“:MACHINEl:SLIST:OPATTERN? ‘A”’ 3 0 E N T E R XXX;Op$ 4 0 P R I N T OpJ E N D HP 1650B/HP 16518 Programming Reference 13-12...
Page 195
< o c c u r r e n c e > , <origin Example: 10 DIM Os$[lOO] 20 OUTPUT 3 0 E N T E R XXX;Os$ 4 0 P R I N T Os$ 50 END HP 1650B/HP 16518 Programming Reference 13-13...
Page 196
:: = an integer from -1023 to + 1023, or 32767 Example: 10 DIM Ds$[lDO] 2 0 O U T P U T XXX;“:MACHINEl:SLIST:OSTATE?” 3 0 E N T E R XXX;Os$ 4 0 P R I N T Os$ 50 END HP 1650B/HP 16518 13-14 Programming Reference...
Page 197
{ < t i m e - v a l u e > I < s t a t e - v a l u e z-1 < NL> Example: 10 DIM Ot$[lOO] 2 0 O U T P U T XXX;“:MACHINE1:SLIST:OTAG?” 3 0 E N T E R XXX;Ot$ 4 0 P R I N T Ot$ 50 EN0 HP 1650B/HP 16518 Programming Reference 13-15...
Page 198
Compare not equal (NEQual) - Any channel of any label has a different value. The RUNTil query returns the current stop criteria. The RUNTil instruction (for state analysis) is available in both the SLISt Note d and COMPare subsystems. HP 1650B/HP 16518 13-16 Programming Reference...
Page 199
:: = (OFFILT,<value z= IGT, <value > [INRange, <value>, <value 5 :: = real number from -9E9 to +9E9 OUTPUT XXX;“:MACHINEl:SLIST:RUNTIL GT,800.OE-6” Example: Query Syntax: Returned Format: Example: 10 20 OUTPUT XXX;“:MACHINEl:SLIST:RUNTIL?” 30 ENTER XXX;Ru$ 40 PRINT Ru$ 50 END HP 1650B/HP 16518 Programming Reference 13-17...
Page 200
0 markers was successful, resulting in valid delta-time measurements. Query Syntax: :MACHine{l IP}:SLISt:TAVerage? Returned Format: [:MACHine{l I2}:SLISt:TAVerage] where: :: = real number Example: 10 DIM Tv$[lOO] 20 OUTPUT 30 ENTER XXX;Tv$ 40 PRINT Tv$ 50 END HP 1650B/HP 1651B Programming Reference...
Page 201
:: = real number Example: 1 0 D I M Tx$[lOO] 2 0 O U T P U T XXX;“:MACHINEl:SLIST:TMAXIMUM?” 3 0 E N T E R XXX;Tx$ 4 0 P R I N T Tx$ 50 END HP 1650B/HP 1651B Programming Reference...
Page 202
[ : M A C H i n e { l where: :: = real number Example: 10 DIM Tm$[lOO] 20 OUTPUT XXX;” :MACHINEl:SLIST:TMINIMUM?” 3 0 E N T E R XXX;Tm$ 40 PRINT Tm$ 50 END HP 1650B/HP 16518 Programming Reference 13-20...
Page 203
:: = zero or positive integer Example: 2 0 O U T P U T XXX;“:MACHINEl:SLIST:VRUNS?” 3 0 E N T E R XXX;Vr$ 4 0 P R I N T Vr$ 50 END HP 1650B/HP 16518 13-21 Programming Reference...
Page 204
9.9E37. If there is no data in the state mode, the query returns 32767. Query Syntax: :MACHine{l Returned Format: [:MACHine{l 12):SLISt:XOTagl where: :: = real number :: = integer Example: 10 DIM Xot$[lOO] 20 OUTPUT 30 ENTER XXX;Xot$ 40 PRINT Xot$ HP 1660WHP 16516 Programming Reference 13-22...
Page 205
:: = string of up to 6 alphanumeric characters <label-pattern :: = “{#B{OI 1 IX} . . . 1 Examples: O U T P U T XXX;“:MACHINEl:SLIST:XPATTERN O U T P U T XXX;“:MACHINEl:SLIST:XPATTERN 16518 HP 1650B/HP 13-23 Programming Reference...
Page 206
1 0 D I M Xp$[lOO] 2 0 O U T P U T XXX;“:MACHINEl:SLIST:XPATTERN? ‘A”’ 3 0 E N T E R XXX;Xp$ 4 0 P R I N T Xp$ 50 END HP 1650B/HP 16518 Programming Reference 13-24...
Page 207
:: = {TRIGger 1 STARt} Example: OUTPUT XXX;“:MACHINEl:SLIST:XSEARCH Query Syntax: Returned Format: 1 IP}:SLISt:XSEarch] Example: 20 OUTPUT XXX;“:MACHINEl:SLIST:XSEARCH?” 3 0 E N T E R XXX;Xs$ 4 0 P R I N T Xs$ 5 0 END HP 1650B/HP 16518 Programming Reference 13-25...
Page 208
- r u m > Example: lo DIM xs$[lOOl 20 OUTPUT XXX;” :MACHINEl:SLIST:XSTATE?” 3 0 E N T E R XXX;Xs$ 4 0 P R I N T Xs$ 50 END HP 1650B/HP 1651B Programming Reference 13-26...
Page 209
Command Syntax: where: :: = real number <state value > :: = integer Example: XXX;" :MACHINEl:SLIST:XTAG Query Syntax: Example: 10 DIM xt$[loo] 20 OUTPUT 30 ENTER XXX;Xt$ 40 PRINT Xt$ 50 END HP 1650B/HP 16618 13-27 Programming Reference...
Page 211
The way to manipulate the X and 0 markers on the Waveform display is through the State Listing (SLISt) subsystem. Using the marker commands from the SLISt subsystem will affect the markers on the Waveform display. The commands in the SWAVeform subsystem are: HP 1650B/HP 1651B SWAVeform Subsystem Programming Reference 14-1...
Page 212
= integerfrom -1023 to + 1024 label-name = string up to 6 alphanumeric characters bit-id = (OVERlay 1 c bit-urn > } bit-num = integer representing a label bit from 0 to 31 Figure 14-l. SWAVeform Subsystem Syntax Diagram HP 1650B/HP 16518 14-2 Programming Reference...
Page 213
State Waveform menu. It always follows the MACHine selector because it selects a branch directly below the MACHine level in the command tree. Command Syntax: XXX;" :MACHINEZ:SWAVEFORM:RANGE 40" Example: OUTPUT SWAVeform Subsystem HP 1650B/HP 16518 14-3 Programming Reference...
Page 214
“0” (off) or "1" (on). Command Syntax: {{ON 1 1) 1 (OFF 1 0)) OUTPUT XXX;" :MACHINEl:SWAVEFORM:ACCUMULATE ON" Example: Query Syntax: Returned Format: Example: 10 DIM String$[lOO] 20 OUTPUT 30 ENTER XXX; 40 PRINT Stringf 50 END HP 1650B/HP 1651B Programming Reference 14-4...
Page 215
The DELay query returns the current sample offset value. Command Syntax: where: :: = integer from -1023 to + 1024 OUTPUT XXX;":MACHINEZ:SWAVEFORM:DELAY 127" Example: Query Syntax: Returned Format: 10 DIM String$[lOO] Example: 20 OUTPUT XXX;":MACHINEl:SWAVEFORM:DELAY?" 30 ENTER XXX;String$ 40 PRINT 50 END HP 1650B/HP 16518 14-5 Programming Reference...
Page 216
:: = string of up to 6 alphanumeric characters <bit-id > :: = {OVERlay 1 c bit-num > } :: = integer representing a label bit from 0 to 31 Examples: OUTPUT XXX;":MACHINEl:SWAVEFORM:INSERT 'WAVE', 19" OUTPUT XXX;" :MACHINEl:SWAVEFORM:INSERT 'ABC', OVERLAY" OUTPUT XXX;":MACHl:SWAV:INSERT HP 1650B/HP 16518 14-6 Programming Reference...
Page 217
<number of samples> where: :: = integer from 10 to 1040 Example: OUTPUT XXX;":MACHINEL:SWAVEFORM:RANGE Query Syntax: Returned Format: Example: 10 DIM String$[lOO] 20 OUTPUT XXX;" :MACHINE2:SWAVEFORM:RANGE?" 30 ENTER XXX; 40 PRINT String$ 50 END HP 1650B/HP 16518 Programming Reference 14-7...
Page 218
REMove command REMove The REMove command allows you to clear the waveform display before building a new display. : M A C H i n e { l 12):SWAVeform:REMove Command Syntax: OUTPUT XXX;“:MACHINEl:SWAVEFORM:REMOVE” Example: HP 1850B/HP 18518 Programming Reference 14-8...
Page 219
Introduction The State Chart subsystem provides the commands necessary for programming the HP 1650B/51B’s Chart display. The commands allow you to build charts of label activity, using data normally found in the Listing display. The chart’s y-axis is used to show data values for the label of your choice.
Page 220
= string from c label-low-value > to 2?’ - 1 (#HFFFFFFFF) low-value = stringfrom 0 to 232 - 1 (#HFFFFFFFF) high-value low-value = stringfrom to y2 - 1 (#HFFFFFFFF) Figure 15-l. SCHart Subsystem Syntax Diagram HP 1650B/HP 16518 Programming Reference...
Page 221
State Chart menu. It always follows the MACHine selector because it selects a branch below the MACHine level in the command tree. Command Syntax: Example: OUTPUT XXX;":MACHINEl:SCHART:VAXIS 'A'. '0'. '9"' HP 1650B/HP 16518 SCHart Subsystem Programming Reference 15-3...
Page 222
1 12):SCHart:ACCumulatel Returned Format: 1 0 D I M String$[lOO] Example: 2 0 O U T P U T XXX;“:MACHINEl:SCHART:ACCUMULATE?” 30 ENTER XXX; String$ 4 0 P R I N T String$ 50 END HP 1650B/HP 1651B Programming Reference 16-4...
Page 223
[ M A C H i n e { 1 12):SCHat-t: H A X i s ] {STAtes, c state-low-value >, -z state-high-value > 1 Example: 10 DIM String$[lOO] 20 OUTPUT XXX;":MACHINEl:SCHART:HAXIS?" 30 ENTER XXX; 50 END HP 1650B/HP 1651B Programming Reference...
Page 224
1 IP}:SCHart:VAXis] Returned Format: Example: 1 0 D I M String$[lDO] 2 0 O U T P U T XXX;“:MACHINEl:SCHART:VAXIS?” 30 ENTER XXX; String$ 4 0 P R I N T String$ 50 END HP 1650B/HP 16518 Programming Reference 15-6...
Page 225
COMPare Subsystem Introduction Commands in the state COMPare subsystem provide the abiity to do a bit-by-bit comparison between the acquired state data listing and a compare data image. The commands are: DATA HP 1650B/HP 16518 COMPare Subsystem Programming Reference...
Page 226
. = don ‘t care (don’t compare) = integerfiom -1023 to + 1023 line-mm . . I difference-occurrence = integerfrom -1023 to + 1023 start-line = integerfiom <sturt-he > to + 1023 stop-line Figure 16-l. COMPare Subsystem Syntax Diagram HP 1650B/HP 16518 Programming Reference...
Page 227
Compare menu. It always follows the MACHine selector because it selects a branch directly below the MACHine level in the command tree. Command Syntax: :MACHine{l IP}:COMPare Example: OUTPUT XXX;":MACHINEl:COMPARE:FIND? 819" HP 1650B/HP 16518 COMPare Subsystem Programming Reference...
Page 228
> Format: <label-name > , <care-spec Example: 10 DIM String$[lOO] 2 0 O U T P U T XXX;“:MACHINE2:COMPARE:CMASK? 30 ENTER XXX; String$ 4 0 P R I N T String$ 50 END HP 1650B/HP 16518 Programming Reference 16-4...
Page 229
COPY COPY command The COPY command copies the current acquired State Listing for the the compare range or channel mask settings. Command Syntax: OUTPUT Example: HP 1650B/HP 1651B Programming Reference...
Page 230
Command Syntax: where: ::= a string of up 6 alphanumericcharacters <label-name> ::= integer from -1023to +1023 ::= "{#B{OlllX}... 'CLOCK', 42. ‘#BOllXlOlX’” Examples: OUTPUT OUTPUT XXX;":MACHINEZ:COMPARE:OATA OUTPUT XXX;":MACHINEl:COMPARE:OATA 129, '#BXXOO', OUTPUT XXX;":MACHZ:COMPARE:OATA -511, '4'. '64'9 HP 1650B/HP 1651B 16-6 Programming Reference...
Page 231
30 OUTPUT 35 ENTER XXX; First, Last 40 PRINT "LINE X", "VALUE of "; Label$ 45 FOR State = First TO Last XXX;" :MACHP:COMPARE:DATA? OUTPUT ENTER XXX; ResponseJ PRINT State, NEXT State 70 END HP 1650B/HP 16518 16-7 Programming Reference...
Page 232
:: = integer from 0 to 1024 :: = integer from -1023 to + 1023 Example: 10 DIM String$[lOO] 20 OUTPUT XXX;" :MACHINE2:COMPARE:FIND? 2 6 ” 40 PRINT String$ 50 END HP 1850B/HP 18518 Programming Reference 1 6 - 8...
Page 233
> } c NLz- Example: 10 DIM String$[lOO] 20 OUTPUT XXX;" :MACHINE2:COMPARE:RANGE?" 30 ENTER XXX; 40 REM See if substring "FULL" occurs in response string: 50 PRINT "Range is 60 IF 70 END HP 1650B/HP 1651B Programming Reference...
Page 234
Compare equal (EQUal) - Every channel of every label has the same value. Compare not equal (NEQual) - Any channel of any label has a different value. The RUNTil query returns the current stop criteria for the comparison when running in repetitive trace mode. HP 1650B/HP 1651B Programming Reference...
Page 235
Example: O U T P U T XXX;“:MACHINE2:COMPARE:RUNTIL E Q U A L ” Query Syntax: Returned Format: [:MACHine{l (P}:COMPare:RUNTil] {OFFILT,cvaluez- Example: 10 DIM String$[lOO] 20 OUTPUT 30 ENTER XXX; 40 PRINT 50 END HP 1650B/HP 16518 16-11 Programming Reference...
Page 237
Introduction The TFORmat subsystem contains the commands available for the Timing Format menu in the HP 1650B/51B logic analyzer. These commands are: p o d - s p e c i f i c a t i o n name = string of up to 6 alphanumen’c...
Page 238
Timing Format menu. It always follows the MACHine selector because it selects a branch directly below the MACHine level in the command tree. Command Syntax: :MACHine{l 12):TFORmat OUTPUT XXX;":MACHINEl:TFORMAT:LABEL?" Example: HP 1650B/HP 1651B TFORmat Subsystem Programming Reference 17-2...
Page 239
A label can not have a total of more than 32 channels assigned to it. The LABel query returns the current specification for the selected (by name) label. If the label does not exist, nothing is returned. Numbers are always returned in decimal format. HP 1650B/HP 16518 Programming Reference 17-3...
Page 240
> [, <assignment >I..., <polarity> c NL> Returned Format: 10 DIM String$[lOO] Example: 2 0 O U T P U T XXX;“:MACHINE2:TFDRMAT:LABEL? ‘DATA”’ 30 ENTER XXX String$ 4 0 P R I N T String$ 50 END HP 1650B/HP 16518 Programming Reference 17-4...
Page 241
The REMove command allows you to delete all labels or any one label specified by name for a given machine. Command Syntax: where: :: = string of up to 6 alphanumeric characters Examples: OUTPUT OUTPUT XXX;” :MACHINEl:TFORMAT:REMOVE ALL” HP 1650B/HP 1651B Programming Reference...
Page 242
The pod thresholds of pods 4 and 5 are slaved together; therefore, when you set the threshold on pod 4 or 5, both thresholds will be changed to the specified value. On the HP 1651B, both pods 1 and 2 can be set independently.
Page 243
The ‘TTRace subsystem contains the commands available for the Timing Trace menu in the HP 1650B/51B logic analyzer. These commands are: EDGE HP 1650B/HP 16518 Programming Reference...
Page 244
= string of characters “{ * I. }...” . = ignore this channel pattern-spec = “{ #B{OI 1 IX}. . D I . . 1 . . }” Figure 16-l. TTRace Subsystem Syntax Diagram HP 1650B/HP 16518 16-2 Programming Reference...
Page 245
Timing Trace menu. It always follows the MACHine selector because it selects a branch directly below the MACHine level in the command tree. Command Syntax: Example: OUTPUT XXX;":MACHINEl:TTRACE:GLITCH 'ABC', '..****I" HP 1650B/HP 16518 Programming Reference 16-3...
Page 246
< a c q u i s i t i o n - m o d e > where: acquisition-mode > :: = { GLlTch 1 TRANsitional} Example: OUTPUT XXX; “:MACHINEl:TTRACE:AMODE GLITCH” Query Syntax: Returned Format: Example: 20 OUTPUT XXX; 40 PRINT M$ 50 END HP 1850B/HP 18518 Programming Reference 18-4...
Page 247
{GT 1 L T } , < d u r a t i o n - v a l u e > < NL> Example: 1 0 DIM D$[lOO] 20 OUTPUT XXX; 30 ENTER XXX;D$ 40 PRINT 50 E N D HP 1650B/HP 16518 Programming Reference...
Page 248
< l a b e l - n a m e >, <edge-specs where: :: = string or up to 6 alphanumeric characters c edge-spec > :: = string of characters “{R 1 FIT IX}...” Example: OUTPUT XXX; “:MACHfNEl:TTRACE:EDGE HP 1650B/HP 16518 Programming Reference 18-6...
Page 249
EDGE Query Syntax: Returned Format: Example: 10 DIM E$[lOO] 20 OUTPUT XXX; ":MACHINEl:TTRACE:EDGE? 30 ENTER XXX;E$ 40 PRINT E$ 50 END HP 1650B/HP 16516 Programming Reference...
Page 250
:: = string of characters “{*I.)...” Example: OUTPUT XXX; Query Syntax: : M A C H i n e l :lTRace:GLITch? Returned Format: Example: D I M G$[lOO] 20 OUTPUT XXX; “:MACHINEl:TTRACE:GLITCH? 30 ENTER XXX;G$ 40 PRINT G$ 50 END HP 1650B/HP 16518 Programming Reference...
Page 251
:: = string of up to 6 alphanumeric characters :: = “{#B{OI 1 IX} . . * 1 . . I . }” Example: OUTPUT XXX; “:MACHINEl:TTRACE:PATTERN ‘ D A T A ’ , ‘ 2 5 5 ” ’ HP 1650B/HP 16518 Programming Reference 16-9...
Page 252
<label-name> Query Syntax: Returned Format: lo DIM Example: 20 OUTPUT XXX; 'DATA'" 30 ENTER XXX;P$ 40 PRINT P$ HP 1650B/HP 16518 Programming Reference...
Page 253
TWAVeform Subsystem Introduction The TWAVeform subsystem contains the commands available for the Timing Waveforms menu in the HP 1650B/51B. These commands are: Accumulate HP 1650B/HP 16518 TWAVeform Subsystem Programming Reference...
Page 255
- p a t t e r n t i m e - v a l u e Figure 19-l. TWAVeform Subsystem Syntax Diagram (continued) HP 1650B/HP 16518 19-3...
Page 256
= real number between 100 ns and 10 ks GT = greater than LT = less than value = real number Figure 19-1. TWAVeform Subsystem Syntax Diagram (continued) HP 1650B/HP 16518 19-4 Programming Reference...
Page 257
The TWAVeform selector is used as part of a compound header to access the settings found in the Timing Waveforms menu. It always follows the in the command tree. Command Syntax: :MACHine{l IP}:TWAVeform Example: OUTPUT XXX;" :MACHINEl:TWAVEFORM:OELAY HP 1650B/HP 16618 TWAVeform Subsystem Programming Reference...
Page 258
1 /2}:TWAVeform:ACCumulate? Returned Format: [ : M A C H i n e { l I2}:TWAVeform:ACCumulate] Example: 1 0 DIM P$ [loo] 20 OUTPUT XXX;” :MACHINEl:TWAVEFORM:ACCUMULATE?” 30 ENTER XXX; P$ 40 PRINT P$ 50 END HP 1650B/HP 16518 Programming Reference 19-6...
Page 259
> :: = real number between -2500 s and +2500 s OUTPUT XXX;":MACHINEl:TWAVEFORM:DELAY Example: Query Syntax: Returned Format: Example: 10 DIM Dl$ [loo] 20 OUTPUT 30 ENTER XXX; 40 PRINT Dl$ 50 END HP 1650B/HP 16518 Programming Reference 19-7...
Page 260
If OVERlay is specified, all the bits of the label are displayed as a composite overlaid waveform. Command Syntax: where: :: = string of up to 6 alphanumeric characters c label-name z= :: = integer from 0 to 31 Example: OUTPUT XXX;":MACHINEl:TWAVEFORM:INSERT, HP 1850B/HP 18518 Programming Reference 1 9 - 8...
Page 261
Example: OUTPUT XXX; “:MACHINEl:TWAVEFORM:MMODE TIME” Query Syntax: Returned Format: where :: = {OFFI PATTern ITIME MSTats} Example: 20 OUTPUT XXX;” :MACHfNEl:TWAVEFORM:MMODE?” 30 ENTER XXX; M$ 4 0 P R I N T M$ 50 END HP 1650B/HP 16518 Programming Reference...
Page 262
The OCONdition query returns the current setting. Command Syntax: OUTPUT XXX; ":MACHINE1:TWAVEFORM:OCONOITION ENTERING" Example: Query Syntax: :MACHine{l 12}:TWAVeform:OCONdition? Returned Format: Example: 10 DIM ocs [loo] 20 OUTPUT 30 ENTER XXX; 40 PRINT Oc$ 50 END HP 1650WHP 1651B Programming Reference...
Page 263
(XX...X) are returned. Command Syntax: : MACHine{ c label-name >, <label-pattern > where: c label-name > :: = string of up to 6 alphanumeric characters c label-pattern > . . 1 . . }” Example: OUTPUT XXX; HP 1650B/HP 16518 Programming Reference...
Page 264
<label-name> Query Syntax: Returned Format: [:MACHine{l 12):TWAVeform:OPATternl Example: 10 DIM Op$ [loo] OUTPUT XXX;":MACHINEl:TWAVEFORM:OPATTERN? 'A"' 30 ENTER XXX; 40 PRINT Op$ 50 END HP 1650B/HP 1651B Programming Reference...
Page 265
:: = {TRIGger plAF&er) :: = integer from -9999 to +QQQQ Example: OUTPUT XXX; Query Syntax: :MACHine{l J2):TWAVeform:OSEarch? Returned Format: <occurrence Example: 10 DIM Os$ [loo] 20 OUTPUT XXX;":MACHINEl:TWAVEFORM:OSEARCH?" 30 ENTER XXX; 40 PRINT Os$ 50 END HP 1650B/HP 1651B Programming Reference 19-13...
Page 266
<time-value > :: = real number -2.5Ks to +2.5Ks OUTPUT XXX; ":MACHINEl:TWAVEFORM:OTIME Example: Query Syntax: Returned Format: [:MACHine{l [2}:TWAVeform:OTIMe] <time-value> <NLz- 10 DIM Ot$ [IO01 Example: 20 OUTPUT XXX;" :MACHINEl:TWAVEFORM:OTIME?" 30 ENTER XXX; 40 PRINT Ott HP 1650B/HP 16518 Programming Reference...
Page 267
:: = real number between 100 ns and 10 ks Example: OUTPUT XXX;":MACHINEl:TWAVEFORM:RANGE Query Syntax: Returned ,Format: [:MACHine{l IP}:TWAVeform:RANGe] <time-value> Example: 10 DIM Rg$ [loo] 20 OUTPUT XXX;" :MACHINEl:TWAVEFORM:RANGE?" 30 ENTER XXX; 40 PRINT Rg$ 50 END HP 1650B/HP 16518 Programming Reference...
Page 268
REMove command REMove The REMove command deletes all waveforms from the display. Command Syntax: :MACHine{l IP}:TWAVeform:REMove Example: OUTPUT XXX;":MACHINEl:TWAVEFORM:REMOVE" HP 1650B/HP 16518 Programming Reference...
Page 269
: : = { O F F 1 LT, <value > 1 GT, < v a l u e > 1 INRange < v a l u e > , <value z 1 <value > , <value > } :: = real number Examples: G T , 800.OE-6” OUTPUT O U T P U T XXX;“:MACHINEl:TWAVEFORM:RUNTIL HP 1650B/HP 16518 Programming Reference...
Page 270
Query Syntax: 1 (2}:TWAVeform:RUNTil? Format: Example: 10 DIM Ru$ [loo] 20 OUTPUT XXX; “:MACHINE1:TWAVEFORM:RUNTlL?” 30 ENTER XXX; Rut 4 0 P R I N T Ru$ 50 END HP 1850B/HP 18518 Programming Reference...
Page 271
< t i m e - v a l u e > < NL> where: :: = real number Example: 2 0 O U T P U T XXX;“:MACHINEl:TWAVEFORM:SPERIOD?” 30 ENTER XXX; Sp$ 4 0 P R I N T Sp$ 50 END HP 1650B/HP 16518 Programming Reference 19-19...
Page 272
0 markers. If there is no valid data, the query returns 9.9E37. Query Syntax: :MACHine{l 12}:TWAVeform:TAVerage? Returned Format: [:MACHine{l 12):TWAVeform:TAVeragel <time-value > < NL=- where: :: = real number <time-value z= Example: 10 DIM Tv$ [loo] 30 ENTER XXX; 40 PRINT Tv$ 50 END HP 1650B/HP 16518 Programming Reference...
Page 273
X and 0 markers. If there is no valid data, the query returns 9.9E337. Query Syntax: :MACHine{l 12}:TWAVeform:TMAXimum? Returned Format: where c time-value > :: = real number Example: 10 DIM Tx$ [lDO] 20 OUTPUT XXX;":MACHINEl:TWAVEFORM:TMAXIMUM?" 30 ENTER XXX; 40 PRINT Tx$ 50 END HP 1650B/HP 16518 Programming Reference 19-21...
Page 274
X and 0 markers, If there is no valid data, the query returns 9.9E37. Query Syntax: Returned Format: where: :: = real number 10 DIM Example: Tm$ [lOD] 20 OUTPUT 30 ENTER XXX; 40 PRINT Tm$ 50 END HP 1650B/HP 16518 Programming Reference...
Page 275
Query Syntax: Returned Format: where: <valid-runs > :: = zero or positive integer :: = zero or positive integer Example: 10 DIM VrS [loo] 20 OUTPUT XXX;“:MACHINEl:TWAVEFORM:VRUNS?” 30 ENTER XXX; Vr$ 40 PRINT Vr$ HP 1650B/HP 16518 Programming Reference 19-23...
Page 276
: M A C H i n e { l 12}:TWAVeform:XCONdition? Returned Format: 1 12):TWAVeform:XCONditionl Example: 1 0 D I M Xc$ [loo] 20 OUTPUT 30 ENTER XXX: Xc$ 4 0 P R I N T Xc$ 50 END HP 165OB/HP 1651B Programming Reference 19-24...
Page 277
The XOTiie query returns the time from the X marker to the 0 marker. If data is not valid, the query returns 9.9E37. Query Syntax: Returned Format: where: :: = real number Example: 10 DIM Xot$ [loo] 20 OUTPUT 30 ENTER XXX; 40 PRINT Xot$ 50 END HP 1650B/HP 1651B Programming Reference...
Page 278
(XX...X) are returned. Command Syntax: <label-name >, -z label-pattern > where: :: = string of up to 6 alphanumeric characters : : = “{#B(O~l~X}... 1 . I I . . }” Example: OUTPUT XXX; “:MACHINEl:TWAVEFORM:XPATTERN HP 1650B/HP 16518 Programming Reference...
Page 279
<label-name >, c label-pattern > < NL> Example: 1 0 D I M Xpf [loo] 2 0 O U T P U T XXX;“:MACHINEl:TWAVEFORM:XPATTERN? ‘A”’ 30 ENTER XXX; Xp$ 4 0 P R I N T XpS 50 END HP 1650B/HP 16518 Programming Reference...
Page 280
1 [2):TWAVeform:XSEarch? <occurrence >, <origin Returned Format: 10 DIM xss [loo] Example: 2 0 O U T P U T XXX;“:MACHINEl:TWAVEFORM:XSEARCH?” 30 ENTER XXX; Xs$ 4 0 P R I N T Xs$ 50 END HP 1850B/HP 18518 Programming Reference 19-28...
Page 281
Returned Format: Example: 1 0 D I M X t $ [lOO] 2 0 O U T P U T )(XX;“:MACHINE1:TWAVEFORM:XlIME?” 30 ENTER W Xt$ 4 0 P R I N T X t $ HP 1650B/HP 16518 Programming Reference...
Page 283
SYMBol Subsystem Introduction The SYMBol subsystem contains the commands that allow you to define symbols on the controller and download them to the HP 1650B/51B logic analyzer. The commands in this subsystem are: BASE l a b e l - n a m e l a b e l - n a m e Figure 20-l.
Page 285
It always follows the MACHine selector because it selects a branch directly below the MACHine level in the command tree. Command Syntax: Example: OUTPUT 'DATA', BINARY" HP 1650B/HP 16518 SYMBol Subsystem Programming Reference 20-3...
Page 286
Note !b case the base will default to HEXadecimaI. Command Syntax: where: :: = string of up to 6 alphanumeric characters :: = {BINary ) HEXadecimal 1 OCTal ) DECimal 1 ASCii) Example: OUTPUT XXX;“:MACHINEl:SYMBOL:BASE HP 1650B/HP 16518 20-4 Programming Reference...
Page 287
<symbol-name > :: = string of up to 16 alphanumeric characters <pattern-value : : = “{#B{O/lIX)..1 . . }” Example: OUTPUT XXX ; ” :MACtlINEl:SYMBOL:PATTERN ‘ S T A T ’ , ‘MEM-RD’.‘#HOlXX’” HP 1650B/HP 16518 Programming Reference...
Page 288
:: = string of up to 16 alphanumeric characters ::= “{#B{Oll} . . . 1 . . I . . }” . . I . . I Example: 'STAT', 'IO~ACC','O'.'#HOOOF'" O U T P U T X X X ; ” :MACHINEl:SYMBOL:RANGE HP 1650B/HP 16518 Programming Reference...
Page 289
REMove command REMove The REMove command deletes all symbols from a specified machine. : M A C H i n e { l IP}:SYMBol:REMove Command Syntax: Example: OUTPUT XXX;“:MACHINEl:SYMBOL:REMOVE” HP 1650B/HP 16518 Programming Reference...
Page 290
:MACHine(l j2):SYMBol:WiDTh c label-name > , c width-value > Command Syntax: where: :: = string of up to 6 alphanumeric characters <width-value > :: = integer from 1 to 16 OUTPUT XXX;“:MACHINEl:SYMBOL:WIDTH Example: HP 1850B/HP 16518 Programming Reference 20-8...
Page 291
This appendix describes the operation of instruments that operate in compliance with the IEEE 488.2 (syntax) standard. Although the HP 1650B and HP 1651B logic analyzers are RS-232C instruments, they were designed to be compatible with other Hewlett-Packard IEEE 488.2 compatible instruments.
The responses to each of the queries in a compound query will also be separated by semicolons. Commands are executed in the order they are received. HP 1650B/HP 16518 Message Communication and System Functions Programming Reference...
A query error will be reported if the proper protocol for Error. reading a query is not followed. This includes the interrupted and unterminated conditions described in the following paragraphs. Message Communication and System Functions HP 1650B/HP 16518 Programming Reference...
Programming and Documentation Conventions chapter). 3. Multiple data parameters are separated by a comma. 4. The first data parameter is separated from the header with one or more spaces. HP 1650B/HP 1651B Message Communication and System Functions Programming Reference...
Page 296
It places the parser in the machine subsystem until the < NL > is encountered. 6. A colon preceding the command header returns you to the top of the command tree. Message Communication and System Functions HP 1650B/HP 1651B...
Page 297
> 3 . 0 < s u f f i x m u l t i p l i e r > Figure A-l. c program message > Parse Tree HP 1650B/HP 1661B Message Communication and System Functions...
Page 298
> is used by several instrument listening components of the syntax It is usually optional, and can be used to increase the readability of a program. Figure A-2. <white space > HP 1650B/HP 1651B Message Communication and System Functions Programming Reference...
Page 299
Documentation Conventions” chapter for more details. Figure A-3. c program message > container for individual commands within a < program message >. u n i t > Figure A-4. c program message unit > Message Communication and System Functions HP 1650WHP 16518...
Page 300
Figure A-5. c command message unit > < p r o g r a m d a t a < p r o g r a m doto> header Figure A-6. <query message unit > HP 1650B/HP 16518 Message Communication and System Functions Programming Reference A-10...
Page 301
Figure A-7. c program message unit separator > elements serve as the headers of commands or queries. They represent the action to be taken. <compound Figure A-8. < command program header > HP 1650B/HP 16518 Message Communication and System Functions Programming Reference A-11...
Page 302
39 (48 - 57 decimal). where ( _ ) represents an “underscore”, a single ASCII-encoded byte with the value SF (95 decimal). Figure A-8. c command program header > (continued) Message Communication and System Functions HP 1650B/HP 16518 A-12 Programming Reference...
Page 303
p r o g r a m h e a d e r > Figure A-9. c query program header > Message Communication and System Functions Programming Reference A-13...
Page 304
> . The <program data > element represents the possible types of data which may be sent to the instrument. The HP 1650B/1651B will accept the following data types: < character program data > , < decimal numeric program data >, < suffer program data >, <...
Page 305
Where < mantissa > is defined as > d i g i t s > Where c optional digits > is defined as Figure A-12. c decimal numeric program data > HP 1650B/HP 1651B Message Communication and System Functions Programming Reference A-15...
Page 306
A-l. Table A-l. c suffix mult > Mnemonic Value The suffm units that the instrument will accept are shown in table A-2. Table A-2. c suffix unit > HP 1650B/HP 1651B Message Communication and System Functions A-16 Programming Reference...
Page 307
Where c inserted ” > is defined as a single ASCII character with the value 22 (34 decimal). where <non-double quote char> is defined as a single ASCII character of any value except 22 (34 decimal) Figure A-14. c string program data > HP 1650B/HP 16518 Message Communication and System Functions Programming Reference A-l?
Page 308
Figure A-15. c arbitrary block program data > c program data separator > . A comma separates multiple data parameters of a command from one another. Figure A-16. c program data separator > HP 1650B/HP 16518 Message Communication System Functions Programming Reference...
Page 309
Where c NL > is defined as a single ASCII-encoded byte QA (10 decimal). Figure A-18. c program message terminator > HP 1650B/HP 16518 Message Communication and System Functions Programming Reference...
Page 310
1 , : T W A V E F O R M D E L A Y 3.8E-9 Figure A-19. c response message > Tree Message Communication and System Functions HP 1650B/HP 16518 A-20 Programming Reference...
> , although a -z query message unit > may generate multiple c response message unit > s. indicates what the response data represents. HP 1650B/HP 16518 Message Communication and System Functions Programming Reference...
Page 312
> is defined as where c common response header > is dejined as < r e s p o n s e Figure A-21. < response message unit > HP 1650B/HP 16518 Message Communication and System Functions Programming Reference A-22...
Page 313
> , < string response data > , c definite length arbitrary block response data > , and c arbitrary ASCII response data > . Figure A-22. c character response data > Message Communication and System Functions HP 1650B/HP 16518 A-23 Programming Reference...
Page 314
> Figure A-23. c nrl numeric response Figure A-24. c nr3 numeric response data > <inserted"> Figure A-25. c string response data > HP 1650B/HP 16518 Message Communication and System Functions Programming Reference A-24...
Page 315
It is only sent once with the last byte of the indefinite block data. The NL is present for consistency with the format is not supported in the HP 1650B/1651B. Figure A-27. c arbitrary ASCII response data > HP 1650B/HP 16518...
Page 316
C response message terminator > . A <response message terminator > (NL) terminates a complete c response message > . It should be read from the instrument along with the response itself. Message Communication and System Functions HP 1650B/HP 16518 Programming Reference A-28...
IEEE 488.2 common commands do not affect the parser’s position within the command tree. More information about the command tree and tree traversal can be found in the Programming and Documentation Conventions chapter. Table A-3. HP 165OB/51B’s Common Commands Command Name Command Clear Status Command Event Status Enable Command...
The “*CL.!? command clears all event registers and all queues except the output queue. If “*CL.!7 is sent immediately following a c program message terminator > , the output queue will also be cleared. Status Reporting HP 1650B/HP 16516 Programming Reference...
Page 320
L O G I C A L O R / QUEUES : O - O U T P U T M-MESSAGE M R E M L Figure B-l. Status Byte Structures and Concepts HP 1650B/HP 16518 Status Reporting Programming Reference...
PON - power on. Indicates power has been turned on. URQ - user request. Always 0 on the HP 1650B/1651B. CME - command error. Indicates whether the parser detected an error. The error numbers and/or strings for CME, EXE, DDE, and QYB can be Note d read from a device defined queue (which is not part of 488.2) with the...
RQS bit have been enabled a service request will be generated. The commands which affect the OPC bit are the overlapped commands. OUTPUT XXX;“*SRE 32 ; *ESE 1’ !enables an OPC service request Status Reporting HP 1650B/HP 16518 Programming Reference...
Page 323
Status Byte are not be cleared by reading them. Only the RQS bit is cleared when read. The Status Byte is cleared with the *CLS common command. STATUS BYTE REGISTER SERVICE REOUEST ENABLE REGISTER l SRE <NRf> Figure B-2. Service Request Enabling HP 1660B/HP 16518 Status Reporting Programming Reference...
This example will show how to use the service request by conducting a Using Serial Poll (HP-IB) serial poll of all instruments on the HP-IB bus. In this example, assume that there are two instruments on the bus; a Logic Analyzer at address 7 and a printer at address 1.
Page 325
After the serial poll is completed, the RQS bit in the HP 1650B/1651B Status Byte Register wilI be reset if it was set. Once a bit in the Status...
The *PRE command is used to write to the enable register and the *PRE? query is used to read the register. The *IST? query can be used to read the “ist” without doing a parallel poll. HP 1850B/HP 1651B Status Reporting Programming Reference...
Page 327
DEVICE DEFINED CONDITIONS STATUS BYTE PARALLEL POLL ENABLE REGISTER Figure B-3. Parallel Poll Data Structure HP 1650B/HP 16618 Status Reporting Programming Reference...
Configuring Parallel Certain devices, including the HP 1650B/1651B, can be remotely Poll Responses 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.
If no primary address is specified, all bus devices are disabled from responding to a parallel poll. If a primary address is specified, only the specified devices (which have the parallel poll configure capability) are disabled. HP 1650B/HP 16618 Status Reporting Programming Reference B-11...
The parallel poll enable secondary Parallel Poll Enable Command. 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. The parallel poll disable secondary Parallel Poll Disable Command.
Error Messages This section covers the error messages that relate to the HP 1650ABlA Logic Analyzers. 200 Label not found Device Dependent Errors 201 Pattern string invalid 203 Data not available 300 RS-232C error Error Messages HP 1650B/HP 16518 Programming Reference...
Page 332
-132 Wrong data type (string expected) -133 Wrong data type (block type #D required) -134 Data overflow (string or block too long) -142 Too many arguments -143 Argument delimiter error -144 Invalid message unit delimiter HP 1650B/HP 16618 Error Messages Programming Reference...
Page 333
-240 Mass Memory error (generic) -241 Mass storage device not present -242 No media -243 Bad media -244 Media full Directory full -245 found -246 File name not -247 Duplicate file name -248 Media protected Error Messages HP 1650B/HP 16518 Programming Reference...
-313 Calibration data loss -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) HP 1650B/HP 16518 Error Messages Programming Reference c - 4...
Page 335
-400 Query Error (generic) Query Errors -410 Query INTERRUPTED -420 Query UNTERMINATED -421 Query received. Indefinite block response in progress -422 Addressed to Talk, Nothing to Say -430 Query DEADLOCKED Error Messages HP 1650B/HP 1651B Programming Reference...
Page 337
RS-232C 3-2 Analyzer 1 Data Information chart display 15-l Analyzer 2 Data Information 6-11 Clear To Send (CTS) Angular brackets 4-3 Arguments l-4 ARM command/query lo-4 CME B-3 Combining commands 1-6 Comma l-8 Command l-3,1-14 Index-l HP 1650B/HP 16618 Programming Reference...
Page 338
COPY 7-6, 16-5 DATA 6-5, 16-6 Run Control 6-1 DSP 6-18 EDGE 18-6 FIND 12-8 STOP 6-37 KEY 6-21 SYStem:DATA 6-5 L I N E 8-5,13-g SYStem:SETup 6-34 LOAD:CONFig TAG 12-19 T E R M 12-21 HP 1650B/HP 16518 Index-2 Programming Reference...
Page 339
Duplicate keywords 1-6 DATA 6-5 command 6-5 State (no tags 6-12 State (with either time or stata tags 6-12 Timing Glitch 6-14 EDGE command/query 18-6 - 18-7 Transitional Timing 6-15 Data bits 3-5 - 3-6 index-3 HP 1650B/HP 16518 Programming Reference...
Page 342
Program message syntax l-2 Program message terminator l-16 Program syntax l-2 Programming conventions 4-2 Protocol 3-5, A-3 KEY 6-21 None 3-5 Protocol exceptions A-4 LER 6-23 Protocols A-2 LINE 8-5, U-9 MENU 6-26 MESE 6-27 HP 1650B/HP 16518 Index-6 Programming Reference...
Page 343
TERM 12-21 RQC B-4 RQS B-3 RS-232C 3-1,3-6, A-l Run Control Commands 6-l T Y P E 10-8 U-21,19-23 SDC 2-5 Section data 6-8 Section data format 6-6 Query errors C-5 Section header 6-8 Index-7 HP 1650B/HP 16618 Programming Reference...
Page 344
Syntax diagrams 4-2 IEEE 488.2 A-5 STRace selector 12-4 System commands 4-4,6-l STRace Subsystem 12-1 String data l-9 String variables l-15 Subsystem DLIST 8-l TAG command/query 12-19 - 12-20 SFORmat 11-1 TERM command/query 12-21- 12-22 HP 1650B/HP 16518 Index-8 Programming Reference...
Page 345
Transitional Timing Data 6-15 Transmit Data (TD) 3-2 - 3-3 Truncation rule 4-l XTAG command/query U-27 command/query 9-6,19;29 x x x XXX (meaning of) l-3 TYPE command/query 10-8 Uppercase 1-8 URQ B-3 White space 1-4 HP 1650B/HP 1651B Index-9 Programming Reference...
Need help?
Do you have a question about the 1650B and is the answer not in the manual?
Questions and answers