This manual applies directly to HP 70700A
Digitizers with serial numbers prefixed 2709A and
below.
FIRMWARE VERSIONS
This manual applies directly to HP 70700A
Digitizers with firmware versions of 870501 and
earlier.
COPYRIGHT 0 HEWLETT-PACKARD CO. 1987
1212 VALLEY HOUSE DRIVE, ROHNERT PARK, CALIFORNIA 94928-4999 U.S.A.
Manual Part Number 70700-90021
Microfiche Part Number 70700-90022
Printed: MAY 1987
Hewlett-Packard Company certifies that this product met its published specifications at the time of
shipment from the factory. Hewlett-Packard further
certifies
that its calibration measurements are
traceable to the United States National Bureau of Standards, to the extent allowed by the Bureau’s
calibration facility and to the calibration facilities of other International Standards Organization
members.
WARRANTY
This Hewlett-Packard instrument product is warranted against defects in material and workmanship
for a period of one year from date of shipment. During the warranty period, Hewlett-Packard
Company will, at its option, either repair or replace products which prove to be defective.
For warranty service or repair, this product must be returned to a service facility designated by HP.
Buyer shall prepay shipping charges to HP and HP shall pay shipping charges to return the product
to Buyer. However, Buyer shall pay all shipping charges, duties, and taxes for products returned to
HP from another country.
HP warrants that its software and firmware designated by HP for use with an instrument will execute
its programming instructions when properly installed on that instrument. HP does not warrant that
the operation of the instrument, or software, or firmware will be uninterrupted or error free.
LIMITATION OF
WlRRANTY
The foregoing warranty shall not apply to defects resulting from improper or inadequate
maintenance by Buyer, Buyer-supplied software or interfacing, unauthorized modification or misuse,
operation outside of the environmental specifications for the product, or improper site preparation
or maintenance.
NO OTHER WARRANTY IS EXPRESSED OR IMPLIED. HP SPECIFICALLY DISCLAIMS
THE IMPLIED WARRANTIES
.OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE.
EXCLUSIVE REMEDIES
THE REMEDIES PROVIDED HEREIN ARE BUYER’S SOLE AND EXCLUSIVE REMEDIES.
HP SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES, WHETHER BASED ON CONTRACT, TORT, OR ANY
OTHER LEGAL THEORY
Product maintenance agreements and other customer assistance agreements are available for
Hewlett-Packard products.
For
any
assistance, contact your nearest Hewlett-Packard Sales and Service Office. Addresses are
i
provided at the back of this manual.
ii
SAFETY SYMBOLS
The following safety symbols are used throughout this manual and in the instrument. Familiarize
yourself with each of the symbols and its meaning before operating this instrument.
!
n
/I
Instruction manual symbol. The instrument will be marked with this symbol
when it is necessary for the user to refer to the instruction manual in order to
protect the instrument against damage. Location of pertinent information
within the manual is indicated by use of this symbol in the table of contents.
Indicates dangerous voltages are present. Be extremely careful.
The CAUTION sign denotes a hazard. It calls attention to a procedure which, if
not correctly performed or adhered to, could result in damage to or destruction
of the instrument. Do not proceed beyond a CAUTION sign until the indicated
conditions are fully understood and met.
The WARNING sign denotes a hazard. It calls attention to a procedure which,
if not correctly performed or adhered to, could result in injury or loss of life.
Do not proceed beyond a WARNING sign until the indicated conditions are
fully understood and met.
GENERAL SAFETY CONSIDERATIONS
BEFORE THIS INSTRUMENT IS SWITCHED ON, make sure it has been
properly grounded through the protective conductor of the ac power cable
to a socket outlet provided with protective earth contact. Any interruption of
the protective (grounding) conductor, inside or outside the instrument, or
disconnection of the protective earth terminal can result in personal injury.
There are voltages at many points in the instrument which can, if contacted,
cause personal injury. Be extremely careful. Any adjustments or service procedures that require operation of the instrument with protective covers
removed should be performed only by trained service personnel.
BEFORE THIS INSTRUMENT IS SWITCHED ON, make sure its primary
power circuitry has been adapted to the voltage of the ac power source.
Failure to set the ac power input to the correct voltage could cause damage
to the instrument when the ac power cable is plugged in.
. . .
111
CONTENTS
Chapter 1, General Information
How to Use this Manual
Digitizer System Overview
HP 70700A Digitizer Module Overview.......................................................................................
HP 70700A Digitizer Front-Panel Features................................................................................
HP 70700A Digitizer Rear-Panel Features
Mainframe/Module Interconnect
NWID, Negative Pulse Width
OVER, Overshoot
PER, Period
PREC, Precision
PRES, Preshoot
PTIM, Preceding Point of Requested Time
PVOL, Point of Specified Voltage/Intersection
PWID, Positive Pulse Width
RISE, Rise Time.
SOUR, Source
TDEL, Time Marker Delta
..........................................
................................
................................
...........................................
..........................................
.......................................
...................................
..........................................
..............................................
...........................................
............................................
..........................
........................
....................................
...........................................
.............................................
.....................................
TMAX, Time of First Occurrence of Maximum Voltage
TMIN, Time of First Occurrence of Minimum Voltage
TPO, Time of Specified Point
TSTA, Time of Start Marker
TSTO, Time of Stop Marker
TTIM, Time of REC Trigger Event
TVOL, Time of Specified Voltage/Intersection
UNIT, Units
..............................................
UPP, Upper Threshold
VAMP, Signal Amplitude
VAV, Signal Average
........................................
VBAS, Waveform Base Voltage Level
VDEL, VoltageMarker
‘Delta
VFIF,VoltageMarkersto
VMAX, Maximum Voltage of Signal
VMIN, Minimum Voltage of Signal
VPO, Voltage of Specified Point
VPP, Signal Voltage Peak-to-Peak
VREL, Relative Voltage Marker Positioning
VAL, Valid
XINC, X Increment
XOR, X Origin
XREF, X Reference
YBOT, Bottom Reference Value
YINC, Y Increment
YOR, Y Origin
YREF, Y Reference
YTOP, Top Reference Value
Window Subsystem
............................................
..............................................
............................................
.............................................
...............................................
.........................................
............................................
.........................................
.................................
.........................................
............................................
.........................................
...................................
...........................................
TYPE ..................................................
3
3-74
3-74
3-77
3-79
3-79
3-80
3-80
3-81
3-81
3-82
3-83
3-84
3-84
3-86
3-86
3-87
3-87
3-88
3-88
3-88
3-89
3-89
3-89
3-90
3-90
3-90
3-91
3-92
3-93
Appendices
Appendix A, Command Listing by Subsystem
Appendix B, Alphabetical Mnemonic Listing
Appendix C, Alphabetical Command Description Listing
Appendix D, Alphabetical Command Summary
Appendix E, HP-IB Review
......................................
..........................
...........................
.........................
...................
A-l
B-l
C-l
D-l
E-l
Vii
LIST OF ILLUSTRATIONS
Figure Title
l-l. Multiple-Channel Digitizer System
l-2. HP 70700A Digitizer Front Panel
l-3. HP 70700A Digitizer Rear Panel
2-
1. Multiple-Channel Digitizer System Addressing
2-2. HP 70700A Digitizer Address Switches
2-3. Status Data Structure
2-4. Status Byte Register
2-5. Service Request Enable Register
2-6. Standard Event Status Register
2-7. Output Queue
2-8. Timing Diagram without a Synchronization Command
2-9. Timing Diagram Using a Synchronization Command
2-10.
Remote Slaving Procedure Diagram
2-11. Remote Slaving Procedure Diagram for Random Event Capture
3-1. Terminated Program Message Functional Element Syntax
3-2. <PROGRAM MESSAGE UNIT> Functional Element Syntax
3-3. <COMMAND/QUERY MESSAGE UNIT> Functional Element Syntax
3-4. <PROGRAM MESSAGE UNIT SEPARATOR> Syntax
3-5. <PROGRAM HEADER SEPARATOR> Syntax
3-6. <PROGRAM DATA SEPARATOR> Syntax
3-7. Common Command Set Commands
3-8. Digitizer Top-Level Command Set Commands
3-9. Acquire Subsystem Commands
Instruments and modules of the HP 70000 Modular Measurement System are documented to varying levels
of detail. Modules that serve as masters of an instrument require operation information in addition to
installation and verification instructions. Modules that function as slaves in a system require only a subset
of installation and verification information. Service
70000 Modular Measurement System family.
docuinentation
USER MANUALS, SUPPLIED WITH MODULE
Installation and Verification Manual
Topics covered by this manual include installation, specifications, verification of module operation, and
some troubleshooting techniques. Manuals for modules that serve as instrument masters will supply
information in all these areas; manuals for slave modules will contain only information needed for slave
module installation and verification. Master module documentation may also include some system-level
information.
is
availa’ble
for every module of the HP
Operation Manual
Information in this manual usually pertains to multiple- and single-module instrument systems. The
Operation Manual describes manual operation of the module, with explanations of
softkeys and their use.
Programming Manual
Information in this manual usually pertains to multiple- and single-module instrument systems. The
Programming Manual defines commands that enable remote operation of the module, and describes remote
command syntax.
SERVICE MANUAL, AVAILABLE SEPARATELY
Technical Reference
This manual provides service information for a module, including performance verification, adjustments,
troubleshooting, replaceable parts lists, replacement procedures,
diagrams. For ordering information, contact an HP Sales and Service Office.
schematics, and component location
ix
X
GENERAL INFORMATION
Chapter
1
GENERAL INFORMATION
HOW TO USE THIS MANUAL
The HP 70700A Digitizer Programming Manual describes how to operate a digitizer system by remote,
computer control. It is not necessary to read this manual from cover to cover; however, it may be useful to
note what is in each chapter.
Chapter 1, General Information, provides descriptions of the digitizer system, the HP 70700A Digitizer
module, and front- and rear-panel features of an HP 70700A Digitizer module.
Before any remote operations are performed with your digitizer system, it
must first be installed and configured properly. Refer to the HP 70700A
Digitizer Installation and Verification Manual for detailed instructions on
correct installation and configuration information.
Chapter 2, Programming Fundamentals, provides information on the following topics: installation for
remote operation, communication with the system, the Status Reporting Structure, synchronization of
events and commands, and data transfer. Information on multiple-digitizer remote slaving is also included in
this chapter.
Chapter
functional subsystem, including syntax diagrams and functional parameters.
Appendices consist of four cross-reference listings and/or summaries for the digitizer remote commands,
and a general overview of the Hewlett-Packard Interface Bus (HP-IB):
A single-channel digitizer system consists of an HP 70700A Digitizer master module, an HP 70205A or HP
70206A Display, and an HP 70001A Mainframe. Additional digitizer modules may be slaved to the master
module to provide a multiple-channel digitizer system. See Figure l-l.
The digitizer system measures repetitive or transient waveforms with improved accuracy, resolution, and
dynamic range over other measurement techniques. With the use of the internal analog-to-digital converter
3,
Language Reference, provides a complete, detailed description of each command within each
Appendix A Command Listing by Subsystem
Appendix B Alphabetical Mnemonic Listing
Appendix C
Appendix D Alphabetical Command Summary
Appendix E HP-IB Review
Alphabetical Command Description Listing
l-l
GENERAL INFORMATION
(ADC) combined with digital memory, a computer can be used to analyze the data,
and allowing automation. Simultaneous digitization and memory access are available (i.e., as data is being
measured, the results may be accessed immediately with the use of a controller). Multi-channel operation
may be achieved by slaving multiple digitizer modules together,
synchronized by the master digitizer module “clock out” and “sync out” signals.
Data is always digitized at a 20 MHz rate and then a digital detection algorithm is applied to “reduce” the
data before it is stored. The four detection modes that are available for selection are sample, peak, pit, and
alternate.
Interpolation may be used to provide a better visual display of high-frequency waveforms.
\
with the slave digitizer module
ny”
broviding better results
0-
lllcvll
0
0
0
r
i
HEWLETT
Ei!!iia
LIE 0 or Pl
The digitizer system has triggering capabilities which are especially necessary when measuring
transient waveforms. These triggering capabilities are the functions of EITHER EDGE, ABOVE
BELOW LEVEL, or OUTSIDE RANGE. Additionally, hysteresis may be used to adapt the triggering to
match the input signal.
The Random Event Capture mode retains up to 1000 trigger events of a measurement with a guaranteed
amount of pre- and post-trigger data for each event. There is no dead time between events, the time of the
event is always stored, and the event time may be queried
data. The memory is dual ported so that captured events may be examined while the measurement is still
proceeding.
The Equivalent Time Sampling mode provides a technique for looking at stable, periodic, repetitive signals
by using multiple trigger events to form a composite waveform. It will allow
than 10 ns.
PACKARD
c
AIRFLOW
0
Figure l-l. Multiple-Channel Digitizer System
tYom :1
controller without outputting the event
70001A MAINFRAME
riseitime measurements of less
70000 SYSTEMS/
singleshot
LEVEL,,
1-2
GENERAL INFORMATION
HP 70700A DIGITIZER MODULE OVERVIEW
The HP 70700A Digitizer is a l/8-module with a 20 MHz sampling rate designed to work in an HP 70000
Series mainframe. It has both HP-IB (Hewlett-Packard Interface Bus) and HP-MSIB (Hewlett-Packard
Modular System Interface Bus) communication capabilities. The HP 70700A Digitizer can function in the
following configurations:
l Single-channel digitizer system (consisting of one module)
l Multiple-channel digitizer system (with one HP 70700A Digitizer functioning as a master to other HP
70700A Digitizer modules)
l Slave to an HP 70900A Local Oscillator when configured in an HP
70000
Series Modular Spectrum
Analyzer System
l Single-channel digitizer instrument configured with an HP 70000 Series Modular Spectrum Analyzer
System (When the HP 70700A Digitizer is used in this configuration, it is not a slave of the spectrum
analyzer but is used to view the spectrum analyzer video output.)
The last configuration described above is essentially the same as a single-channel digitizer system. The
disadvantage of this configuration is that the spectrum analyzer and digitizer operate independently, so
sweep-time coupling and amplitude calibration are lost. However, the advantage of this configuration is
that it allows all the digitizer features, such as the Measure ALL function and the Random Event Capture
mode, to operate on the video output of the spectrum analyzer. Refer to the HP 70700A Digitizer
Installation and Verification Manual for diagrams of correct digitizer system configurations.
LED Indicators
1. STATUS ACT indicates that the HP 70700A Digitizer is active. The ACTIVE LED lights when:
a. the keyboard of the display is allocated to the digitizer.
b. any Display function indicates the digitizer (e.g., when the cursor of the Display Address Map is at
the HP-MSIB address of the digitizer).
c. a digitizer is a slave to another digitizer that is designated as a master module, and it is being used by
that master digitizer.
2. STATUS ERR indicates errors. (Refer to Chapter 5, Troubleshooting, in the HP 70700A Digitizer
Installation and Verification Manual.)
3. HP-IB RMT indicates that the module is being remotely controlled and local control is disabled.
4. HP-IB LSN indicates a state in which the module is ready to accept information from the controller.
I-3
GENERAL INFORMATION
’ 707OOA
bTE
20
c
04
DIGITIZEF
Mmnplor/rr
0
FRONT-
\ PANEL
BNC
INPUT
\
MODULE
LATCH
Figure 1-2. HP 70700A Digitizer Front Pmel
5. HP-IB TLK indicates a state in which the module is
6. HP-IB SRQ indicates a condition requested or set by the user (e.g., errors, operation complete status,
power-on condition). Refer to Chapter 2, Programming Fundamentals, for more information on the
Service Request LED and the Standard Status Data
7. MEASURE indicates that the module is making a measurement.
INPUTS
INPUT 1 (type BNC connector) can be utilized only when the HP 70700A Digitizer is used in a digitizer
system. Refer to Table 1-l for more information about input selection and input impedance.
MODULE LATCH
The module hex-nut latch is used for installing the module in an HP 70000 Series mainframe. An 8 mm
hex-ball driver is required to turn the hex-nut latch.
reads
to send information to the controller.
l
StruCture.
1-4
GENERAL INFORMATION
Table l-l. HP 70700A Digitizer Input Selection and Input Impedance
HP 70700A Digitizer used in a digitizer system,
or as a digitizer instrument in a non-digitizer system:
HP 70700A
Preset Input
Softkey-Selected Input
Preset Input Impedance
Softkey-Selected Input Impedance
HP 70700A Digitizer used as a slave to a non-digitizer master:
I
Preset Input
Softkey-Selected Input
Preset Input Impedance
Softkey-Selected Input Impedance
<
DC Coupled I MR
AC Coupled
or DC Coupled
DC Coupled 1
DIGITIZER REAR-PANEL FEATURES
INPUT
INPUT 2
INPUT 2
none
none
1
lf2,
5Of2
MSZ
Figure 1-3. HP 70700A Digitizer Rear Panel
1-5
GENERAL INFORMATION
Rear-Panel SMB Connectors
1. HI SWP (High Sweep) is an input/output that is connected to HSWP of the HP 70900A Local Oscillator
when an HP 70700A Digitizer is used as a slave to an HP 70900A Local Oscillator in a spectrum analyzer
system. This connection is necessary to synchronize the digitizer and local oscillator and their starting
and stopping of measurements.
2. CLK OUT (Clock Out) provides a TTL-level 20 MHz clock output. In a single-channel digitizer system,
the CLK OUT is connected to the CLK IN on the same module. In a multiple-channel digitizer system,
the CLK OUT of the master HP 70700A Digitizer module must be connected to both its own CLK IN
and the CLK IN of all of its slaves. (Refer to the HP 70700A Digitizer Installation and Verification
Manual, Chapter 2, for detailed instructions on correct installation and configuration information.)
3. CLK IN (Clock In) requires a 50% duty cycle, TTL-level clock input with a 10 MHz to 20 MHz
frequency. (See CLK OUT, above.)
4. INPUT I can be utilized only when the HP- 70700A Digitizer is used in a digitizer system. The
front-panel INPUT 1 and rear-panel INPUT 1 are connected together and are electrically the same.
Refer to Table 1-I for more information about input selection and input impedance.
5. INPUT 2 can be utilized when the HP 70700A Digitizer is used in any type of configuration. When the
HP 70700A Digitizer is used in a digitizer system, INPUT 2 is preset “open” (i.e., no connection). Refer to
Table l-l for more information about input selection and input impedance.
6. EXT TRIG (External Trigger) allows an external input signal to be used to trigger the digitizer module
externally. The input signal must be TTL with a pulse width of’ at least one clock period, typically 50 ns.
(See SYNC OUT, below.)
7. SYNC OUT (Synchronizing Output) provides a TTL-level signal used to svnchronize the ‘HP 70700A
Digitizer slave modules of a multiple-channel digitizer system. In a multiple-channel digitizer system, the
SYNC OUT of the master HP 70700A Digitizer must be connected to the EXT TRIG inputs of the HP
70700A Digitizer slave modules. (Refer to the HP 70700A Digitizer Installation and Verification Manual,
Chapter 2, for detailed instructions on correct installation and configuration information.)
MAINFRAME/MODULE INTERCONNECT
The mainframe provides the power supply, HP-MSIB connections, and HP-IB connections for the HP
70700A Digitizer module through this mainframe/module interconnect.
l-6
.
PROGRAMMING FUNDAMENTALS
Chapter 2
PROGRAMMING FUNDAMENTALS
This chapter provides the information necessary to operate a digitizer system via a computer. The topics
covered in this chapter are listed below:
*
Setup Procedures for Remote Operation
l
Address Switches
. Communication with the System
*
Status Reporting Structure
*
Synchronization of Events and Commands
0
Data Transfer
l Multiple-Digitizer Remote Slaving Procedure
2-1
PROGRAMMING FUNDAMENTALS
The following procedure describes how to connect your equipment for remote operation of a digitizer
system.
NOTE
Refer to the HP 70700A Digitizer Installation and Verification Manual for
more detailed and specific information on installation, configuration, and
addressing of digitizer systems.
1. Connect computer, digitizer system, and other peripherals with HP-IB cables.
2. After the HP-IB cables are installed, reset all instruments connected to the bus. (If you are not sure how
to reset a device, switch its line power off, then on, to reset it.)
3. Check the HP-IB address of the master digitizer module on the address map. To view the address map,
press the [DISPLAY]
RPG knob on the front panel of the display until the first digitizer module appears in the address map.
The master digitizer module must be located in row 0 for HP-IB access
and error-reporting capabilities.
4. Check the system configuration on the address map. For single-channel digitizer system operation, the
digitizer and display modules must be positioned in the bottom row (row. 0) of the address map. For
multi-channel digitizer systems, the other digitizer modules must be positioned either in the same column
as the master digitizer above row 0, or in any other higher-address column above row 0 of the master
module. For more information on multi-channel system configurations, refer to Digitizer Channel
Number Assignment, below.
DIGITIZER CHANNEL NUMBER ASSIGNMENT
The channel number assignment of a digitizer system is determined by addressing. The master digitizer,
located at row 0, will always be assigned as CHANNEL 1. The next HP 70700A Digitizer encountered by
the master in its search will be assigned as CHANNEL 2. This process continues until all of the channels
have been assigned, or until all of the HP 70700A Digitizers have been assigned channels. The sequence in
which the Address Map is searched is from bottom to top and left to right. A maximum of four channels
are available when a digitizer system is controlled from a display front panel. A maximum of eight channels
are available when the system is controlled by a computer.
Figure 2-1 displays the address map of a four-channel digitizer system. Note that the master digitizer
module is CHANNEL 1 and that it is located in row 0. The other three digitizers (or Channels) are defined
by their address positions.
2-2
CHANNEL 2
MASTER
CHANNEL 1
-
/6
R
4
0
W3
PROGRAMMING FUNDAMENTALS
ADDRESSING EXAMPLE
.
,
2
.
7
70700A
DIGITIZER-\
70700A.
DltNTIZER \
8
9
-
CHANNEL
CHANNEL 3
4
COLUMN
Figure 2-l. Multiple-Channel Digitizer System Addressing
PROGRAMMING FUNDAMENTALS
ADDRESS SWITCHES
Address switches set the HP-MSIB address of an element (module); the column address switches also set the
HP-IB address for masters and independent elements. Some master elements can also have their HP-IB
address set through the use of softkeys (i.e., soft-set address).
The hard address switches for the digitizer are located on the top of the module.
HP-IB address 31 is an Illegal address and should not be used.
Descriptions of the HP 70700A Digitizer address switches are given below.
HP-IB ON-OFF When this is set to OFF, the HP 70700A Digitizer is switched off the HP-IB.
Column ADDRESS Switches l-5 These set the HP-MSIB column address, which is also the HP-IB address.
Row ADDRESS Switches l-3 These set the HP-MSIB row address.
ADDRESS
HP-18
ROW
ADDRESS
SWITCHES
Figure
’ COLUMN
ADDRESS
SWITCHES
2-2.
HP 70700A Digitizer Address Switches
OFF
ON
SOFT-SET HP-IB ADDRESSES
The HP-IB address of the digitizer master module may be changed from the front panel of the display. The
soft-set address remains in effect until the hard address switches are changed and power is cycled, or until
another soft-set address is entered. At power-up, the soft-set address will override the hard address switch
settings.
NOTE
PROGRAMMING FUNDA.MENTALS
Changing the HP-IB address via the display front
panel
does not affect the
position of the modules on the address map.
Use the following procedure to enter a soft-set HP-IB address.
1. Press the [DISPLAY] key on the display front panel.
.....
..
2.
When the display Main Menu appears, press the #&?fl~~$ii$!##! softkey.
;~...~~.........~~~~~.
3,
Whenthenext
4.
Enter the new HP-IB address using the numeric keys on the display front panel.
This section develops some fundamental techniques for controlling the digitizer and obtaining sound
measurement results. Remote operation of the digitizer is controlled with commands that correspond in
general to front-panel
It is important to understand how messages are communicated to the digitizer; therefore, enter and output
statements and command syntax discussed in this section should be understood before proceeding. It should
be noted that HP BASIC is used for all examples in this manual.
Digitizer programs control the passage of digitizer commands and data between the digitizer and the
computer on the Hewlett-Packard Interface Bus (HP-IB), using HP BASIC OUTPUT and ENTER statements.
An OUTPUT statement tells the computer to send a message to the digitizer. For example, executing the
output statement below sets the time range to 10
softkey
functions.
MS:
w
OUTPUT
COMPUTER SEND MESSAGE
HP-IB SELECT CODE
DIGITIZER ADDRESS
ACTIVATE TIME RANGE
SET TIME RANGE VALUE
COMMAND SEPARATOR
An ENTER statement used in conjunction with a digitizer query returns information to the computer. To
return the time range value to the computer, first form a query by adding a question mark (?) to the
command:
707;“TIM:RANG
lOus;
II
2-6
PROGRAMMING FUNDAMENTALS
OUTPUT
TIME RANGE
ACTIVATE QUERY
COMMAND
Next, the enter statement can be used to assign the
SEPARATOR
ENTER
COMPUTER RECEIVE MESSAGE
707;“TIM:RANG?;”
ret-wned
value to a variable in the computer:
707;Range
HP-18
SELECT CODE
DIGITIZER ADDRESS
COMPUTER VARIABLE
The value of the time range above is equated to the computer variable “Range”. The variable may be
printed, stored, or used for any other computer function.
Syntax Requirements
All of the program examples in this manual show recommended command syntax. All digitizer commands
must be constructed according to specific syntactical rules which are outlined in Chapter 3, Language
Reference. The Language Reference lists all of the remote digitizer commands in alphabetical order
according to each functional group subsystem, and contains a syntax diagram for each subsystem.
Local and Remote Control
Whenever the digitizer is remotely addressed, the display front-panel softkeys are disabled. Pressing the
[LOCAL] key or executing the HP BASIC command “LOCAL” reenables operation of the softkeys.
2-7
PROGRAMMING FUNDAMENTALS
INITIAL PROGRAM CONSIDERATIONS
Programs should begin with a series of HP BASIC and digitizer commands that form a good starting point
for digitizer measurements. The following example shows how to initialize the digitizer to form a good
starting point.
The ASSIGN command is an HP BASIC command that creates an I/O path name and assigns that name to
an I/O resource. In the example above, the I/O path name is
address 7. (Note: all program examples in this manual assume that the digitizer is addressed at HP-IB address
707.)
The ASSlGN command offers several advantages when included in a digitizer program. For example, the
digitizer address is easily changed in the computer program and the program can transfer data to a mass
storage unit.
The RESET command, *RST, presets all of the analog parameters of the digitizer and provides a good
starting point for all measurement processes. Executing *RST is actually the same as executing a number of
digitizer commands that set the digitizer to a known state.
“@DIG”
and is assigned to the device at HP-IB
The CLEAR command is an HP BASIC command that clears the input buffer, the output buffer, and the
command parser of the specified instrument; that is, a device on HP-IB is “cleared” so that it is ready for
operation. This command may be used to clear devices on the bus singly or in unison. It is often desirable to
reset only one instrument so that other instruments on the bus are not affected.
To clear the digitizer, the “CLEAR @DIG” statement may be entered into the computer.
To clear all devices at select code 7, the “CLEAR 7” statement may be entered into the computer.
2-8
PROGRAMMING FUNDAMENTALS
This section describes and defines the status reporting structure used in the HP 70700A Digitizer. In general,
the status data structure is used to “request service” or indicate a specific condition (e.g., operation complete)
via SRQ (Service Request). This structure may be used to alert the user that certain events have occurred
without the user’s actually initiating a request for this information. Refer to Figure 2-3 for a model of the
status data structure.
Each of the integral parts of the status data structure are described below in more detail.
The Status Byte Register contains the device’s Status Byte (STB) summary messages, Request Service (RQS)
messages, and Master Summary Status (MSS) messages. See Figure 2-4.
The Status Byte Register can be read with either a serial poll or the READ STATUS BYTE common query
(*STB?).
6 position depends on the method used.
Both of these methods read the status byte message identically. However, the value sent for the bit
When the Status Byte Register is read with a serial poll “SPOLL
status byte message plus the single-bit RQS message to the
When the Status Byte Register is read with the *STB? common qu
byte message plus the single-bit MSS message as a single <NRI NUMERIC PROGRAM DATA> element.
The response to *STB? is identical to the response to a serial poll except that the MSS summary message
appears in the bit 6 position in place of the RQS message. The MSS summary message indicates that the
device has at least one reason for requesting service.
Standard Event Status Bit (ESB) Summary Message
The ESB summary message is a defined message which appears in bit 5 of the Status Byte Register. Its state
indicates whether or not one or more of the enabled events have occurred since the last reading or clearing
of the Standard Event Status Register. Refer to Figure 2-3.
The ESB summary message is TRUE when an enabled event in the Standard Event Status Register is set
TRUE. Conversely, the ESB summary message is FALSE when no enabled events are TRUE.
Message Available (MAV) Queue Summary Message
The MAV summary message is a defined message which appears in bit 4 of the Status Byte Register. The
state of the message indicates whether or not the Output Queue is empty. Whenever the device is ready to
accept a request by the controller to output data bytes, the MAV summary message shall be TRUE. The
MAV summary message shall be FALSE when the Output Queue is empty. Refer to Figure 2-3.
controll
(@DIG)“, the device returns the seven-bit
er as a single data byte.
ery, the device returns the seven-bit status
I
2-9
PROGRAMMING FUNDAMENTALS
*ESR?
Standard
Status
Register
*ESE
. . . . . . . . .
. ..**..a.
bbob*
, . . . . . . . .
4
0
l
b
b
.
l
.
b
.
b
b
b
b
b
b
b
b
b
l
b
b
b
b
l
b
l
b
l
l
b
. . . . . .
.
oc
0
u
0
b-
OJ
0
-J
. . . . . . . . .
. . . . . . . . .
.. . . . . . .
, . . . . . . . .
. . . . l . . . .
. . . . . . . . .
. . . . . . . . .
.
..*.
. . . . . . . . . . . . .
. . . . . . . .
L
*
7 6
i
.
.
.q..
.
i
.
.
1
&RQS’:
II
ESBMAV
I
I
,MSS
1
. . .
\
.
..
.
.
..
.
1
..,............,.......
.
.
.
.
;-
?
3 2
*ESE?
1 0
Event!
Enable
<nrf>
A
Ser
Ena
:
i
.
!
.
.
.
Serial Poll
tatus
egister
-read by
vice
ble Register
I
output
Queue
read by
*STB?
*SRE
<nrf>
*SRE?
Byte
Request
2-10
Figure
2-3.
Status
Data
Structure
PROGRAMMING FUNDAMENTALS
The MAV summary message is used to synchronize information exchange with the controller. The
controller can, for example, send a query command to the device and then wait for MAV to become
TRUE. The system bus is available for other use while an application program is waiting for a device to
respond. If an application program begins a read operation of the Output Queue without first checking for
MAV, all system bus activity is held up until the device responds.
NOTE
Bits 0 through 3 and bit 7 are not used at this time.
,
-
- - - w w SUMMARY - - - w - -
0107
0107
Clearing the Status Byte Register
STATUS
MESSAGES
RQS
ES6
6
MSS
MAV
0106
0105
3 2
0104
t
0103
Figure 2-4. Status Byte Register
1
The CLEAR STATUS
(*CLS)
common command causes the Event Registers and Queues of the status data
structure to be cleared so that the corresponding summary messages are clear. The Output Queue and its
MAV summary message are an exception and are unaffected by
*CLS.
SERVICE REQUEST ENABLE REGISTER
The Service Request Enable Register is an eight-bit register that can be used by the programmer to select
which summary messages in the Status Byte Register may cause service requests. The programmer may
select reasons for the device to issue a service request by altering the contents of the Service Request
Enable Register. Refer to Figure 2-5.
PROGRAMMING- FUNDAMENTALS
w--N
STATUS
SUMMARY - -
MESSAGES
-
..,....
/
l
........
................
................
........................
........................
........................
f
l ,ObO
)
\
l
.
1
RQS
y
7
6
MSS,
A
ESB
r
,,Y
7x5432
3
MAV
t
(
. .
2
1
1
t
1
I
I
0
P
$
Ci
4
3erial
Status
Resister
\
l **
Service
Enable
read by
rkad
*STB?
Regi’st
*SRE
*SRE?
Pol I
Byt
by
Request
<nrf>
e
er
Figure 2-5. Service Request Enable Register
Reading/Writing the Service Request Enable Register
The Service Request Enable Register is read with the SERVICE REQUEST ENABLE (*SRE?) common
query. The response message to this query is a
represents the sum of the binary-weighted values of the Service Request Enable Register (2 raised to the
power of the bit number). The value of unused bit 6 is always zero.
The Service Request Enable Register is written to with the SERVICE REQUEST ENABLE
command followed by a <DECIMAL NUMERIC PROGRAM DATA> element. The <DECIMAL
NUMERIC PROGRAM DATA>, when rounded to an integer value and expressed in base two (binary),
represents the bit values of the Service Request Enable Register. A bit value of one indicates an enabled
condition. A bit value of zero indicates a disabled condition.
The device always ignores the value of bit 6.
2-12
<NRl
NOTE
NUMERIC PROGRAM DATA> element that
(*SRE)
common
PROGRAMMING FUNDAMENTALS
Service Request Generation
The Service Request function provides the device with the ability to request service from the controller via
the Service Request interface (SRQ, a line on HP-IB), and report that it has requested service via the
Request Service message (RQS, bit 6 of the Status Byte Register).
The generation of service requests ensures that the device shall:
1. Assert an SRQ when a previously “enabled” condition occurs.
2. Keep SRQ asserted until the controller has recognized the service request and polled the device, or
has taken specific action to cancel the request (e.g., *CLS command).
3. Release SRQ when polled so that the controller can detect an SRQ from another device.
4. Assert an SRQ again if another condition occurs, whether or not the controller has cleared the first
condition. If the previous condition has not been cleared, the next condition must be different than
the first for an SRQ to be asserted again.
Whenever the contents of the Status Byte Register or the Service Request Enable Register are changed, the
device must determine whether the change affects the service request state of the device. Device status
transitions do not affect the state of the SRQ interface directly. Instead, changes to the Status Byte Register
and the Service Request Enable Register generate two local messages which either assert (Request Service
TRUE) or unassert (Request Service FALSE) the hardware.
,
The device shall generate a new service request (assert Request Service TRUE) when:
1. A bit in the Status Byte Register changes from FALSE to TRUE while the corresponding bit in the
Service Request Enable Register is TRUE.
2. A bit in the Service Request Enable Register changes from FALSE to TRUE
corresponding bit in the Status Byte Register is TRUE.
3. A bit in the Status Byte Register changes from FALSE to TRUE and the corresponding bit
Service Request Enable Register changes from FALSE to TRUE simultaneously.
In general, the controller application program must never assume that an SRQ indicates that a new Il eason
for service has occurred, but only that it may have occurred. The application program should check the
device Status Byte Register to determine whether it is indeed the case that a new reason for service exists.
Clearing the Service Request Enable Register
The SERVICE REQUEST ENABLE (*SRE) common command followed with a <DECIMAL NUMERIC
PROGRAM DATA> element value of zero clears the Service Request Enable Register. A cleared register
does not allow status information to generate a hardware Request Service message; thus, no service requests
are issued.
whil
e the
in the
The Standard Event Status Register structure has specific, defined events assigned to specific bits. Refer to
Figure 2-6.
2-13
PROGRAMMING FUNDAMENTALS
Sumary
Event
(BIT 5 OF STATUS BYTE REGISTER)
Sumary
Message
Bit
(ESB)
Standard
Status
*ESR?
Standard
Status
Register
*ESE <nrf>
*ESE?
Register
Enable
Event
Event
Figure 2-6.
Bits 7 through
Bit 7 - Power On (PON) This event bit indicates that an off-to-on transition has occurred in the power
supply of the device.
Bit 6 - User Request
Bit 5 - Command Error (CME)
1. A syntax error (controller-to-device message) has been detected.
element which violates the device listening formats or whose type is unacceptable to the device.
2-14
0
(URQ)
This event bit is not used at this time.
This event bit indicates that one of the following events has occurred:
Sfmdard
.Ehent
Status Register
Possible errors include a data
Loading...
+ 164 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.