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
Program Header Options
Program Header Options
Short form
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 Variables
Numeric Base
Definite-Length Block Response Data
Definite-Length Block Response Data
Multiple Queries
Multiple Queries
Definite-length Block Response Data
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
Local, Remote, and Local Lockout
Local, Remote, and Local Lockout Example
Hint See Also
Group Execute Trigger GET
Bus Commands
Bus Commands
Device Clear
Programming Over RS-232-C
Introduction
Interface Operation
RS-232-C Cables
Interface Operation
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
LAN Addressing
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
Resetting the File Pointer
Writing to \system\program from a Program
Queries
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 Rule
Truncation Rule
Truncation Examples Long Form Short Form
Response Generation
Sequential and Overlapped Commands
Syntax Diagrams
Infinity Representation
Notation Conventions and Definitions
Notation Conventions and Definitions
Command Tree
Command Tree
Command Types
HP 16500C Command Tree
Tree Traversal Rules
Tree Traversal Rules
Store command as shown in the second line of this example
To the root of the command tree. The parser can then see
Tree Traversal Rules Example
Command Set Organization
Command Set Organization
Subsystems
Command Subsystem
Subsystems Alphabetic Command Cross-Reference
Keywords in short form, numbers using an exponential format
Program Examples
Program Examples
Message Communication and System Functions
Compatible instruments may or may not conform to the Ieee
Protocols
Protocols
Functional Elements
Protocol Operation
Protocol Overview
Protocol Exceptions
Syntax Diagrams
Example syntax diagram
Syntax Overview
Syntax Overview
Program message Parse Tree
Upper/Lower Case Equivalence
Suffix mult
Value Mnemonic
Suffix
Status Reporting
Introduction
Status Byte Structures and Concepts
Service Request Enable Register
Event Status Register
Bit Definitions
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
Using Serial Poll HP-IB
Serial Poll
Serial Poll
Parallel Poll
Parallel Poll
Parallel Poll Data Structure
Configuring Parallel Poll Responses
Polling HP-IB Devices
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
Command Errors
Device Dependent Errors
Execution Errors
Internal Errors
Execution 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?
Bit Position Bit Weight Bit Name Condition
ESR Event Status Register
Standard 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
TRG
TRG Trigger Status Byte Register
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
Mainframe Parameter Values
10-5
Parameter Values
BEEPer
CommandBEEPer ON1OFF0
BEEPer
BEEPer?
HP 16500C Capability Sets
CAPability
CAPability?
CAPability
CARDcage
CARDcage?
CARDcage
CARDcage Card Identification Numbers
10-9
Id Number Card
CESE?
Cese Combined Event Status Enable
CESE? query returns the current setting
Cese value
Bit Weight Enables
Cesr Combined Event Status Register
Value An integer from 0 to
10-12
Cesr Combined Event Status Register
EOI?
CommandEOI ON1OFF0
EOI End Or Identify
LER LCL Event Register
LOCKout
CommandLOCKout ON1OFF0
LOCKout
LOCKout?
CommandMENU module,menu
10-15
Parameter Menu
MENU?
Mesen Module Event Status Enable
CommandMESEN enablevalue
Mesen Module Event Status Enable System Menu Values
Mesen Module Event Status Enable Example
QueryMESEN?
10-17
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 OFF0 ON1,display
XWINdow
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
SYSTemERRor? NUMericSTRing
ERRor
HEADer
CommandSYSTemHEADer ON1OFF0
HEADer
SYSTemHEADer?
LONGform
CommandSYSTemLONGform ON1OFF0
LONGform
SYSTemLONGform?
PRINt
SYSTemPRINt SCReen,DISK, pathname ,msus, Btifctifpcxeps
PRINt
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
MMEMoryAUToload?
AUToload
CATalog
MMEMoryCATalog? ALLFULL,msus
CATalog
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 Types
12-12
File File Type
CommandMMEMoryIDENtify? msus
IDENtify
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
CommandMMEMoryPURGe name,msus
PURGe
PURGe
PWD Present Working Directory
MMEMoryPWD? msus
PWD Present Working Directory
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
INTermoduleINSert ModuleOUT,GROUPmodule
INSert
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
TGTctrlAVAILable?
AVAILable
CommandTGTctrlBITSN mask
QueryTGTctrlBITSN?
14-8
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
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
15-10
Reading the disk with the CATalog? ALL query
Reading the disk with the CATalog? ALL query
CATALOG? ALL query with DOS disks
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-1
Index
Index-2
Index
Portedge
Index-3
Index-4
Document Warranty
Product Warranty