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