background image

Programmer’s Guide

Publication number 16500-97018
First edition, December 1996

For Safety information, Warranties, and Regulatory

information, see the pages behind the Index

 Copyright Hewlett-Packard Company 1987, 1990, 1993, 1994, 1996

All Rights Reserved

HP 16500C/16501A
Logic Analysis System

Summary of Contents for 16501A LOGIC

Page 1: ... 97018 First edition December 1996 For Safety information Warranties and Regulatory information see the pages behind the Index Copyright Hewlett Packard Company 1987 1990 1993 1994 1996 All Rights Reserved HP 16500C 16501A Logic Analysis System ...

Page 2: ...ii ...

Page 3: ...e 1 and Volume 2 The Volume 2 binder gives you a place to insert the module programmer s guides when the Volume 1 binder is full As you purchase additional measurement modules insert their programmer s guides in the back of this binder or in the second binder What is in the HP 16500C 16500A Programmer s Guide The HP 16500C 16501A Programmer s Guide is organized in three parts Introduction to Progr...

Page 4: ...syntax definitions and examples Chapter 6 Message Communication and System Functions provides an overview of the operation of instruments that operate in compliance with the IEEE 488 2 standard Chapter 7 explains status reporting and how it can be used to monitor the flow of your programs and measurement process Chapter 8 contains error message descriptions Part 2 Part 2 chapters 9 through 14 expl...

Page 5: ...tions 1 7 Instruction Terminator 1 8 Header Types 1 9 Duplicate Keywords 1 10 Query Usage 1 11 Program Header Options 1 12 Parameter Data Types 1 13 Selecting Multiple Subsystems 1 15 Receiving Information from the Logic Analysis System 1 16 Response Header Options 1 17 Response Data Formats 1 18 String Variables 1 19 Numeric Base 1 20 Numeric Variables 1 20 Definite Length Block Response Data 1 2...

Page 6: ...Hardware Handshake 3 5 Cable Examples 3 6 Configuring the Logic Analysis System Interface 3 7 Interface Capabilities 3 8 RS 232 C Bus Addressing 3 9 Lockout Command 3 10 4 Programming Over LAN Communicating with the HP 16500C 4 3 LAN Addressing 4 3 Password Protection and File Protection 4 4 Permission Levels Control and Data 4 4 Controlling the HP 16500C 4 5 Echoing Commands 4 6 Copying Command F...

Page 7: ...ization 5 10 Subsystems 5 10 Program Examples 5 12 6 Message Communication and System Functions Protocols 6 3 Syntax Diagrams 6 5 Syntax Overview 6 7 7 Status Reporting Event Status Register 7 4 Service Request Enable Register 7 4 Bit Definitions 7 4 Key Features 7 6 Serial Poll 7 8 Parallel Poll 7 9 Polling HP IB Devices 7 11 Configuring Parallel Poll Responses 7 11 Conducting a Parallel Poll 7 1...

Page 8: ...ual Status 9 9 OPC Operation Complete 9 11 OPT Option Identification 9 12 PRE Parallel Poll Enable Register Enable 9 13 RST Reset 9 14 SRE Service Request Enable 9 15 STB Status Byte 9 16 TRG Trigger 9 17 TST Test 9 18 WAI Wait 9 19 10 Mainframe Commands BEEPer 10 6 CAPability 10 7 CARDcage 10 8 CESE Combined Event Status Enable 10 10 CESR Combined Event Status Register 10 11 EOI End Or Identify 1...

Page 9: ...bsystem DATA 11 5 DSP Display 11 6 ERRor 11 7 HEADer 11 8 LONGform 11 9 PRINt 11 10 SETup 11 12 12 MMEMory Subsystem AUToload 12 7 CATalog 12 8 CD Change Directory 12 9 COPY 12 10 DOWNload 12 11 IDENtify 12 13 INITialize 12 14 LOAD CONFig 12 15 LOAD IASSembler 12 16 MKDir Make Directory 12 17 MSI Mass Storage Is 12 18 PACK 12 19 PURGe 12 20 PWD Present Working Directory 12 21 Contents Contents 5 ...

Page 10: ... 13 9 OUTDrive 13 10 OUTPolar 13 10 OUTType 13 11 PORTEDGE 13 12 PORTLEV 13 13 SKEW N 13 14 TREE 13 15 TTIMe 13 17 14 TGTctrl Subsystem TGTctrl 14 5 ALL 14 6 AVAILable 14 7 BITS 14 8 CURSTate 14 9 DRIVe 14 9 LASTstate 14 10 NAMe 14 11 PULse 14 12 SIGNal 14 12 SIGSTatus 14 13 STATEs 14 14 STEP 14 15 TOGgle 14 15 TYPe 14 16 Contents Contents 6 ...

Page 11: ...3 Checking for Intermodule Measurement Completion 15 6 Sending Queries to the Logic Analysis System 15 7 Getting ASCII Data with PRINt ALL Query 15 9 Reading the disk with the CATalog ALL query 15 10 Reading the Disk with the CATalog Query 15 11 Printing to the disk 15 12 Index Contents Contents 7 ...

Page 12: ...Contents 8 ...

Page 13: ...rogramming Over HP IB 2 1 3 Programming Over RS 232 C 3 1 4 Programming Over LAN 4 1 5 Programming and Documentation Conventions 5 1 6 Message Communication and System Functions 6 1 7 Status Reporting 7 1 8 Error Messages 8 1 General Information ...

Page 14: ......

Page 15: ...1 Introduction to Programming ...

Page 16: ...87 IEEE Standard Codes Formats Protocols and Common Commands These programming instructions provide a means of remotely controlling the HP 16500C Logic Analysis System There are three general categories of use You can Set up the system and start measurements Retrieve setup information and measurement results from the measurement modules Send measurement data to the measurement modules The instruct...

Page 17: ...ns for programming the system will normally appear as ASCII character strings embedded inside the output statements of a host language available on your controller The host language s input statements are used to read in responses from the system For example HP 9000 Series 300 BASIC uses the OUTPUT statement for sending commands and queries to the system After a query is sent the response can be r...

Page 18: ...he bus and all appropriate interfaces are in a known state begin every program with an initialization statement BASIC provides a CLEAR command that clears the interface buffer If you are using HP IB CLEAR will also reset the parser in the Logic Analysis System The parser is the program resident in the Logic Analysis System that reads the instructions you send to it from the controller After cleari...

Page 19: ...40 DIM Card 100 Reserve memory for string variable 50 OUTPUT XXX CARDCAGE Verify which modules are loaded 60 ENTER XXX Card Enter result in a string variable 70 PRINT Card Print result of query 80 OUTPUT XXX MMEM LOAD CONFIG TEST _E 5 Load configuration file into module in slot E 90 OUTPUT XXX SELECT 5 Select module in slot E 100 OUTPUT XXX MENU 5 3 Select menu for module in slot E 110 OUTPUT XXX ...

Page 20: ...l program statement Output Command Device Address and Instruction The instruction is further broken down into three parts Instruction header White space and Instruction parameters Figure 1 1 Program Message Syntax Output Command The output command depends on the language you choose to use Throughout this guide HP 9000 Series 300 BASIC 6 2 is used in the programming examples except where noted If y...

Page 21: ...ssed as a string is when the instruction s syntax definition specifies block_data There are just a few instructions which use block data Instructions are composed of two main parts the header which specifies the command or query to be sent and the parameters which provide additional data needed to clarify the meaning of the instruction Many queries do not use any parameters Instruction Header The ...

Page 22: ...before sending the string to the system Instruction Parameters Instruction parameters are used to clarify the meaning of the command or query They provide necessary data such as whether a function should be on or off which waveform is to be displayed or which pattern is to be looked for Each instruction s syntax definition shows the parameters as well as the range of acceptable values they accept ...

Page 23: ...f two or more program keywords The first keyword selects the subsystem and the last keyword selects the function within that subsystem Sometimes you may need to list more than one subsystem before being allowed to specify the function The keywords within the compound header are separated by colons For example to execute a single function within a subsystem use the following subsystem function whit...

Page 24: ...tion white space data function white space data terminator Example SYSTEM LONGFORM ON HEADER ON Duplicate Keywords Identical function keywords can be used for more than one subsystem For example the function keyword MMODE may be used to specify the marker mode in the subsystem for state listing or the timing waveforms SLIST MMODE PATTERN sets the marker mode to pattern in the state listing TWAVEFO...

Page 25: ... slot 2 in the output buffer SELECT 2 MACHINE1 TWAVEFORM RANGE In order to prevent the loss of data in the output buffer the output buffer must be read before the next program message is sent 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 qu...

Page 26: ...form Programs written in long form are easily read and are almost self documenting The short form syntax conserves the amount of controller memory needed for program storage and reduces the amount of I O activity The rules for short form syntax are discussed in chapter 5 Programming and Documentation Conventions Example Either of the following examples turns on the headers and long form Long form ...

Page 27: ...nd the commas but it is not mandatory Numeric data For numeric data you have the option of using exponential notation or using suffixes to indicate which unit is being used However exponential notation is only applicable to the decimal number base Do not combine an exponent with a unit See Also Tables 6 1 and 6 2 in chapter 6 Message Communications and System Functions list all available suffixes ...

Page 28: ...ruction in a string String data String data may be delimited with either single or double quotes String parameters representing labels are case sensitive For instance the labels Bus A and bus a are unique and can not be used interchangeably Also pay attention to the presence of spaces because they act as legal characters just like any other So the labels In and In are also two different labels Key...

Page 29: ... separating each command with a semicolon The colon following the semicolon enables you to enter a new subsystem instruction header data instruction header data terminator Multiple commands may be any combination of simple compound and common commands Example SELECT 2 MACHINE1 ASSIGN2 SYSTEM HEADERS ON Introduction to Programming Selecting Multiple Subsystems 1 15 ...

Page 30: ...ly has two parameters the device address and a format specification for handling the response message All results for queries sent in a program message must be read before another program message is sent For example when you send the query SYSTEM LONGFORM you must follow that query with an input statement In BASIC this is usually done with an ENTER statement and in C with a read command The format...

Page 31: ...e separator between the header and the data always consists of one space A command or query may be sent in either long form or short form or in any combination of long form and short form The HEADER and LONGFORM commands only control the format of the returned data and they have no affect on the way commands are sent Example The following examples show some possible responses for a SELECT 2 MACHIN...

Page 32: ...re possible responses to the SELECT 2 MACHINE1 TFORMAT LAB ADDR query Header on Longform on SELECT 2 MACHINE1 TFORMAT LABEL ADDR 19 POSITIVE terminator Header on Longform off SEL 2 MACH1 TFOR LAB ADDR 19 POS terminator Header off Longform on ADDR 19 POSITIVE terminator Header off Longform off ADDR 19 POS terminator See Also The individual commands in Part 2 of this guide contain information on the...

Page 33: ...l instructions to machine 2 in slot 3 20 OUTPUT XXX Machine TYPE STATE Make machine a state analyzer 30 Assign all labels to be positive 40 OUTPUT XXX Machine SFORMAT LABEL CHAN 1 POS 50 OUTPUT XXX Machine SFORMAT LABEL CHAN 2 POS 60 OUTPUT XXX Machine SFORMAT LABEL OUT POS 99 END If you want to observe the headers for queries you must bring the returned data into a string variable Reading queries...

Page 34: ...ill be returned in the same base as shown on screen When the prefix B precedes the returned data the value is in the binary base Likewise Q is the octal base and H is the hexadecimal base If no prefix precedes the returned numeric data then the value is in the decimal base Numeric Variables If your host language can convert from ASCII to a numeric format then you can use numeric variables Turning ...

Page 35: ...as block data allows any type of device dependent data to be transmitted over the system interface as a series of data bytes Definite length block data is particularly useful for sending large quantities of data or for sending 8 bit extended ASCII codes The syntax is a pound sign followed by a non zero digit representing the number of digits in the decimal integer Following the non zero digit is t...

Page 36: ... single program message but you must also read them back within a single program message This can be accomplished by either reading them back into a string variable or into multiple numeric variables Example You can read the result of the query SYSTEM HEADER LONGFORM into the string variable Results with the BASIC command ENTER XXX Results When you read the result of multiple queries into string v...

Page 37: ...pretation of returned data Example The following program message in HP BASIC is used to read the query SYSTEM HEADERS LONGFORM into multiple numeric variables ENTER XXX Result1 Result2 System Status Status registers track the current status of the mainframe and the installed modules By checking the system status you can find out whether an operation has been completed whether a module is receiving...

Page 38: ...1 24 ...

Page 39: ...2 Programming Over HP IB ...

Page 40: ...e interface functions and some general concepts of HP IB In general these functions are defined by IEEE 488 1 HP IB standard They deal with general bus management issues as well as messages which can be sent over the bus as bus commands 2 2 ...

Page 41: ...he respective Programmer s Guides for each module installed in the mainframe Talk Listen Addressing By using the touchscreen fields in the System Configuration menu the HP IB interface can be placed in talk only mode by connecting to the printer or in addressed talk listen mode by connecting to the controller See Also Chapter 3 Configuring Communications in the HP 16500C User s Reference Talk only...

Page 42: ...ss multiple devices through the same interface card the device address passed with the program message must include not only the correct instrument address but also the correct interface code Interface Select Code Selects the Interface Each interface card has its own interface select code This code is used by the controller to direct commands and communications to the proper interface The default ...

Page 43: ... with local lockout mode all controls except the power switch are entirely locked out Local control can only be restored by the controller Hint Cycling the power will also restore local control but this will also reset certain HP IB states It also resets the system to the power on defaults and purges any acquired data in the acquisition memory of all the installed modules The instrument is placed ...

Page 44: ...ser clear any pending commands and clear the Request OPC flag Group Execute Trigger GET The group execute trigger command will cause the same action as the START command for Group Run the instrument will acquire data for the active waveform and listing displays Interface Clear IFC This command halts all bus activity This includes unaddressing all listeners and the talker disabling serial poll on a...

Page 45: ...3 Programming Over RS 232 C ...

Page 46: ...ion of EIA Recommended Standard RS 232 C Interface Between Data Terminal Equipment and Data Communications Equipment Employing Serial Binary Data Interchange With this interface data is sent one bit at a time and characters are not synchronized with preceding or subsequent data characters Each character is sent as a complete entity without relationship to other events 3 2 ...

Page 47: ...th extended hardwire operation a high on the CTS line allows the Logic Analysis System to send data and a low prevents the Logic Analysis System from transmitting data Likewise a high on the RTS line allows the controller to send data and a low signals a request for the controller to disable data transmission Because a three wire interface has no control over the CTS line internal pull up resistor...

Page 48: ...e three wire interface cables For example some communications software packages can use XON XOFF but also depend on the CTS and DSR lines being true to communicate The Logic Analysis System uses the following connections on its RS 232 C interface for three wire communication Pin 5 SGND Signal Ground Pin 3 TD Transmit Data from Logic Analysis System Pin 2 RD Receive Data into Logic Analysis System ...

Page 49: ...e Logic Analysis System within two bytes Pin 4 DTR Data Terminal Ready is an output from the Logic Analysis System which is enabled as long as the Logic Analysis System is turned on The TD Transmit Data line from the Logic Analysis System must connect to the RD Receive Data line on the controller Likewise the RD line from the Logic Analysis System must connect to the TD line on the controller The ...

Page 50: ...mitted from the Logic Analysis System Cable Examples HP 9000 Series 300 Figure 3 1 is an example of how to connect the HP 16500C 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 Because this example does not have the correct connections for hardware handshake you must...

Page 51: ...female to 25 pin male cable The following HP cables support this configuration HP 24542G DB 9 F to DB 25 M 3 meter HP 24542H DB 9 F to DB 25 M 3 meter shielded HP 45911 60009 DB 9 F to DB 25 M 1 5 meter Figure 3 2 9 pin F to 25 pin M Cable Configuring the Logic Analysis System Interface The RS 232 Settings field in the System Configuration Menu allows you access to the RS 232 Settings menu where t...

Page 52: ... to occur With hardware handshake the hardware signals control data flow XON XOFF XON XOFF stands for Transmit On Transmit Off With this mode the receiver controller or Logic Analysis System controls data flow and can request that the sender Logic Analysis System or controller stop data flow By sending XOFF ASCII 19 over its transmit data line the receiver requests that the sender disables data tr...

Page 53: ...ware configuration of your computer Additionally your communications software must be configured to address the proper serial port Refer to your computer and communications software manuals for more information on setting up your serial port address HP 9000 Series 300 Controllers Each RS 232 C interface card for the HP 9000 Series 300 Controller has its own interface select code This code is used ...

Page 54: ...ending the LOCKout OFF command Hint Cycling the power will also restore local control but this will also reset certain RS 232 C states It also resets the Logic Analysis System to the power on defaults and purges any acquired data in the acquisition memory of all the installed modules See Also For more information on this command see chapter 11 SYSTem Subsystem Programming Over RS 232 C Lockout Com...

Page 55: ...4 Programming Over LAN ...

Page 56: ...rogram your logic analysis system over a LAN There are no commands needed for controlling the connection and no special cabling issues This chapter assumes you have already set up your LAN and concentrates on how to control the HP 16500C from a host computer 4 2 ...

Page 57: ...col of Ethernet LAN messages take an indeterminate amount of time to reach their destinations There can be no guarantee that commands sent from your computer will reach the HP 16500C in a timely way although the majority of messages do LAN Addressing All devices on an Ethernet LAN are uniquely identified by their Ethernet address The Ethernet address is set in the hardware of any Ethernet capable ...

Page 58: ...type of access The general syntax for mounting is UNIX mount host or IP address control data drive name DOS net use drive name host or IP address control data net use drive name host or IP address control data There are two differences between control and data permissions First the control level provides read and write access to all files The data level provides write access only for the disk driv...

Page 59: ...ogram You can send the strings using a variety of methods echo a string from the command line to system program copy an ASCII file containing a series of commands to system program from within a C or BASIC program open the file system program and write the commands to it using fwrite or output Sockets If you are programming in C or another language that supports sockets you can write strings direc...

Page 60: ...e DOS prompt enter c echo START L system program If you are using a UNIX system you can use the UNIX echo command Example An HP 16550A state timing analyzer is installed in slot C slot 3 of your HP 16500C mainframe To clear the trigger set up on the HP 16550A at the DOS prompt enter c echo SELECT 3 L system program c echo MACHINE1 STRIGGER CLEAR ALL L system program If you are using a UNIX system ...

Page 61: ...and trigger set ups on the HP 16550A using a program file first type the commands into an ASCII text file File clear txt SELECT 3 MACHINE1 SFORMAT REMOVE ALL MACHINE1 STRIGGER CLEAR ALL The first command selects the state timing analyzer in slot C to receive programming commands The second command clears the format set up The third command clears the trigger set up Now copy the file to the HP 1650...

Page 62: ...ormation from queries create a text buffer open the program file and read the contents of the file into the buffer In C you can use the fread or getstr commands to read the contents of the file into the buffer Whenever you send queries to the HP 16500 system you will need to pause your program for a short time to allow the system to process the query before you attempt to read the response A time ...

Page 63: ...write str strlen str 1 file int getstr FILE file char str return fread str 1 STR_LEN file void main FILE file int num char receive_str STR_LEN Send a query and retrieve and print the response file fopen users system program r while getstr file receive_str 0 fclose file file fopen users system program w putstr file idn n fclose file sleep 1 file fopen users system program r while getstr file receiv...

Page 64: ...r file sel 4 n putstr file mach1 twav range 1 s n putstr file start n putstr file mach1 twav range 100 ns n fclose file sleep 2 file fopen users system program r while getstr file receive_str 0 fclose file printf s n receive_str Programming Over LAN Writing to system program from a Program 4 10 ...

Page 65: ...ery to request the instrument s identity If someone else is already connected as control user the socket will eventually close without receiving a response include stdio h include sys types h include sys socket h include netinet in h typedef struct sockaddr_in tdSOCKET_ADDR define PARSER_PORT 5025 define SERV_HOST_ADDR 15 10 96 12 define PARSER_BUFFER_SIZE 100 char receiveBuffer PARSER_BUFFER_SIZE...

Page 66: ...ntf s n receiveBuffer close sockfd Example This example uses telnet to connect directly to the HP 16500 parser socket To remotely interact with the logic analyzer enter telnet symbolic name or IP address 5025 You must specify the HP 16500 parser socket address 5025 You can now type commands directly to the HP 16500 system The results of queries will appear on the command line of your PC or worksta...

Page 67: ...can only be restored by sending the LOCKout OFF command Hint Cycling the power will also restore local control but this will reset the Logic Analysis System to the power on defaults and purges any acquired data in the acquisition memory of all the installed modules See Also For more information on this command see chapter 11 SYSTem Subsystem Programming Over LAN Lockout Command 4 13 ...

Page 68: ...4 14 ...

Page 69: ...5 Programming and Documentation Conventions ...

Page 70: ...vers 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 5 2 ...

Page 71: ... character is a vowel In that case only the first three characters are used There are some commands that do not conform to the truncation rule by design These will be noted in their respective description pages Some examples of how the truncation rule is applied to various commands are shown in table 5 1 Table 5 1 Truncation Examples Long Form Short Form OFF OFF DATA DATA START STAR LONGFORM LONG ...

Page 72: ... 488 2 defines two times at which query responses may be buffered 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 16500C Logic Analysis System will buffer responses to a query when it is parsed Syntax Diagrams At the beginning of each chapter in Part 2 Commands is a syntax diagram...

Page 73: ...lize a program code parameter or a bus command is defined as For example A B indicates that A can be replaced by B in any statement containing A or Indicates a choice of one element from a list For example A B indicates A or B but not both An ellipsis trailing dots is used to indicate that the preceding element may be repeated one or more times Square brackets indicate that the enclosed items are ...

Page 74: ... of a branch has been reached Command Types As shown in chapter 1 Header Types there are three types of headers Each header has a corresponding command type This section shows how they relate to the command tree System Commands The system commands reside at the top level of the command tree These commands are always parsable if they occur at the beginning of a program message or are preceded by a ...

Page 75: ...Figure 5 1 HP 16500C Command Tree Programming and Documentation Conventions The Command Tree 5 7 ...

Page 76: ...at 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 compound header is parsed The following examples are written using HP BASIC 6 2 on a HP 9000 Series 300 Controller The quoted string is placed on the bus followed by a carriage return and linef...

Page 77: ...Y INITIALIZE STORE FILE FILE DESCRIPTION Another way to send these commands is by placing MMEMORY before the STORE command as shown in the second line of this example OUTPUT XXX MMEMORY INITIALIZE OUTPUT XXX MMEMORY STORE FILE FILE DESCRIPTION Example In this example 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...

Page 78: ...tters As an example AUToload indicates that the long form of the command is AUTOLOAD and the short form of the command is AUT Each of the commands contain a description of the command its arguments and the command syntax Subsystems There are four subsystems in the mainframe In the command tree figure 5 1 they are shown as branches with the node above showing the name of the subsystem Only one subs...

Page 79: ...mon INSert INTermodule SIGNal TGTctrl TST Common LASTstate TGTctrl SIGStatus TGTctrl WAI Common LER Mainframe SKEW INTermodule ALL TGTctrl LOAD MMEMory STARt Mainframe AUToload MMEMory LOCKout Mainframe STATes TGTctrl AVAILable TGTctrl LONGform SYSTem STEP TGTctrl BEEPer Mainframe MENU Mainframe STOP Mainframe BITS TGTctrl MESE Mainframe STORe MMEMory CAPability Mainframe MESR Mainframe SETup SYST...

Page 80: ...tters may be mixed freely System commands like HEADer and LONGform allow you to dictate what forms the responses take but they have no affect on how you must structure your commands and queries Example The following commands all set the logic analyzer s Timing Waveform Delay to 100 ms Keywords in long form numbers using the decimal format OUTPUT XXX SELECT 2 MACHINE1 TWAVEFORM DELAY 1 Keywords in ...

Page 81: ...6 Message Communication and System Functions ...

Page 82: ...EEE 488 1 HP IB bus standard however IEEE 488 1 compatible instruments may or may not conform to the IEEE 488 2 standard The IEEE 488 2 standard defines the message exchange protocols by which the instrument and the controller will communicate It also defines some common capabilities which are found in all IEEE 488 2 instruments This chapter also contains a few items which are not specifically def...

Page 83: ...cute and then proceed to talk to another instrument while the first instrument is parsing and executing commands Output Queue The output queue of the instrument is the memory area where all output data are stored until read by the controller Parser The instrument s parser is the component that interprets the commands sent to the instrument and decides what actions should be taken Parsing and execu...

Page 84: ...urned on the input buffer and output queue are cleared and the parser is reset to the root level of the command tree The instrument and the controller communicate by exchanging complete program messages and response messages This means that the controller should always terminate a program message before attempting to read a response The instrument will terminate response messages except during a h...

Page 85: ...col for reading a query is not followed This includes the interrupted and unterminated conditions described in the following paragraphs Syntax Diagrams The example syntax diagram in this chapter is similar to the syntax diagrams in the IEEE 488 2 specification Commands and queries are sent to the instrument as a sequence of data bytes The allowable byte sequence for each functional element is defi...

Page 86: ...Figure 6 1 Example syntax diagram Message Communication and System Functions Syntax Diagrams 6 6 ...

Page 87: ...tainer for one command The program message units are separated by a semicolon A program message is terminated by a NL new line The recognition of the program message terminator or PMT by the parser serves as a signal for the parser to begin execution of commands The PMT also affects command tree traversal Multiple data parameters are separated by a comma The first data parameter is separated from ...

Page 88: ...Figure 6 2 program message Parse Tree Message Communication and System Functions Syntax Overview 6 8 ...

Page 89: ...ed by several instrument listening components of the syntax It is usually optional and can be used to increase the readability of a program Suffix Multiplier The suffix multipliers that the instrument will accept are shown in table 6 1 They are used in conjunction with suffix units shown in table 6 2 Table 6 1 suffix mult Value Mnemonic 1E18 EX 1E15 PE 1E12 T 1E9 G 1E6 MA 1E3 K 1E 3 M 1E 6 U 1E 9 ...

Page 90: ...instrument will accept are shown in table 6 2 Table 6 2 suffix unit Suffix Referenced Unit V Volt S Second Example To specify 3 ns you might enter 3NS or 3E 9 S in your program Message Communication and System Functions Syntax Overview 6 10 ...

Page 91: ...7 Status Reporting ...

Page 92: ...vailable over the bus are the serial and parallel polls IEEE 488 2 defines data structures commands and common bit definitions There are also instrument defined structures and bits The bits in the status byte act as summary bits for the data structures residing behind them In the case of queues the summary bit is set if the queue is not empty For registers the summary bit is set if any enabled bit...

Page 93: ...Figure 7 1 Status Byte Structures and Concepts Status Reporting 7 3 ...

Page 94: ...is register use the SRE and SRE commands Bit Definitions The following mnemonics are used in figure 7 1 and in chapter 9 Common Commands MAV message available Indicates whether there is a response in the output queue ESB event status bit Indicates if any of the conditions in the Standard Event Status Register are set and enabled MSS master summary status Indicates whether the device has a reason f...

Page 95: ...was unable to complete an operation for device dependent reasons QYE query error Indicates whether the protocol for queries has been violated 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 SYSTEM ERROR STRING RQC request control Always returns a 0 from the HP 16500C Logic Analysis System OPC operation com...

Page 96: ...t in the Standard Event Status Register If the OPC bit and the RQS bit have been enabled a service request will be generated The commands that affect the OPC bit are the overlapped commands Example OUTPUT XXX SRE 32 ESE 1 enables an OPC service request Status Byte The Status Byte contains the basic status information which is sent over the bus in a serial poll If the device is requesting service R...

Page 97: ...Figure 7 2 Service Request Enabling Status Reporting Key Features 7 7 ...

Page 98: ... 1 The serial poll operation can be conducted in the following manner 1 Enable interrupts on the bus This allows the controller to see the SRQ line 2 Disable interrupts on the bus 3 If the SRQ line is high some instrument is requesting service then check the instrument at address 1 to see if bit 6 of its status register is high 4 To check whether bit 6 of an instruments status register is high use...

Page 99: ...troller using the PPC Parallel Poll Configure sequence Devices respond either individually each on a separate DIO line collectively on a single DIO line or any combination of these two ways When responding collectively the result is a logical AND True High or logical OR True Low of the groups of status bits Figure 7 3 shows the Parallel Poll Data Structure The summary bit is sent in response to a ...

Page 100: ...Figure 7 3 Parallel Poll Data Structure Status Reporting Parallel Poll 7 10 ...

Page 101: ...ring Parallel Poll Responses Certain devices including the HP 16500C 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 The response and the data bit number can then be programmed by the PPC parallel poll configure st...

Page 102: ...s the device at address 07 on the interface select code 7 to respond by placing a 0 on bit 4 when its status response is true PPOLL CONFIGURE 707 4 Conducting a Parallel Poll The PPOLL Parallel Poll function returns a single byte containing up to 8 status bit messages for all devices on the bus capable of responding to the poll Each bit returned by the function corresponds to the status bit of the...

Page 103: ... a primary address is specified only the specified devices which have the parallel poll configure capability are disabled HP IB Commands The following paragraphs describe actual HP IB commands which can be used to perform the functions of the BASIC commands shown in the previous examples Parallel Poll Unconfigure Command The parallel poll unconfigure command PPU resets all parallel poll devices to...

Page 104: ...l poll disable secondary command PPD disables the devices which have received the PPC command from responding to the parallel poll Table 7 1 Parallel Poll Commands Command Mnemonic Decimal Code ASCII ISO Character Parallel Poll Unconfigure Multiline Command PPU 21 NAK Parallel Poll Configure Addressed Command PPC 05 ENQ Parallel Poll Enable Secondary Command PPE 96 111 I O Parallel Poll Disable Se...

Page 105: ...8 Error Messages ...

Page 106: ...Introduction This chapter lists the error messages that relate to the HP 16500C Logic Analysis System 8 2 ...

Page 107: ...Numeric argument error 121 Wrong data type numeric expected 123 Numeric overflow 129 Missing numeric argument 130 Nonnumeric argument error character string or block 131 Wrong data type character expected 132 Wrong data type string expected 133 Wrong data type block type D required 134 Data overflow string or block too long 139 Missing nonnumeric argument 142 Too many arguments 143 Argument delimi...

Page 108: ...configuration 232 Output buffer full or overflow 240 Mass Memory error generic 241 Mass storage device not present 242 No media 243 Bad media 244 Media full 245 Directory full 246 File name not found 247 Duplicate file name 248 Media protected Internal Errors 300 Device failure generic hardware error 301 Interrupt fault 302 System error 303 Time out 310 RAM error 311 RAM failure hardware error 312...

Page 109: ...led 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 Indefinite block response in progress 422 Addressed to talk nothing to say 430 Query deadlocked Error Messages Query Errors 8 5 ...

Page 110: ...8 6 ...

Page 111: ...Part 2 9 Common Commands 9 1 10 Mainframe Commands 10 1 11 SYSTem Subsystem 11 1 12 MMEMory Subsystem 12 1 13 INTermodule Subsystem 13 1 14 TGTctrl Subsystem 14 1 Commands ...

Page 112: ......

Page 113: ...9 Common Commands ...

Page 114: ...mon commands can be received and processed by the HP 16500C 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 Example If the program message in this example is received by the system it ...

Page 115: ...er has an associated status enable mask register By setting the bits in the status enable register you can select the status information you wish to use Any status bits that have not been masked enabled in the enable register will not be used to report status summary information to bits in other status registers See Also Chapter 7 Status Reporting for a complete discussion of how to read the statu...

Page 116: ...Figure 9 1 Common Commands Syntax Diagram Common Commands 9 4 ...

Page 117: ...all event status registers queues and data structures including the device defined error queue and status byte If the CLS command immediately follows a program message terminator the output queue and the MAV Message Available bit will be cleared Example OUTPUT XXX CLS See Also Refer to chapter 7 Status Reporting for a complete discussion of status Common Commands CLS Clear Status 9 5 ...

Page 118: ... Status Register mask An integer from 0 to 255 Example 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 OUTPUT XXX ESE 32 Query ESE The ESE query returns the current contents of the enable register Returned Format mask NL Ex...

Page 119: ...ery returns the contents of the Standard Event Status Register Reading the register clears the Standard Event Status Register Returned Format status NL status An integer from 0 to 255 Example If a command error has occurred and bit 5 of the ESE register is set the string variable Esr_event will have bit 5 the CME bit set 10 OUTPUT XXX ESE 32 Enables bit 5 of the status register 20 OUTPUT XXX ESR Q...

Page 120: ...Bit Weight Bit Name Condition 7 128 PON 0 register read not in power up mode 1 power up 6 64 URQ 0 user request not used always zero 5 32 CME 0 no command errors 1 a command error has been detected 4 16 EXE 0 no execution errors 1 an execution error has been detected 3 8 DDE 0 no device dependent errors 1 a device dependent error has been detected 2 4 QYE 0 no query errors 1 a query error has been...

Page 121: ...senting the current ROM revision Example OUTPUT XXX IDN IST Individual Status Query IST The IST query allows the instrument to identify itself during parallel poll by allowing the controller to read the current state of the IEEE 488 1 defined IST local message in the instrument The response to this query is dependent upon the current status of the instrument Figure 9 2 shows the IST data structure...

Page 122: ...Figure 9 2 IST Data Structure Common Commands IST Individual Status 9 10 ...

Page 123: ...ands 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 16500C are STARt and STOP Example OUTPUT XXX OPC Query OPC The OPC query places an ASCII 1 in the output queue when all pending device operations have been completed Returned Format 1 NL Example...

Page 124: ...tware for the modules in slot A through E for an HP 16500C mainframe When an HP 16501A Expansion frame is connected there will be ten parameters after the INTERMODULE for modules in slots A through J A zero in any of the last eight parameters indicates that the corresponding software is not currently installed Returned Format SYSTEM option 0 option 0 INTERMODULE 0 module 0 module 0 module 0 module...

Page 125: ...from 0 to 65535 Example This example allows the HP 16500C 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 OUTPUT XXX PRE 16 Query PRE The PRE query returns the current value of the register Returned format mask NL mask An integer from 0 through 65535 representing the sum of all bit...

Page 126: ...ented on the HP 16500C The HP 16500C 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 Because the HP 16500C allows you to store predefined configuration files for individual modules or for the entire system resetting the system can be accomplished by simply loading the appropriate configuration file See...

Page 127: ...in the Service Request Enable Register and what they mask mask An integer from 0 to 255 Example This example enables a service request to be generated when a message is available in the output queue When a message is available the MAV Message Available bit will be high OUTPUT XXX SRE 16 Query SRE The SRE query returns the current value Returned Format mask NL mask An integer from 0 to 255 represen...

Page 128: ...y returns the current value of the instrument s status byte The MSS Master Summary Status bit not the RQS Request Service bit is reported on bit 6 The MSS indicates whether or not the device has at least one reason for requesting service Refer to table 9 6 for the meaning of the bits in the status byte Returned Format value NL value An integer from 0 through 255 Example OUTPUT XXX STB See Also Ref...

Page 129: ...ready 3 8 LCL 0 a remote to local transition has not occurred 1 a remote to local transition has occurred 2 4 not used 1 2 not used 0 1 MSB 0 a module or the system has activity to report 1 no activity to report 0 False Low 1 True High TRG Trigger Command TRG The TRG command has the same effect as a Group Execute Trigger GET That effect is as if the START command had been sent for intermodule grou...

Page 130: ...ns that the test passed Refer to table 9 7 for the meaning of the bits returned by a TST query Returned Format result NL result An integer 0 through 511 Example 10 OUTPUT XXX TST 20 ENTER XXX Tst_value Table 9 7 Bits Returned by TST Query Power Up Test Results Bit Position Bit Weight Test 8 256 Disk Test 7 128 not used 6 64 not used 5 32 Front panel Test 4 16 HIL Test 3 8 Display Test 2 4 Interrup...

Page 131: ...ng any further commands or queries 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 16500C are STARt and STOP Example OUTPUT XXX WAI Common Commands WAI Wait 9 19 ...

Page 132: ...9 20 ...

Page 133: ...10 Mainframe Commands ...

Page 134: ...P 16500C alone and an HP 16500C with the HP 16501A connected is how you specify the SELECT command The HP 16500C alone has only five slots therefore if you specify 6 through 10 for the SELECT command in your program the command parser will take no action This chapter contains the mainframe commands with a syntax example for each command Each syntax example contains the parameters for the HP 16500C...

Page 135: ...Figure 10 1 Mainframe Commands Syntax Diagram Mainframe Commands 10 3 ...

Page 136: ...Figure 10 1 continued Mainframe Commands Syntax Diagram continued Mainframe Commands 10 4 ...

Page 137: ... alone or from 0 to 10 with an HP 16501A connected day An integer from 1 through 31 month An integer from 1 through 12 year An integer from 1990 through 2089 hour An integer from 0 through 23 minute An integer from 0 through 59 second An integer from 0 through 59 color An integer from 1 to 7 hue An integer from 0 to 100 sat An integer from 0 to 100 lum An integer from 0 to 100 display name A strin...

Page 138: ...rument on and off When BEEPer is sent with no argument the beeper will be sounded without affecting the current mode Example OUTPUT XXX BEEPER OUTPUT XXX BEEP ON Query BEEPer The BEEPer query returns the mode currently selected Returned Format BEEPer 1 0 NL Example OUTPUT XXX BEEPER Mainframe Commands BEEPer 10 6 ...

Page 139: ... AH1 T5 L4 SR1 RL1 PP1 DC1 DT1 C0 E2 NL Example OUTPUT XXX CAPABILITY Table 10 2 HP 16500C Capability Sets Mnemonic Capability Name Implementation SH Source Handshake SH1 AH Acceptor Handshake AH1 T Talker or TE Extended Talker T5 L Listener or LE Extended Listener L4 SR Service Request SR1 RL Remote Local RL1 PP Parallel Poll PP1 DC Device Clear DC1 DT Device Trigger DT1 C Any Controller C0 E Ele...

Page 140: ... which the master card for this card is located When an HP 16501A is connected the first ten numbers returned are the card identification numbers 1 means no card is in the slot The remaining ten numbers returned indicate the module assignment for each card The possible values for the module assignment are 0 through 10 where 0 indicates an empty slot or the module software is not recognized or not ...

Page 141: ...ster Card 22 HP 16521A Pattern Generator Expansion Card 24 HP 16522A 200MHz Pattern Generator Expansion Card 25 HP 16522A 200MHz Pattern Generator Master Card 30 HP 16511B Logic Analyzer Card 31 HP 16510A or B Logic Analyzer Card 32 HP 16550A 100 500 MHz Logic Analyzer Master Card 33 HP 16550A 100 500 MHz Logic Analyzer Expansion Card 34 HP 16554 16555 or 16556 Logic Analyzer Master Card 35 HP 165...

Page 142: ...contains the combined status of all of the MESE Module Event Status Enable registers of the HP 16500C Table 10 4 lists the bit values for the CESE register value An integer from 0 to 65535 Example OUTPUT XXX CESE 32 Query CESE The CESE query returns the current setting Returned Format CESE value NL Example OUTPUT XXX CESE Mainframe Commands CESE Combined Event Status Enable 10 10 ...

Page 143: ...in slot B 1 2 Module in slot A 0 1 Intermodule CESR Combined Event Status Register Query CESR 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 16500C System Table 10 5 lists the bit values for the CESR register Returned Format CESR value NL value An integer from 0 to 6553...

Page 144: ... 7 128 Module G 0 No new status 1 Status to report 6 64 Module F 0 No new status 1 Status to report 5 32 Module E 0 No new status 1 Status to report 4 16 Module D 0 No new status 1 Status to report 3 8 Module C 0 No new status 1 Status to report 2 4 Module B 0 No new status 1 Status to report 1 2 Module A 0 No new status 1 Status to report 0 1 Intermodule 0 No new status 1 Status to report Mainfra...

Page 145: ... EOI ON Query EOI The EOI query returns the current status of EOI Returned Format EOI 1 0 NL Example OUTPUT XXX EOI LER LCL Event Register Query LER The LER query allows the LCL Event Register to be read After the LCL Event Register is read it is cleared A one indicates a remote to local transition has taken place A zero indicates a remote to local transition has not taken place Returned Format LE...

Page 146: ...ation 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 Returned Format LOCKout 0 1 NL Example OUTPUT XXX LOCKOUT Mainframe Commands LOCKout 10 14 ...

Page 147: ...r HP 16500C only or an integer from 2 through 10 with an HP 16501A connected menu Selects menu integer Example OUTPUT XXX MENU 0 1 See Also Programmer s Guide for specific module for the module s menu values Table 10 6 module values Parameter Menu 0 System Intermodule 1 Module in slot A 2 Module in slot B 3 Module in slot C 4 Module in slot D 5 Module in slot E 1 Software option 1 2 Software optio...

Page 148: ... the Module Event Status Enable register This register is the enable register for the MESR register The N index specifies the module and the parameter specifies the enable value For the HP 16500C 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 Table 10 8 lists the Mo...

Page 149: ...Returned Format MESE N enable_value NL Example OUTPUT XXX MESE1 Table 10 8 HP 16500C Mainframe Intermodule Module Event Status Enable Register Bit Position Bit Weight Enables 7 128 not used 6 84 not used 5 32 not used 4 16 not used 3 8 not used 2 4 not used 1 2 RNT Intermodule Run Until Satisfied 0 1 MC Intermodule Measurement Complete Mainframe Commands MESE N Module Event Status Enable 10 17 ...

Page 150: ...ee Also MESR in the Programmer s Guide for a specific module for the interpretation of that module s Event Status Register Returned Format MESR N enable_value NL N An integer 0 through 1 enable_value An integer from 0 through 255 Example OUTPUT XXX MESR1 Table 10 9 HP 16500C Mainframe Module Event Status Register N 0 Bit Bit Weight Bit Name Condition 7 128 not used 6 64 not used 5 32 not used 4 16...

Page 151: ...n 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 Example OUTPUT XXX RMODE SINGLE Query RMODe The query returns the current setting Returned Format RMODe SINGle REPetitive NL Example OUTPUT XXX RMODE Mainframe Commands RMODe 10 19 ...

Page 152: ...o 12 year integer from 1990 to 2089 hour integer from 0 to 23 minute integer from 0 to 59 second integer from 0 to 59 Example This example sets the real time clock for 1 January 1992 20 00 00 8 PM OUTPUT XXX RTC 1 1 1992 20 0 0 Query RTC The RTC query returns the real time clock setting Returned Format RTC day month year hour minute second Example OUTPUT XXX RTC Mainframe Commands RTC Real time Cl...

Page 153: ...ctively The query returns the current module selection When a module is selected the parser recognizes the module s commands and the System Intermodule commands When SELECT 0 is used only the System Intermodule commands are recognized by the parser Figure 10 2 shows the command tree for the SELect command module Selects module or system An integer from 2 through 5 for HP 16500C only or an integer ...

Page 154: ...Figure 10 2 Select Command Tree Only available when an HP 16501A is connected Mainframe Commands SELect 10 22 ...

Page 155: ...e sent with the command to change a color Color Number first parameter Hue second parameter Saturation third parameter Luminosity last parameter color An integer from 1 to 7 hue An integer from 0 to 100 sat An integer from 0 to 100 lum An integer from 0 to 100 Color Number 0 cannot be changed Example OUTPUT XXX SETCOLOR 3 60 100 60 OUTPUT XXX SETC DEFAULT Mainframe Commands SETColor 10 23 ...

Page 156: ...elected module or Intermodule running in the specified run mode see RMODe If the specified module is in the Intermodule configuration then the Intermodule run will be started The STARt 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 Example OUTPUT X...

Page 157: ...ule 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 Example OUTPUT XXX STOP Mainframe Commands STOP 10 25 ...

Page 158: ...in the HP 16500C display A string containing an Internet IP Address optionally followed by a display and screen specifier For example 12 3 47 11 or 12 3 47 11 0 0 Example To open a window specifying and storing the display name OUTPUT XXX XWINDOW ON 12 3 47 11 To open a window using the stored display name OUTPUT XXX XWIN ON To close the X Window OUTPUT XXX XWINDOW OFF If you have trouble displayi...

Page 159: ...11 SYSTem Subsystem ...

Page 160: ...ystem including formatting query responses and enabling reading and writing to the advisory line on the display of the HP 16500C mainframe Refer to figure 11 1 and table 11 1 for the SYSTem Subsystem commands syntax diagram The SYSTem Subsystem commands are DATA DSP ERRor HEADer LONGform PRINt SETup 11 2 ...

Page 161: ...Figure 11 1 System Subsystem Commands Syntax Diagram SYSTem Subsystem 11 3 ...

Page 162: ...me A string of up to 10 alphanumeric characters for LIF in the following form NNNNNNNNNN or 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 directory or NAME_DIR FILENAME when the file does not reside in the present working directory SYSTem Subsystem 11 4 ...

Page 163: ... and query are described in detail in the respective module Programmer s Guides Because the capabilities of the DATA command and query vary for individual modules a complete chapter is dedicated to the DATA command and query in each of the module Programmer s Guides The dedicated chapter is called DATA and SETup Commands Example OUTPUT XXX SYSTEM DATA block_data block_data block_length_specifier s...

Page 164: ...ta Since the mainframe does not acquire data refer to the appropriate module Programmer s Guide for more details Returned Format SYSTem DATA block_data NL Example See the Programmer s Guide for the selected module for an example DSP Display Command SYSTem DSP string The DSP command writes the specified quoted string to a device dependent portion of the instrument display string A string of up to 6...

Page 165: ...urned in the following form error_number error message string A complete list of error messages for the HP 16500C logic analysis system is shown in chapter 8 Error Messages If no errors are present in the error queue a zero No Error is returned Returned Formats Numeric SYSTem ERRor error_number NL String SYSTem ERRor error_number error_string NL error_number An integer error_string A string of alp...

Page 166: ... 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 Returned Format SYSTem HEADer 1 0 NL Example OUTPUT XXX SYSTEM HEADER Headers should be turned off when returning values to numeric variables SYSTem Subsystem HEADer 11 8 ...

Page 167: ...f the LONGform command is set to ON the whole word will be output This command has no affect on the input data messages to the instrument Headers and arguments may be input in either the long form or short form regardless of how the LONGform command is set Example OUTPUT XXX SYSTEM LONGFORM ON Query SYSTem LONGform The query returns the status of the LONGform command Returned Format SYSTem LONGfor...

Page 168: ...ified in the command the correct extension will be appended to the file name automatically The file name extension is TIF for both BTIF and CTIF options PRINT PARTial is valid in certain listing menus It allows you to specify a starting and ending state number so you can print just a portion of the listing to the printer or to a disk file pathname A string of up to 10 alphanumeric characters for L...

Page 169: ... The PRINt query sends the screen or listing buffer data over the current CONTROLLER communication interface to the controller The print query should NOT be sent in conjunction with any other command or query on the same command line The print query never returns a header Also since response data from a print query may be sent directly to a printer without modification the data is not returned in ...

Page 170: ...ands block_data block_length_specifier section block_length_ specifier 8 length length The total length of all sections in byte format must be represented with 8 digits section section_header section_data section_ header 16 bytes described in the Section Header Description section in the DATA and SETup Commands chapter of the module Programmer s Guides section_data Format depends on the type of da...

Page 171: ...p query returns a block of data that contains the current configuration to the controller Returned Format SYSTem SETup block_data NL Example See the Programmer s Guide for the selected module for an example SYSTem Subsystem SETup 11 13 ...

Page 172: ...11 14 ...

Page 173: ...12 MMEMory Subsystem ...

Page 174: ...e 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 This will protect the contents of the disk from accidental damage due to in...

Page 175: ...Figure 12 1 MMEMory Subsystem Commands Syntax Diagram MMEMory Subsystem 12 3 ...

Page 176: ...Figure 12 1 Continued MMEMory Subsystem Commands Syntax Diagram Continued MMEMory Subsystem 12 4 ...

Page 177: ...Figure 12 1 Continued MMEMory Subsystem Commands Syntax Diagram Continued MMEMory Subsystem 12 5 ...

Page 178: ...character directory_name A string of up to 64 characters for DOS disks ending in a directory name Separators can be the slash or the backslash character The string of two periods represents the parent of the present working directory description A string of up to 32 alphanumeric characters type An integer refer to table 12 2 block_data Data in IEEE 488 2 format module An integer 2 through 5 for th...

Page 179: ... of up to 10 alphanumeric characters for LIF in the following form NNNNNNNNNN or A string of up to 12 alphanumeric characters for DOS in the following form NNNNNNNN NNN msus Mass Storage Unit specifier INTernal0 for the hard disk drive and INTernal1 for the flexible disk drive Example Disabling autoload OUTPUT XXX MMEMORY AUTOLOAD OFF Setting FILE2 on the hard drive as the autoload file OUTPUT XXX...

Page 180: ...disk as a 70 character string for each file formatted as follows NNNNNNNNNNNN TTTTTTT FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DDMMMYY HH MM SS where D M Y and HH MM SS are respectively the date month year and time in 24 hour format The optional parameter FULL returns an 83 character string for each file in the directory The string is formatted as follows NNNNNNNNNNNN TTTTTTT FFFFFFFFFFFFFFFFFFFFFFFFFFFFF...

Page 181: ...g double periods represents the parent of the directory directory_ name String of up to 64 characters for DOS disks ending in the new directory name msus Mass Storage Unit specifier INTernal0 for the hard disk drive and INTernal1 for the flexible disk drive Example OUTPUT XXX MMEMory CD CHILD_DIR OUTPUT XXX MMEMory CD OUTPUT XXX MMEMory CD SYSTEM SOURCE_DIR DIR INTernal0 The slash character in DOS...

Page 182: ...orm NNNNNNNNNN or A string of up to 64 alphanumeric characters for DOS in one of the following forms NNNNNNNN NNN when the file resides in the current directory or NAME_DIR FILENAME when it does not reside in the current directory new_name A string of up to 10 alphanumeric characters for LIF in the following form NNNNNNNNNN or A string of up to 64 alphanumeric characters for DOS in one of the foll...

Page 183: ...parameter contains the data the name parameter is the name of the file being created name A string of up to 10 alphanumeric characters for LIF in the following form NNNNNNNNNN or A string of up to 64 alphanumeric characters for DOS in one of the following forms NNNNNNNN NNN when the file resides in the current directory or NAME_DIR FILENAME when it does not reside in the current directory msus Mas...

Page 184: ...n 16096 HP 16511B Configuration 16097 HP 16515A Master and 16516A Expander Configuration 16126 HP 16517A Master and 16518A Expander Configuration 16123 HP 16520A Master and 16521A Expander Configuration 16106 HP 16522A Configuration 16102 HP 16530A Timebase and 16531A Acquisition Configuration 16116 HP 16532A Configuration 16114 HP 16533A and 16534A Configuration 16113 HP 16535A Configuration 1611...

Page 185: ...fied drive This number is unique for disks created with DOS version 4 0 or higher For other disks the number returned is usually 0 Returned Format VOLUME SERIAL serial_num The IDENtify query always returns the initial string VOLUME SERIAL and has no response header msus Mass Storage Unit specifier INTernal0 for the hard disk drive and INTernal1 for the flexible disk drive serial_num An eight digit...

Page 186: ...ormat LIF format is not allowed on the hard drive msus Mass Storage Unit specifier INTernal0 for the hard disk drive and INTernal1 for the flexible disk drive Example OUTPUT XXX MMEMORY INITIALIZE DOS OUTPUT XXX MMEMORY INITIALIZE LIF INTERNAL1 OUTPUT XXX MMEM INIT DOS INT0 Once executed the initialize command formats the specified disk permanently erasing all existing information from the disk Af...

Page 187: ...es and any software option name A string of up to 10 alphanumeric characters for LIF in the following form NNNNNNNNNN or A string of up to 64 alphanumeric characters for DOS in one of the following forms NNNNNNNN NNN when the file resides in the current directory or NAME_DIR FILENAME when it does not reside in the current directory msus Mass Storage Unit specifier INTernal0 for the hard disk drive...

Page 188: ...zer in the currently selected module will be loaded with the inverse assembler file IA_name A string of up to 10 alphanumeric characters for LIF in the following form NNNNNNNNNN or A string of up to 64 alphanumeric characters for DOS in one of the following forms NNNNNNNN NNN when the file resides in the current directory or NAME_DIR FILENAME when it does not reside in the current directory msus M...

Page 189: ...and are used as directory separators The string containing two periods represents the parent of the present working directory directory _name String of up to 64 characters for DOS disks ending in the new directory name msus Mass Storage Unit specifier INTernal0 for the hard disk drive and INTernal1 for the flexible disk drive Example OUTPUT XXX MMEMORY MKDIR NEW DIR OUTPUT XXX MMEM MKD SYSTEM NEW ...

Page 190: ...t drive until another MSI command is sent to the system msus Mass Storage Unit specifier INTernal0 for the hard disk drive and INTernal1 for the flexible disk drive Example OUTPUT XXX MMEMORY MSI OUTPUT XXX MMEM MSI INTERNAL0 Query MMEMory MSI The MSI query returns the current MSI setting either INTernal0 or INTernal1 Returned Format MMEMory MSI msus NL Example OUTPUT XXX MMEMORY MSI MMEMory Subsy...

Page 191: ...n the drive If a DOS disk is in the drive when the PACK command is sent no action is taken msus Mass Storage Unit specifier INTernal0 for the hard disk drive and INTernal1 for the flexible disk drive Example OUTPUT XXX MMEMORY PACK OUTPUT XXX MMEM PACK INTERNAL0 MMEMory Subsystem PACK 12 19 ...

Page 192: ... forms NNNNNNNN NNN when the file resides in the current directory or NAME_DIR FILENAME when it does not reside in the current directory msus Mass Storage Unit specifier INTernal0 for the hard disk drive and INTernal1 for the flexible disk drive Example This instruction purges the file named FILE1 from the currently specified drive OUTPUT XXX MMEMORY PURGE FILE1 This purges all files in the direct...

Page 193: ... returned for the current drive Returned Format MMEMory PWD directory msus NL directory String of up to 64 characters with the backslash as separator for DOS and LIF disks msus Mass Storage Unit specifier INTernal0 for the hard disk drive and INTernal1 for the flexible disk drive Example OUTPUT XXX MMEMORY PWD OUTPUT XXX MMEMORY PWD INTERNAL1 MMEMory Subsystem PWD Present Working Directory 12 21 ...

Page 194: ...or DOS in one of the following forms NNNNNNNN NNN when the file resides in the current directory or NAME_DIR FILENAME when it does not reside in the current directory msus Mass Storage Unit specifier INTernal0 for the hard disk drive and INTernal1 for the flexible disk drive new name A string of up to 10 alphanumeric characters for LIF in the following form NNNNNNNNNN or A string of up to 64 alpha...

Page 195: ... 64 alphanumeric characters for DOS in one of the following forms NNNNNNNN NNN when the file resides in the current directory or NAME_DIR FILENAME when it does not reside in the current directory msus Mass Storage Unit specifier INTernal0 for the hard disk drive and INTernal1 for the flexible disk drive description A string of up to 32 alphanumeric characters module An integer 2 through 5 for the ...

Page 196: ... forms NNNNNNNN NNN when the file resides in the current directory or NAME_DIR FILENAME when it does not reside in the current directory msus Mass Storage Unit specifier INTernal0 for the hard disk drive and INTernal1 for the flexible disk drive Returned Format MMEMory UPLoad block_data NL Example 10 DIM Block 32000 allocate enough memory for block data 20 DIM Specifier 2 30 OUTPUT XXX EOI ON 40 O...

Page 197: ...if there is no disk if the disk is not formatted or if a disk has a format other than DOS or LIF msus Mass Storage Unit specifier INTernal0 for the hard disk drive and INTernal1 for the flexible disk drive The VOLume query does not return a response header Returned Format DOS LIF NL Example OUTPUT XXX MMEMORY VOLUME MMEMory Subsystem VOLume 12 25 ...

Page 198: ...12 26 ...

Page 199: ...13 INTermodule Subsystem ...

Page 200: ... the rear panel input BNC ARMIN or to the rear panel output BNC ARMOUT Refer to figure 13 1 and table 13 1 for the INTermodule Subsystem commands syntax diagram The INTermodule commands are DELete HTIMe INPort INSert OUTDrive OUTPolar OUTType PORTEDGE PORTLEV SKEW TREE TTIMe 13 2 ...

Page 201: ...Figure 13 1 Intermodule Subsystem Commands Syntax Diagram INTermodule Subsystem 13 3 ...

Page 202: ...Figure 13 1 continued Intermodule Subsystem Commands Syntax Diagram continued INTermodule Subsystem 13 4 ...

Page 203: ...5 for HP 16500C alone 1 through 10 with the HP 16501A connected setting A numeric 1 0 to 1 0 in seconds INTermodule Selector INTermodule The INTermodule selector specifies INTermodule as the subsystem the commands or queries following will refer to Because the INTermodule command is a root level command it will normally appear as the first element of a compound header Example OUTPUT XXX INTERMODUL...

Page 204: ...ermodule tree from a Group Run The module parameter sent with the delete command refers to the slot location of the module module An integer 1 through 5 for HP 16500C alone 1 through 10 with the HP 16501A connected Example OUTPUT XXX INTERMODULE DELETE ALL OUTPUT XXX INTERMODULE DELETE 1 INTermodule Subsystem DELete 13 6 ...

Page 205: ...he value returned is the average propagation delay of the trigger lines through the intermodule bus circuitry These values are for reference only because the values returned by TTIMe include the internal hardware skew represented by HTIMe Returned Format INTermodule HTIMe value_A value_B value_C value_D value_E value_F value_G value_H value_I value_J NL value_X Skew for module in slot X real numbe...

Page 206: ... Run In version 1 02 and later of the operating system software you can set Group Run with OR TRIGGER by setting INPort to 2 Example OUTPUT XXX INTERMODULE INPORT ON Query INTermodule INPort The INPort query returns the current Group Run setting A value of 2 means that the Group Run is set to Group Run with OR TRIGGER Returned Format INTermodule INPort 2 1 0 NL Example OUTPUT XXX INTERMODULE INPOR...

Page 207: ...h 5 corresponds to the slot location of the modules A through E for the HP 16500C alone and 1 through 10 corresponds to slot location of modules A through J when an HP 16501A is connected module An integer 1 through 5 for HP 16500C alone 1 through 10 with the HP 16501A connected Example OUTPUT XXX INTERMODULE INSERT 1 GROUP OUTPUT XXX INTERMODULE INSERT 2 GROUP OUTPUT XXX INTERMODULE INSERT 3 2 IN...

Page 208: ...r signals Example OUTPUT XXX INTERMODULE OUTDRIVE NORMAL Query INTermodule OUTDrive The OUTDrive query returns the current Port Out output setting Returned Format INTermodule OUTDrive 1 0 NL Example OUTPUT XXX INTERMODULE OUTDRIVE OUTPolar Command INTermodule OUTPolar 0 HIGHtrue 1 LOWtrue The OUTPolar command sets the Port Out BNC polarity This command has the same effect as setting the Polarity f...

Page 209: ... Port Out BNC signal type This command has the same effect as setting the Type field in the PORT IN OUT Setup menu under the Intermodule menu See Also The HP 16500C User s Reference for more information about Port Out signal types Example OUTPUT XXX INTERMODULE OUTTYPE LATCHED Query INTermodule OUTType The OUTType query returns the current Port Out signal type Returned Format INTermodule OUTType 0...

Page 210: ... from an external source The threshold level of the input signal is set by the PORTLEV command edge_spec A 1 or ON for rising edge or a 0 or OFF for falling edge Example OUTPUT XXX INTERMODULE PORTEDGE 1 Query INTermodule PORTEDGE The PORTEDGE query returns the current edge setting Returned Format INTermodule PORTEDGE 1 0 NL Example OUTPUT XXX INTERMODULE PORTEDGE INTermodule Subsystem PORTEDGE 13...

Page 211: ... the value is set to the extreme in the direction exceeded and no error message is generated user_lev A real number from 4 0 to 5 0 volts in 0 01 volt increments Example This statement sets the BNC threshold to ECL OUTPUT XXX INTERMODULE PORTLEV ECL This statement sets the BNC threshold to 2 3 volts OUTPUT XXX INTERMODULE PORTLEV 2 3 Query INTermodule PORTLEV The PORTlev query returns the current ...

Page 212: ...A through J when an HP 16501A is connected The setting parameter is the skew setting 1 0 to 1 0 in seconds N An integer 1 through 5 for HP 16500C alone 1 through 10 with the HP 16501A connected setting A real number from 1 0 to 1 0 seconds Example OUTPUT XXX INTERMODULE SKEW2 3 0E 9 Query INTermodule SKEW N The query returns the user defined skew setting Returned Format INTermodule SKEW N setting ...

Page 213: ...ponds to the intermodule arm value for PORT OUT A 1 means the module is not in the intermodule tree a 0 value means the module is armed from the Intermodule run button 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 correspond to slots A through J module port_out An integer 1 through 5 for an HP 16500C alone 1 through...

Page 214: ... from the Intermodule run button 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 correspond to the slots A through J Returned Format INTermodule TREE module module module module module module module module module module port_out NL Example OUTPUT XXX INTERMODULE TREE INTermodule Subsystem TREE 13 16 ...

Page 215: ...lue 9 9E37 is returned when The module has not yet been run No module is installed in the corresponding slot The module in the corresponding slot is not time correlated or A time correlatable module did not trigger The trigger times returned by this command have already been offset by the INTermodule SKEW values and internal hardware skews INTermodule HTIMe Returned Format INTermodule TTIMe module...

Page 216: ...13 18 ...

Page 217: ...14 TGTctrl Subsystem ...

Page 218: ...e signals put out by the Target Control Port Refer to figure 14 1 and table 14 1 for the TGTctrl Subsystem commands syntax diagram The TGTctrl commands are ALL AVAILable BITS CURSTate DRIVe LASTstate NAME PULse SIGNal SIGSTatus STATEs STEP TOGgle TYPE 14 2 ...

Page 219: ...Figure 14 1 Targetcontrol Subsystem Commands Syntax Diagram TGTctrl Subsystem 14 3 ...

Page 220: ...Figure 14 1 continued Targetcontrol Subsystem Commands Syntax Diagram TGTctrl Subsystem 14 4 ...

Page 221: ...14 characters TGTctrl Selector TGTctrl This command does not obey the truncation rule The TGTctrl selector specifies target control as the subsystem the commands or queries following will refer to Because the TGTctrl command is a root level command it will normally appear as the first element of a compound header Example OUTPUT XXX TGTCTRL ALL4 TGTctrl Subsystem TGTctrl 14 5 ...

Page 222: ...gle 1 indicates pulse and 2 indicates a sequence bits An integer 0 through 255 whose binary form indicates the signal s bit mask A value of 1 means the bit is turned on drive 0 1 indicating output type A value of 0 indicates normal TTL and 1 indicates open collector last An integer 1 through 7 indicating last state current An integer 0 through 7 indicating current state state0 state7 An integer 0 ...

Page 223: ...it are available A 0 indicates that the bit is NOT available Returned Format TGTctrl AVAILable bits NL bits An integer 0 through 255 Example For example if your HP BASIC program contains a line OUTPUT XXX TGTCTRL AVAILABLE and the value returned is 248 you have 1111 1000 in binary The binary value lets you know that bits 0 through 2 are in use but bits 3 through 7 are available TGTctrl Subsystem A...

Page 224: ...ments N An integer 0 through 7 specifying signal mask An integer 0 through 255 Example To assign the last four bits to signal 1 OUTPUT XXX TGT BITS1 H0F Query TGTctrl BITS N The query returns an integer The binary form of the integer specifys which bits are assigned to the signal Returned Format TGTctrl BITS N mask NL Example OUTPUT XXX TGT BITS1 TGTctrl Subsystem BITS 14 8 ...

Page 225: ...eger 0 through 7 specifying signal state An integer 1 through 7 indicating current state Example OUTPUT XXX TGTCTRL CURSTATE0 DRIVe Command TGTctrl DRIVe N NORMal 0 OPENcllctr 1 The DRIVe command sets a signal s output type The output type controls the way in which the line is driven N An integer 0 through 7 specifying signal Example OUTPUT XXX TGTCTRL DRIVE1 NORMAL Query TGTctrl DRIVe N Returned ...

Page 226: ...uence N An integer 0 through 7 specifying signal state An integer 1 through 7 Example OUTPUT XXX TGTCTRL LAST2 4 Query TGTctrl LASTstate N The query returns the current last state For toggle and pulse signals the last state is always 1 Returned Format TGTctrl LASTstate N state NL Example OUTPUT XXX TGTCTRL LAST1 TGTctrl Subsystem LASTstate 14 10 ...

Page 227: ...g signal name A string of up to 14 characters Example OUTPUT XXX TGTCTRL NAME0 Reset Query TGTctrl NAMe N The NAMe query returns the name of the specified signal The default names are SIGNAL 0 through SIGNAL 7 Returned Format TGTctrl NAMe N name NL Example OUTPUT XXX TGTCTRL NAME0 TGTctrl Subsystem NAMe 14 11 ...

Page 228: ...XX TGTCTRL PULSE7 SIGNal Command TGTctrl SIGNal N OFF 0 ON 1 The SIGNal command activates or deactivates the specified signal like manually selecting Turn Signal Off or Turn Signal On in the Target Control Port Settings menu N An integer 0 through 7 specifying signal Example OUTPUT XXX TGT SIGN7 ON Query TGTctrl SIGNal N The SIGNal query returns the current status of the specified signal Returned ...

Page 229: ...s are 1 N An integer 0 through 7 specifying signal Returned Format TGTctrl SIGSTatus N cur_st activity NL cur_st An integer from 0 to 255 The binary format represents the current state of the assigned lines The return value is packed that is unassigned lines do not appear in the binary form activity An integer from 0 to 255 representing recent activity A 1 indicates that the bit shows activity A 0...

Page 230: ...ying signal value_N An integer 0 through 255 specifying that state s value in a packed bitmask Example If bits 0 2 and 7 are assigned to signal 0 the following command would set each bit high in turn OUTPUT XXX TGT STATE0 1 2 4 Query TGTctrl STATEs N The STATEs query returns values for all 8 states For toggle and pulse signals only the first two values are significant Returned Format TGTctrl STATE...

Page 231: ...le N An integer 0 through 7 specifying signal Example OUTPUT XXX TGTCTRL STEP3 TOGgle Command TGTctrl TOGgle N This command does not obey the truncation rule The TOGgle command toggles the specified signal to the next state If the signal type is pulse it briefly pulses the signal This command has the same effect as PULse and STEP N An integer 0 through 7 specifying signal Example OUTPUT XXX TGTCTR...

Page 232: ...on the signal N An integer 0 through 7 specifying signal Example OUTPUT XXX TGT TYP2 SEQ Query TGTctrl TYPe N The TYPe query returns the current type of the signal The default type is toggle Returned Format TGTctrl TYPe N type NL type 0 1 2 where 0 indicates toggle 1 indicates pulse and 2 indicates sequence TGTctrl Subsystem TYPe 14 16 ...

Page 233: ...Part 3 15 Programming Examples 15 1 Programming Examples ...

Page 234: ......

Page 235: ...15 Programming Examples ...

Page 236: ... 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 Sending queries to the mainframe Getting ASCII data with PRINt All query Reading a disk catalog Printing to the disk using PRINT ALL 15 2 ...

Page 237: ...ired data Because the mainframe by itself does not acquire data the SYSTem DATA command and query is only useful for modules 10 SETUP COMMAND AND QUERY EXAMPLE 20 for the HP 16500C 16501A Logic Analysis System 30 40 CREATE TRANSFER BUFFER 50 Create a buffer large enough for the block data 55 60 ASSIGN Buff TO BUFFER 170000 70 80 INITIALIZE HPIB DEFAULT ADDRESS 90 100 REAL Address 110 Address 707 1...

Page 238: ...s 480 IF Byte 4 THEN ENTER Comm USING DDDD Numbytes 490 IF Byte 5 THEN ENTER Comm USING DDDDD Numbytes 500 IF Byte 6 THEN ENTER Comm USING DDDDDD Numbytes 510 IF Byte 7 THEN ENTER Comm USING DDDDDDD Numbytes 520 IF Byte 8 THEN ENTER Comm USING DDDDDDDD Numbytes 530 PRINT Numbytes 540 550 TRANSER THE SETUP 560 Transfer the setup from the mainframe to the buffer 570 580 TRANSFER Comm TO Buff COUNT N...

Page 239: ...HEN OUTPUT Comm USING AAAAAA VAL Numbytes 920 IF Byte 7 THEN OUTPUT Comm USING AAAAAAA VAL Numbytes 930 IF Byte 8 THEN OUTPUT Comm USING AAAAAAAA VAL Numbytes 940 950 SAVE BUFFER POINTERS 960 Save the transfer buffer pointer so it can be restored after the 970 transfer 980 990 STATUS Buff 5 Streg 1000 1010 TRANSFER SETUP TO THE HP 16500C 1020 Transfer the setup from the buffer to the HP 16500C mai...

Page 240: ... register for a measurement 440 complete condition 450 460 OUTPUT 707 SYSTEM HEADER OFF 470 OUTPUT 707 SYSTEM LONGFORM OFF 480 490 Status 0 500 OUTPUT 707 MESE0 1 510 OUTPUT 707 MESR0 520 ENTER 707 Status 530 533 Start a measurement 536 OUTPUT 707 START 540 Print the MESR register status 550 560 CLEAR SCREEN 570 PRINT Measurement complete status is Status 580 PRINT 0 not complete 1 complete 590 Re...

Page 241: ...he controller and the query response is lost 10 QUERY EXAMPLE 20 for the HP 16500C 16501A Logic analysis system 30 40 OPTIONAL 50 The following two lines turn the headers and longform on so 60 that the query name in its long form is included in the 70 query response 80 90 NOTE 100 If your query response includes real 110 or integer numbers that you may want 120 to do statistics or math on later yo...

Page 242: ... be sent with 330 this program 340 350 OUTPUT 707 MENU 360 370 380 The two lines that follow transfer the query response from the 390 query buffer to the controller and then print the response 400 410 ENTER 707 Query 420 PRINT Query 430 440 450 END Programming Examples Sending Queries to the Logic Analysis System 15 8 ...

Page 243: ... menus 10 ASCII DATA 20 30 40 This program gets the hard disk directory from the HP 16500C mainframe 50 in ASCII form by using the PRINT ALL query 60 70 80 90 DIM Block 32000 100 OUTPUT 707 EOI ON 110 OUTPUT 707 SYSTEM HEAD OFF 120 OUTPUT 707 SELECT 0 Always a 0 for the HP 16500C mainframe 130 140 150 OUTPUT 707 MENU 0 1 Selects the hard disk menu Print All 160 will only work in disk menu and list...

Page 244: ...0 50 DIM Specifier 2 60 OUTPUT 707 EOI ON 70 OUTPUT 707 SYSTEM HEADER OFF 80 OUTPUT 707 MMEMORY MSI INTERNAL0 select the hard drive 90 OUTPUT 707 MMEMORY CATALOG ALL send CATALOG ALL query 100 110 ENTER 707 USING 2A Specifier read in 8 120 ENTER 707 USING 8D Length read in block length 130 140 Read and print each file in the directory 150 160 FOR I 1 TO Length STEP 70 170 ENTER 707 USING 70A File ...

Page 245: ...the CATALOG query 30 40 DIM File 100 50 DIM Specifier 2 60 OUTPUT 707 EOI ON 70 OUTPUT 707 SYSTEM HEADER OFF 80 OUTPUT 707 MMEMORY MSI INTERNAL0 select the hard drive 90 OUTPUT 707 MMEMORY CATALOG send CATALOG query 100 110 ENTER 707 USING 2A Specifier read in 8 120 ENTER 707 USING 8D Length read in block length 130 140 Read and print each file in the directory 150 160 FOR I 1 TO Length STEP 51 17...

Page 246: ...Selects the module in slot 1 This program 100 assumes a logic analyzer module is installed 110 in slot 1 115 120 OUTPUT 707 MENU 1 7 Selects the Listing 1 menu Print to disk 130 will only work in Listing and Disk menus 140 150 OUTPUT 707 SYSTEM PRINT ALL DISK DISKFILE INTERNAL1 160 170 180 Now display catalog to see that the file has been saved on the disk 190 200 DIM File 100 210 DIM Specifier 2 ...

Page 247: ... 9 13 RST 9 14 SRE 9 15 TRG 9 17 WAI 9 19 AUToload 12 7 BEEPer 10 6 BITS 14 8 CD change directory 12 9 CESE 10 10 Combining 1 10 COPY 12 10 DATA 11 5 DELete 13 6 DOWNload 12 11 DRIVe 14 9 DSP 11 6 EOI 10 13 Errors 8 3 Execution 6 3 HEADer 1 17 11 8 INITialize 12 14 INPort 13 8 INSert 13 9 LASTstate 14 10 LOAD CONFig 12 15 LOAD IASSembler 12 16 LOCKout 3 10 10 14 LONGform 1 17 11 9 MENU 10 15 MESE ...

Page 248: ... 9 1 12 Hexadecimal numbers 1 13 Host language 1 7 HP IB 2 2 to 2 3 7 8 address 2 3 commands 7 13 device address 2 4 interface 2 2 to 2 4 HTIMe 13 7 I IEEE 488 1 2 2 6 2 bus commands 2 6 IEEE 488 2 6 2 IFC 2 6 Infinity 5 4 Initialization 1 4 INITialize 12 14 INPort 13 8 Input buffer 6 3 INSert 13 9 Instructions 1 6 headers 1 7 parameters 1 8 syntax 1 6 terminator 1 8 Instrument address 2 4 Integer...

Page 249: ...ement complete 15 6 getting ASCII data with PRINt ALL 15 9 sending queries to mainframe 15 7 SYSTem SETup 15 3 transferring configuration 15 3 Programming conventions 5 5 message syntax 1 6 message terminator 1 8 Protocol 3 8 6 3 to 6 4 None 3 8 XON XOFF 3 8 exceptions 6 5 PULse 14 12 PURGe 12 20 Q Query 1 7 1 11 1 17 ESE 9 6 ESR 9 7 IDN 9 9 IST 9 9 OPC 9 11 OPT 9 12 PRE 9 13 SRE 9 15 STB 9 16 TST...

Page 250: ... 8 STOP command 10 25 STORe CONFig command 12 23 String data 1 14 String variables 1 19 Subsystem commands 5 6 INTermodule 13 2 MMEMory 12 2 SYSTem 11 2 TGTctrl 14 2 Suffix multiplier 6 9 Suffix units 6 10 Syntax diagrams Common commands 9 4 IEEE 488 2 6 5 INTermodule subsystem 13 3 to 13 4 interpretation 5 4 Mainframe commands 10 3 to 10 4 MMEMory subsystem 12 3 to 12 4 12 6 SYSTem subsystem 11 3...

Page 251: ...void dangerous electric shock do not perform any service unless qualified to do so Do not attempt internal service or adjustment unless another person capable of rendering first aid and resuscitation is present If you energize this instrument by an auto transformer for voltage reduction make sure the common terminal is connected to the earth terminal of the power source Whenever it is likely that ...

Page 252: ...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 For any assistance contact your nearest Hewlett Packard Sales Office Certification Hewlett...

Reviews: