HP 16500C/16501A Logic Analysis System
Page
This Book
Organization
Guide is organized in three parts
Iii
Page
Contents
Contents
Command Set Organization Subsystems Program Examples
Protocols 6-3 Syntax Diagrams 6-5 Syntax Overview
HP-IB Commands Contents-3
Truncation Rule Infinity Representation
Device Dependent Errors
Internal Errors Query Errors
CLS Clear Status ESE Event Status Enable
Menu Contents-4
Mesen Module Event Status Enable 10-16
PURGe 12-20 PWD Present Working Directory Contents-5
RMODe RTC Real-time Clock SELect 10-21 SETColor STARt 10-24
10-25 XWINdow
REName STORe CONFig UPLoad VOLume
INTermodule Subsystem
Contents-7
15-3
Sending Queries to the Logic Analysis System
15-9
Contents-8
General Information
Page
Introduction to Programming
Introduction
RS-232-C, or Ethernet LAN
Returned from a query
HP Basic
Example
Talking to Individual System Modules
Initialization
Example See Also
Talking to Individual System Modules
Command
Initialization Example
Exists into the system
Program the Logic Analysis System
Output Command
Instruction Syntax
Instruction Syntax
Program Message Syntax
Device Address
Instructions
Device Address
Instruction Header
Instruction Terminator
Instruction Terminator
White Space
Instruction Parameters
Simple Command Header
Compound Command Header
Header Types
Header Types
Common Command Header
Combined Commands in the Same Subsystem
Duplicate Keywords
Duplicate Keywords
Query Usage
Query Usage
Program Header Options
Program Header Options
Short form
Parameter Data Types
See Also Example
Parameter Data Types
Numeric data
String data
Keyword data
Selecting Multiple Subsystems
Selecting Multiple Subsystems
Receiving Information from the Logic Analysis System
Response Header Options
Response Header Options
With Header OFF
With Header on and Longform OFF
Response Data Formats
Response Data Formats
String Variables
String Variables
Response
Used for string concatenation
Numeric Variables
Numeric Base
Numeric Base
Definite-Length Block Response Data
Definite-Length Block Response Data
Multiple Queries
Multiple Queries
Definite-length Block Response Data
Installed modules
System Status
System Status
More
Page
Programming Over HP-IB
Introduction
Command and Data Concepts
Interface Capabilities
Talk/Listen Addressing
Interface Capabilities
HP-IB Bus Addressing
HP-IB Bus Addressing
Interface Select Code Selects the Interface
Instrument Address Selects the Instrument
Local, Remote, and Local Lockout Example
Local, Remote, and Local Lockout
Hint See Also
Bus Commands
Bus Commands
Device Clear
Group Execute Trigger GET
Programming Over RS-232-C
Introduction
RS-232-C Cables
Interface Operation
Interface Operation
Minimum Three-Wire Interface with Software Protocol
Minimum Three-Wire Interface with Software Protocol
Extended Interface with Hardware Handshake
Extended Interface with Hardware Handshake
Two bytes
Pin
Cable Examples
Cable Examples
HP 9000 Series
Cable Example
Configuring the Logic Analysis System Interface
Configuring the Logic Analysis System Interface
HP Vectra Personal Computers and Compatibles
Pin F to 25-pin M Cable
Protocol
Data Bits
RS-232-C Bus Addressing
RS-232-C Bus Addressing
Controller and the HP 16500C Logic Analysis System must be
HP Vectra Personal Computers or compatibles
Lockout Command
Lockout Command
Programming Over LAN
Introduction
LAN Addressing
Communicating with the HP 16500C
Communicating with the HP 16500C
Password Protection and File Protection
Password Protection and File Protection
Permission Levels Control and Data
Controlling the HP 16500C
Controlling the HP 16500C
Sockets
Echoing Commands
Echoing Commands
Copying Command Files
Copying Command Files
Writing to \system\program from a Program
Resetting the File Pointer
Queries
Directory
Writing to \system\program from a Program
Sending Commands to the HP 16500C Socket
Sending Commands to the HP 16500C Socket
Parser socket
Socket will eventually close without receiving a response
Start
Lockout Command
Page
Programming and Documentation Conventions
Introduction
Truncation Rule
Truncation Rule
Truncation Examples Long Form Short Form
Sequential and Overlapped Commands
Syntax Diagrams
Infinity Representation
Response Generation
Notation Conventions and Definitions
Notation Conventions and Definitions
Command Tree
Command Tree
Command Types
HP 16500C Command Tree
Tree Traversal Rules
Tree Traversal Rules
To the root of the command tree. The parser can then see
Store command as shown in the second line of this example
Tree Traversal Rules Example
Command Set Organization
Command Set Organization
Subsystems
Subsystems Alphabetic Command Cross-Reference
Command Subsystem
Program Examples
Keywords in short form, numbers using an exponential format
Program Examples
Message Communication and System Functions
Compatible instruments may or may not conform to the Ieee
Protocols
Protocols
Functional Elements
Protocol Overview
Protocol Operation
Syntax Diagrams
Protocol Exceptions
Example syntax diagram
Syntax Overview
Syntax Overview
Program message Parse Tree
Suffix mult
Upper/Lower Case Equivalence
Value Mnemonic
Suffix
Status Reporting
Introduction
Status Byte Structures and Concepts
Event Status Register
Service Request Enable Register
Bit Definitions
PON power on
CME command error
EXE execution error
DDE device specific error
Key Features
LCL remote to local
MSB module summary bit
Operation Complete
Service Request Enabling
Serial Poll
Using Serial Poll HP-IB
Serial Poll
Parallel Poll
Parallel Poll
Parallel Poll Data Structure
Polling HP-IB Devices
Configuring Parallel Poll Responses
Polling HP-IB Devices
Conducting a Parallel Poll
Conducting a Parallel Poll
HP-IB Commands
Parallel Poll Unconfigure Command
Parallel Poll Configure Command
Disabling Parallel Poll Responses
HP-IB Commands
Parallel Poll Enable Command
Parallel Poll Disable Command
Parallel Poll Commands
Error Messages
Introduction
Command Errors
Device Dependent Errors
Device Dependent Errors
Internal Errors
Execution Errors
Execution Errors
Query Errors
Query Errors
Page
Commands
Page
Common Commands
CLS
Order to re-enter the memory subsystem and store the file
Status Registers
Common Commands Syntax Diagram
CLS Clear Status Common Command Parameter Values
CLS Clear Status
CLS
Parameter Values Mask
ESE Event Status Enable
ESE Event Status Enable
ESE mask
ESE?
Bit Position Bit Weight Enables
ESR Event Status Register
ESR?
String variable Esrevent$ will have bit 5 the CME bit set
ESR Event Status Register
Bit Position Bit Weight Bit Name Condition
Standard Event Status Register
IDN Identification Number
IST Individual Status
IST?
IDN Identification Number
IST Individual Status
IST Data Structure
OPC Operation Complete
OPC
OPC?
OPC Operation Complete
OPT Option Identification
OPT Option Identification
PRE Parallel Poll Enable Register Enable
PRE Parallel Poll Enable Register Enable
PRE mask
PRE?
RST Reset
RST Reset HP 16500C Parallel Poll Enable Register
SRE Service Request Enable
SRE Service Request Enable
SRE mask
SRE?
STB Status Byte HP 16500C Service Request Enable Register
STB Status Byte
STB?
Bits in the status byte
TRG
TRG Trigger
TRG Trigger Status Byte Register
Bits Returned by *TST? Query Power-Up Test Results
TST Test
TST?
TST Test
WAI Wait
WAI
WAI Wait
HP 16500C are STARt and Stop
Page
Mainframe Commands
Menu
10-2
Mainframe Commands Syntax Diagram
10-3
10-4
10-5
Mainframe Parameter Values
Parameter Values
CommandBEEPer ON1OFF0
BEEPer
BEEPer?
BEEPer
CAPability
CAPability?
CAPability
HP 16500C Capability Sets
CARDcage?
CARDcage
CARDcage
10-9
CARDcage Card Identification Numbers
Id Number Card
Cese Combined Event Status Enable
CESE? query returns the current setting
Cese value
CESE?
Cesr Combined Event Status Register
Bit Weight Enables
Value An integer from 0 to
Cesr Combined Event Status Register
10-12
CommandEOI ON1OFF0
EOI End Or Identify
LER LCL Event Register
EOI?
CommandLOCKout ON1OFF0
LOCKout
LOCKout?
LOCKout
10-15
CommandMENU module,menu
Parameter Menu
Mesen Module Event Status Enable
CommandMESEN enablevalue
Mesen Module Event Status Enable System Menu Values
MENU?
QueryMESEN?
Mesen Module Event Status Enable Example
10-17
Mesrn Module Event Status Register
MESRN?
Mesrn Module Event Status Register
HP 16500C Mainframe Module Event Status Register N=0
RMODe
RMODe SINGleREPetitive
RMODe?
RMODe
RTC Real-time Clock
RTC Real-time Clock
CommandSELect module
SELect
SELect?
SELect
Select Command Tree
10-22
CommandSETColor color,hue,sat,lumDEFault
SETColor
SETColor
10-23
STARt
STARt
STARt
Stop
10-25
XWINdow OFF0 ON1,display
XWINdow
XWINdow
SYSTem Subsystem
Data DSP
11-2
System Subsystem Commands Syntax Diagram
11-3
SYSTem Parameter Values
11-4
CommandSYSTemDATA blockdata
Data
CommandSYSTemDSP string
DSP Display
QuerySYSTemDATA?
DSP Display
SYSTemERRor? NUMericSTRing
ERRor
ERRor
CommandSYSTemHEADer ON1OFF0
HEADer
SYSTemHEADer?
HEADer
CommandSYSTemLONGform ON1OFF0
LONGform
SYSTemLONGform?
LONGform
SYSTemPRINt SCReen,DISK, pathname ,msus, Btifctifpcxeps
PRINt
PRINt
SYSTemPRINt? SCReenALL
This instruction prints the screen to the printer
This instruction prints part of a listing to disk
11-11
SETup
CommandSYSTemSETup blockdata
SETup
11-12
QuerySYSTemSETup?
11-13
11-14
MMEMory Subsystem
Working directory
12-2
MMEMory Subsystem Commands Syntax Diagram
12-3
12-4
12-5
MMEMory Parameter Values
12-6
MMEMoryAUToload?
AUToload
AUToload
MMEMoryCATalog? ALLFULL,msus
CATalog
CATalog
CommandMMEMoryCD directoryname ,msus
CD Change Directory
CD Change Directory
12-9
CommandMMEMoryCOPY name,msus,newname,msus
Copy
To copy the contents of FILE1 to FILE2
DOWNload
DOWNload Example
Disk
12-12
File Types
File File Type
IDENtify
CommandMMEMoryIDENtify? msus
IDENtify
INITialize
MMEMoryINITialize LIFDOS,msus
INITialize
Drive
LOADCONFig
CommandMMEMoryLOADCONfig name,msus,module
LOADCONFig
12-15
CommandMMEMoryLOADIASSembler IAname,msus,12 ,module
Load IASSembler
Load IASSembler
12-16
CommandMMEMoryMKDir directoryname ,msus
MKDir Make Directory
MKDir Make Directory
12-17
CommandMMEMoryMSI msus
MSI Mass Storage Is
QueryMMEMoryMSI?
MSI Mass Storage Is
CommandMMEMoryPACK msus
Pack
PURGe
CommandMMEMoryPURGe name,msus
PURGe
MMEMoryPWD? msus
PWD Present Working Directory
PWD Present Working Directory
CommandMMEMoryREName name,msus,newname
REName
REName
12-22
STORe CONFig
MMEMorySTOReCONfig name,msus
STORe CONFig
Description,module
UPLoad
MMEMoryUPLoad? name,msus
UPLoad
Instrument in block data form
VOLume
MMEMoryVOLume? msus
VOLume
12-25
12-26
INTermodule Subsystem
Portedge Portlev Skew Tree
13-2
Intermodule Subsystem Commands Syntax Diagram
13-3
13-4
INTermodule
INTermodule
INTermodule INTermodule Parameter Values
13-5
DELete
INTermoduleDELete ALLOUTmodule
DELete
13-6
HTIMe
QueryINTermoduleHTIMe?
HTIMe
ValueX Skew for module in slot X real number
INPort
INTermoduleINPort ON1OFF0
INTermoduleINPort?
INPort
INTermoduleINSert ModuleOUT,GROUPmodule
INSert
INSert
CommandINTermoduleOUTDrive 0NORMal1OPENcllctr
OUTDrive
OUTPolar
INTermoduleOUTDrive?
CommandINTermoduleOUTType 0FEEDthru 1LATChed 2PULse
OUTType
QueryINTermoduleOUTPolar?
INTermoduleOUTType?
Portedge query returns the current edge setting
INTermodulePORTEDGE edgespec
INTermodulePORTEDGE?
13-12
PORTlev query returns the current BNC threshold setting
INTermodulePORTLEV TTLECLuserlev
QueryINTermodulePORTLEV?
This statement sets the BNC threshold to -2.3 volts
CommandINTermoduleSKEWN setting
Query returns the user defined skew setting
INTermoduleSKEWN?
13-14
Tree
13-15
QueryINTermoduleTREE?
13-16
TTIMe
QueryINTermoduleTTIMe?
TTIMe
Module Trigger time for module real number
13-18
TGTctrl Subsystem
Type
14-2
Targetcontrol Subsystem Commands Syntax Diagram
14-3
14-4
TGTctrl
TGTctrl
TGTctrl
14-5
TGTctrlALLN?
TGTctrlAVAILable?
AVAILable
AVAILable
QueryTGTctrlBITSN?
CommandTGTctrlBITSN mask
14-8
CommandTGTctrlDRIVeN NORMal0OPENcllctr1
CURSTate
DRIVe
TGTctrlCURSTateN?
CommandTGTctrlLASTstateN state
LASTstate
QueryTGTctrlLASTstateN?
LASTstate
CommandTGTctrlNAMeN name
NAMe
QueryTGTctrlNAMeN?
NAMe
SIGNal
CommandTGTctrlPULseN
TGTctrlSIGNalN OFF0ON1
TGTctrlSIGNalN?
SIGSTatus
QueryTGTctrlSIGSTatusN?
SIGSTatus
14-13
STATEs
TGTctrlSTATEsN value0,value1
Value7
TGTctrlSTATEsN?
CommandTGTctrlSTEPN
CommandTGTctrlTOGgleN
TOGgle
14-15
CommandTGTctrlTYPeN TOGgle0 PULse1 SEQuence2
TYPe
QueryTGTctrlTYPeN?
TYPe
Programming Examples
Page
Programming Examples
15-2
Transferring the Mainframe Configuration
Transferring the Mainframe Configuration
15-4
Output 707SYSTEMHEADER on Output 707SYSTEMLONGFORM on
15-5
Checking for Intermodule Measurement Completion
Checking for Intermodule Measurement Completion
15-6
Sending Queries to the Logic Analysis System
Sending Queries to the Logic Analysis System
15-7
15-8
Getting Ascii Data with PRINt? ALL Query
Getting Ascii Data with PRINt? ALL Query
Reading the disk with the CATalog? ALL query
Reading the disk with the CATalog? ALL query
CATALOG? ALL query with DOS disks
15-10
Reading the Disk with the CATalog? Query
Reading the Disk with the CATalog? Query
Truncated at 51 characters
Printing to the disk
Printing to the disk
15-12
Index
Index-1
Index
Index-2
Index-3
Portedge
Index-4
Document Warranty
Product Warranty