Programming instructions
Table Of Contents
- Contents
- Title Page
- Chapter 1 Introduction to Programming
- Chapter 2 Programming Getting Started
- Chapter 3 Programming over HP-IB
- Chapter 4 Programming over RS-232-C
- Chapter 5 Programming and Documentation Conventions
- Chapter 6 Status Reporting
- Figure 6-1. Status Reporting Overview Block Diagram
- Table 6-1. Status Reporting Bit Definition
- Status Reporting Data Structures
- Status Byte Register (SBR)
- Service Request Enable Register (SRER)
- Trigger Event Register (TRG)
- Standard Event Status Register (SESR)
- Standard Event Status Enable Register (SESER)
- User Event Register (UER)
- Local Event Register (LCL)
- Operation Status Register (OPR)
- Limit Test Event Register (LTER)
- Mask Test Event Register (MTER)
- Histogram Event Register (HER)
- Arm Event Register (ARM)
- Error Queue
- Output Queue
- Message Queue
- Key Queue
- Clearing Registers and Queues
- Figure 6-3. Status Reporting Decision Chart
- Chapter 7 Installing and Using the Programmer's Reference
- Chapter 8 Programmer’s Quick Reference
- Warranty
- Index

Communicating Over the Bus
Because HP-IB can address multiple devices through the same interface card,
the device address passed with the program message must include not only
the correct interface select code, but also the correct instrument address.
Interface Select Code (Selects Interface)
Each interface card has a unique interface select code. This code is used by
the controller to direct commands and communications to the proper
interface. The default is typically “7” for HP-IB controllers.
Instrument Address (Selects Instrument)
Each instrument on an HP-IB must have a unique instrument address
between decimal 0 and 30. The device address passed with the program
message must include not only the correct instrument address, but also the
correct interface select code.
DEVICE ADDRESS = (Interface Select Code * 100) + (Instrument Address)
For example, if the instrument address for the oscilloscope is 4 and the
interface select code is 7, when the program message is passed, the routine
performs its function on the instrument at device address 704.
For the oscilloscope, the instrument address is typically set to 707.
Oscilloscope Device Address
The examples in this manual and in the online
HP 54645A/D Oscilloscopes
Programmer’s Reference
assume the oscilloscope is at device address 707.
See the documentation for your HP-IB interface card for more information on
select codes and addresses.
Programming over HP-IB
Communicating Over the Bus
3-5