HP 16500C/16501A Logic Analysis System
Page
Iii
This Book
Organization
Guide is organized in three parts
Page
Contents
Contents
Truncation Rule Infinity Representation
Command Set Organization Subsystems Program Examples
Protocols 6-3 Syntax Diagrams 6-5 Syntax Overview
HP-IB Commands Contents-3
Menu Contents-4
Device Dependent Errors
Internal Errors Query Errors
CLS Clear Status ESE Event Status Enable
10-25 XWINdow
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
INTermodule Subsystem
REName STORe CONFig UPLoad VOLume
15-9
Contents-7
15-3
Sending Queries to the Logic Analysis System
Contents-8
General Information
Page
Introduction to Programming
Introduction
Example
RS-232-C, or Ethernet LAN
Returned from a query
HP Basic
Talking to Individual System Modules
Talking to Individual System Modules
Initialization
Example See Also
Program the Logic Analysis System
Command
Initialization Example
Exists into the system
Program Message Syntax
Output Command
Instruction Syntax
Instruction Syntax
Instruction Header
Device Address
Instructions
Device Address
Instruction Parameters
Instruction Terminator
Instruction Terminator
White Space
Header Types
Simple Command Header
Compound Command Header
Header Types
Duplicate Keywords
Common Command Header
Combined Commands in the Same Subsystem
Duplicate Keywords
Query Usage
Query Usage
Short form
Program Header Options
Program Header Options
Numeric data
Parameter Data Types
See Also Example
Parameter Data Types
Keyword data
String data
Selecting Multiple Subsystems
Selecting Multiple Subsystems
Receiving Information from the Logic Analysis System
With Header on and Longform OFF
Response Header Options
Response Header Options
With Header OFF
Response Data Formats
Response Data Formats
Used for string concatenation
String Variables
String Variables
Response
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
More
Installed modules
System Status
System Status
Page
Programming Over HP-IB
Introduction
Interface Capabilities
Command and Data Concepts
Interface Capabilities
Talk/Listen Addressing
Instrument Address Selects the Instrument
HP-IB Bus Addressing
HP-IB Bus Addressing
Interface Select Code Selects the Interface
Hint See Also
Local, Remote, and Local Lockout
Local, Remote, and Local Lockout Example
Group Execute Trigger GET
Bus Commands
Bus Commands
Device Clear
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
Pin
Extended Interface with Hardware Handshake
Extended Interface with Hardware Handshake
Two bytes
Cable Example
Cable Examples
Cable Examples
HP 9000 Series
Pin F to 25-pin M Cable
Configuring the Logic Analysis System Interface
Configuring the Logic Analysis System Interface
HP Vectra Personal Computers and Compatibles
Data Bits
Protocol
HP Vectra Personal Computers or compatibles
RS-232-C Bus Addressing
RS-232-C Bus Addressing
Controller and the HP 16500C Logic Analysis System must be
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
Socket will eventually close without receiving a response
Sending Commands to the HP 16500C Socket
Sending Commands to the HP 16500C Socket
Parser socket
Start
Lockout Command
Page
Programming and Documentation Conventions
Introduction
Truncation Examples Long Form Short Form
Truncation Rule
Truncation Rule
Response Generation
Sequential and Overlapped Commands
Syntax Diagrams
Infinity Representation
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
DDE device specific error
PON power on
CME command error
EXE execution error
Operation Complete
Key Features
LCL remote to local
MSB module summary bit
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
Disabling Parallel Poll Responses
HP-IB Commands
Parallel Poll Unconfigure Command
Parallel Poll Configure Command
Parallel Poll Commands
HP-IB Commands
Parallel Poll Enable Command
Parallel Poll Disable Command
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
Parameter Values Mask
CLS Clear Status Common Command Parameter Values
CLS Clear Status
CLS
ESE?
ESE Event Status Enable
ESE Event Status Enable
ESE mask
String variable Esrevent$ will have bit 5 the CME bit set
Bit Position Bit Weight Enables
ESR Event Status Register
ESR?
Standard Event Status Register
Bit Position Bit Weight Bit Name Condition
ESR Event Status Register
IDN Identification Number
IDN Identification Number
IST Individual Status
IST?
IST Data Structure
IST Individual Status
OPC Operation Complete
OPC Operation Complete
OPC
OPC?
OPT Option Identification
OPT Option Identification
PRE?
PRE Parallel Poll Enable Register Enable
PRE Parallel Poll Enable Register Enable
PRE mask
RST Reset HP 16500C Parallel Poll Enable Register
RST Reset
SRE?
SRE Service Request Enable
SRE Service Request Enable
SRE mask
Bits in the status byte
STB Status Byte HP 16500C Service Request Enable Register
STB Status Byte
STB?
TRG Trigger Status Byte Register
TRG Trigger
TRG
TST Test
Bits Returned by *TST? Query Power-Up Test Results
TST Test
TST?
HP 16500C are STARt and Stop
WAI Wait
WAI
WAI Wait
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?
HP 16500C Capability Sets
CAPability
CAPability?
CAPability
CARDcage
CARDcage
CARDcage?
Id Number Card
CARDcage Card Identification Numbers
10-9
CESE?
Cese Combined Event Status Enable
CESE? query returns the current setting
Cese value
Value An integer from 0 to
Bit Weight Enables
Cesr Combined Event Status Register
10-12
Cesr Combined Event Status Register
EOI?
CommandEOI ON1OFF0
EOI End Or Identify
LER LCL Event Register
LOCKout
CommandLOCKout ON1OFF0
LOCKout
LOCKout?
Parameter Menu
CommandMENU module,menu
10-15
MENU?
Mesen Module Event Status Enable
CommandMESEN enablevalue
Mesen Module Event Status Enable System Menu Values
10-17
Mesen Module Event Status Enable Example
QueryMESEN?
HP 16500C Mainframe Module Event Status Register N=0
Mesrn Module Event Status Register
MESRN?
Mesrn Module Event Status Register
RMODe
RMODe
RMODe SINGleREPetitive
RMODe?
RTC Real-time Clock
RTC Real-time Clock
SELect
CommandSELect module
SELect
SELect?
10-22
Select Command Tree
10-23
CommandSETColor color,hue,sat,lumDEFault
SETColor
SETColor
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
DSP Display
QuerySYSTemDATA?
ERRor
ERRor
SYSTemERRor? NUMericSTRing
HEADer
CommandSYSTemHEADer ON1OFF0
HEADer
SYSTemHEADer?
LONGform
CommandSYSTemLONGform ON1OFF0
LONGform
SYSTemLONGform?
PRINt
PRINt
SYSTemPRINt SCReen,DISK, pathname ,msus, Btifctifpcxeps
11-11
SYSTemPRINt? SCReenALL
This instruction prints the screen to the printer
This instruction prints part of a listing to disk
11-12
SETup
CommandSYSTemSETup blockdata
SETup
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
12-9
CommandMMEMoryCD directoryname ,msus
CD Change Directory
CD Change Directory
Copy
CommandMMEMoryCOPY name,msus,newname,msus
Disk
To copy the contents of FILE1 to FILE2
DOWNload
DOWNload Example
File File Type
File Types
12-12
IDENtify
CommandMMEMoryIDENtify? msus
IDENtify
Drive
INITialize
MMEMoryINITialize LIFDOS,msus
INITialize
12-15
LOADCONFig
CommandMMEMoryLOADCONfig name,msus,module
LOADCONFig
12-16
CommandMMEMoryLOADIASSembler IAname,msus,12 ,module
Load IASSembler
Load IASSembler
12-17
CommandMMEMoryMKDir directoryname ,msus
MKDir Make Directory
MKDir Make Directory
MSI Mass Storage Is
CommandMMEMoryMSI msus
MSI Mass Storage Is
QueryMMEMoryMSI?
Pack
CommandMMEMoryPACK msus
PURGe
CommandMMEMoryPURGe name,msus
PURGe
PWD Present Working Directory
PWD Present Working Directory
MMEMoryPWD? msus
12-22
CommandMMEMoryREName name,msus,newname
REName
REName
Description,module
STORe CONFig
MMEMorySTOReCONfig name,msus
STORe CONFig
Instrument in block data form
UPLoad
MMEMoryUPLoad? name,msus
UPLoad
12-25
VOLume
MMEMoryVOLume? msus
VOLume
12-26
INTermodule Subsystem
13-2
Portedge Portlev Skew Tree
13-3
Intermodule Subsystem Commands Syntax Diagram
13-4
13-5
INTermodule
INTermodule
INTermodule INTermodule Parameter Values
13-6
DELete
INTermoduleDELete ALLOUTmodule
DELete
ValueX Skew for module in slot X real number
HTIMe
QueryINTermoduleHTIMe?
HTIMe
INPort
INPort
INTermoduleINPort ON1OFF0
INTermoduleINPort?
INSert
INSert
INTermoduleINSert ModuleOUT,GROUPmodule
INTermoduleOUTDrive?
CommandINTermoduleOUTDrive 0NORMal1OPENcllctr
OUTDrive
OUTPolar
INTermoduleOUTType?
CommandINTermoduleOUTType 0FEEDthru 1LATChed 2PULse
OUTType
QueryINTermoduleOUTPolar?
13-12
Portedge query returns the current edge setting
INTermodulePORTEDGE edgespec
INTermodulePORTEDGE?
This statement sets the BNC threshold to -2.3 volts
PORTlev query returns the current BNC threshold setting
INTermodulePORTLEV TTLECLuserlev
QueryINTermodulePORTLEV?
13-14
CommandINTermoduleSKEWN setting
Query returns the user defined skew setting
INTermoduleSKEWN?
13-15
Tree
13-16
QueryINTermoduleTREE?
Module Trigger time for module real number
TTIMe
QueryINTermoduleTTIMe?
TTIMe
13-18
TGTctrl Subsystem
14-2
Type
14-3
Targetcontrol Subsystem Commands Syntax Diagram
14-4
14-5
TGTctrl
TGTctrl
TGTctrl
TGTctrlALLN?
AVAILable
AVAILable
TGTctrlAVAILable?
14-8
CommandTGTctrlBITSN mask
QueryTGTctrlBITSN?
TGTctrlCURSTateN?
CommandTGTctrlDRIVeN NORMal0OPENcllctr1
CURSTate
DRIVe
LASTstate
CommandTGTctrlLASTstateN state
LASTstate
QueryTGTctrlLASTstateN?
NAMe
CommandTGTctrlNAMeN name
NAMe
QueryTGTctrlNAMeN?
TGTctrlSIGNalN?
SIGNal
CommandTGTctrlPULseN
TGTctrlSIGNalN OFF0ON1
14-13
SIGSTatus
QueryTGTctrlSIGSTatusN?
SIGSTatus
TGTctrlSTATEsN?
STATEs
TGTctrlSTATEsN value0,value1
Value7
14-15
CommandTGTctrlSTEPN
CommandTGTctrlTOGgleN
TOGgle
TYPe
CommandTGTctrlTYPeN TOGgle0 PULse1 SEQuence2
TYPe
QueryTGTctrlTYPeN?
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
15-10
Reading the disk with the CATalog? ALL query
Reading the disk with the CATalog? ALL query
CATALOG? ALL query with DOS disks
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