Agilent 83751A Programming Guide

Programming Guide
HP
83751A/B
and HP
Synthesized Sweeper
83752A/B
part number: 83750-90005 Master set: 83750-90002 Printed in USA March 1997
Serial Numbers.
Supersedes: October 1994
This manual applies directly to instruments with serial
prel% 3447A
and
below. This manual also applies to firmware revision 2.0 and above. For
Grmware
revisions below 2.0 contact your nearest Hewlett-Packard service center for a firmware upgrade.
Notice.
The information contained in this document is subject to change without notice.
Hewlett-Packard makes no warranty of any
ldnd
with regard to this material, including but not limited to, the implied warranties of merchantability and fitness for a particular purpose. Hewlett-Packard shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing, performance, or use of this material.
@Copyright Hewlett-Packard Company
All
Rights
Reserved. Reproduction, adaptation, or translation without prior
1993,1997
written permission is prohibited, except as allowed under the copyright laws.
1400 Fountaingrove Parkway, Santa Rosa, CA 95403-1799, USA

Certification

Hewlett-Packard Company certifies that this product met its published
specifications
further certifies that its calibration measurements are traceable to the United States National Institute of Standards and Technology, to the extent allowed by the Institute’s calibration facility, and to the calibration facilities of other International Standards Organization members.
Regulatory Information.
at the time of shipment from the factory. Hewlett-Packard
The User’s Guide contains SCPI Conformance Information is found in Chapter 5, “SCPI Conformance
Information.
ISO/IEC
regulatory information.
. . .
ill

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 Hewlett-Packard. Buyer shall prepay shipping charges to Hewlett-Packard and Hewlett-Packard shall pay shipping charges to return the product to Buyer. However, Buyer shah pay and taxes for products returned to Hewlett-Packard from another country.
alI
shipping charges, duties,
Hewlett-Packard warrants that its software and Hewlett-Packard for use with an instrument will execute its programming instructions when properly installed on that instrument. Hewlett-Packard does not warrant that the operation of the instrument, or software, or Ermware will be uninterrupted or error-free.
LIMITATION OF WARRANTY
The foregoing warranty shah 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. HEWLETT-PACKARD 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. HEWLETT-PACKARD SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER BASED ON CONTRACT, TORT, OR ANY OTHER LEGAL THEORY.
firmware
designated by
iv

Assistance

Product maintenance agreements and other customer assistance agreements are available
Fbr any assistance, contact your nearest Hewlett-Packard Sales and service
Ome.
for
Hewlett-Packard products.
V

Safety Notes

The following safety notes are used throughout this manual. Familiarize yourself with each of the notes and its meaning before operating this instrument.
CAUTION
WARNING
The caution note 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 note until the indicated conditions are fully understood and met.
The warning note 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
warnzing
note until the indicated
conditions are fully understood and met.
Instruction The instruction manual symbol. The product is marked with this symbol when it is necessary
Manual
for the user to refer to the instructions in the manual.
vi

General Safety Considerations

WARNING
WARNING
CAUTION
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 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.
Vii

How to Use This Guide

This guide uses the following conventions.
(Front-Panel
Sof
Screen Text
K~-J
tkey
This represents a key physically located on the instrument. This indicates a “softkey, II a key whose label is determined
by the instrument’s This indicates text displayed on the instrument’s screen.
firmware.
Vlll
. . .
Contents
1. Getting Started Programming
HP-IB General Information
Interconnecting Cables Instrument Addresses HP-IB Instrument Nomenclature
Listener Talker
Controller Programming the Sweeper HP-IB Command Statements Abort
Related statements used by some computers
Remote
Some BASIC examples
Local
Lockout
A BASIC example
Local
Some BASIC examples
Clear
Some BASIC examples
Related statements used by some computers
output
A BASIC example Related statements used by some computers
Enter
Related statements used by some computers
Getting Started with SCPI
Definitions of Terms
Standard Notation
Command Mnemonics
Angle Brackets
How to Use Examples
Command Examples
Response Examples
Essentials for Beginners
Program and Response Messages
....................
.....................
...................
......................
.....................
...................
................
......................
......................
......................
................
......................
.................
.................
.................
..............
...............
...............
..........
.............
............
....
..............
..............
..............
....
....
....
..............
..............
...............
...............
...............
...............
..........
l-3 l-3
1-3
l-4 l-4 l-4 l-4 l-4 l-5 l-6 l-6 l-7 l-7
l-8 l-8 l-8
1-8
l-9 l-9 l-9
l-10 l-11 l-11 l-12
1-13 1-14
l-15
1-16
l-16 l-16 l-16 l-17
1-17
l-18 l-19
Contents- 1
Forgiving Listening and Precise Talking
Types of Commands
Subsystem Command Trees
The Command Tree Structure Paths Through the Command Tree
Subsystem Command Tables
Reading the Command Table
More About Commands
Query and Event Commands Implied Commands Optional Parameters
Program Message Examples
Example 1 Example 2 Example 3 Example 4
Parameter Types
Numeric Parameters Extended Numeric Parameters Discrete Parameters Boolean Parameters
Reading Instrument Errors Example Programs
Example Program Program Comments
Details of Commands and Responses
Program Message Syntax SCPI Subsystem Command Syntax Common Command Syntax Response Message Syntax SCPI Data Types Parameter Types
Numeric Parameters Extended Numeric Parameters Discrete Parameters Boolean Parameters
Response Data Types
Real Response Data
Integer Response Data
Discrete Response Data String Response Data
...................
...................
...................
...................
................
.............
............
...........
..............
...........
...............
...............
............
.................
...............
...............
...............
.............
................
................
...............
..............
.............
.............
.................
.................
...............
...............
...............
...............
...............
..............
.............
..............
......
..........
........
..........
..........
.........
..........
1-19
l-19
1-21
l-21
1-21
l-24 l-25
l-26 l-26 l-26 l-26 l-27 l-27 l-27 l-28 l-28 l-29 l-29 l-30 l-31 l-31
1-32
l-33 l-33 l-35 l-36 l-37 l-38 l-39
l-40
1-41
l-42
1-42
l-43 l-44 l-44 l-45 l-45 l-45
1-46
l-46
Contents-2
Programming Typical Measurements
Using the Example
Use of the Command Tables HP-IB Check, Example Program 1
Program Comments
Local Lockout Demonstration, Example Program
Program Comments
Setting Up A Typical Sweep, Example Program 3 .
Program Comments
Queries, Example Program 4
Program Comments
Saving and Recalling States, Example Program 5
Program Comments
Looping and Synchronization, Example Program 6 .
Program Comments
Using the
Program Comments
Using the User Flatness Correction Commands,
*WA1
Example Program 8
Programming the Status System
General Status Register Model
Condition Register Transition Filter Event Register Enable Register An Example Sequence
HP 83750 Series Status Register Model Synthesized Sweeper Status Groups
The Status Byte The Standard Event Status Group The Standard Operation Status Group The Questionable Data Status Group Status Register System Programming Example
Programming the Trigger System
Generalized Trigger Model Description of Triggering in Sweepers
Advanced Trigger Configurations
Trigger Keyword Definitions
ABORt IMMediate SOURce
Programs
.............
.............
.............
.............
.............
.............
Command, Example Program 7
.............
..............
.............
..............
...............
...............
............
Group
..................
.................
..................
...........
...........
........
...........
..........
........
..........
.........
.........
......
.......
.......
.....
.....
.........
......
.......
..........
l-47
l-47
. . . . . . . .
2
. . . . . . . . . .
. .
.
. . . . . . . .
.
. .
l-48 l-51 l-51 l-52 l-53 l-54 l-55 l-56 l-56 l-58
l-59 l-60 l-61 l-62
1-63
l-64
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
.
. . . . . .
1-68
l-69
l-69
l-70
l-70
l-70 l-71 l-72 l-72 l-72 l-74
1-75
l-76 l-77 l-80 l-80 l-82 l-83
. . . . . . . .
l-84 l-84 l-84 l-84
Contents-3
Related Documents . . . . . . . . . . . . . . . . .
2.
Programming Commands
Command Syntax
IEEE 488.2 Common Commands
*CLS
(Clear Status Command) *DMC (Define Macro Command) *EMC (Enable Macros Command)
Query Syntax
*ESE (Standard Event Status Enable Command)
Query Syntax *ESR? (Standard Event Status Register Query) *GMC? (Get Macro Contents Query)
‘IDN?
(Identification Query) *LMC? (List Macro Query) *LRN? (Learn Device Setup Query)
*OPC (Operation Complete Command)
Query Syntax *OPT? (Option Identification Query) *PMC (Purge Macros Command)
*PSC (Power-On Status Clear Command)
Example
Query Syntax
*RCL (Recall Command) *RMC (Remove Macro Command) *RST (Reset Command) *SAV (Save Command) *SRE (Service Request Enable Command)
Query Syntax
*STB? (Read Status Byte Query) *TRG (Trigger Command) *TST? (Self-Test Query)
*WA1
(Wait-to-Continue Command)
Subsystem Commands
ABORt AM:STAT; : : : : : : : : : : : : :
Query Syntax
AM:SOURce
Query Syntax
Calibration Subsystem
CALibration:PEAKing
..................
...........
...........
..........
.........
..................
..................
........
............
.............
.........
.......
..................
........
..........
......
....................
..................
..............
.........
..............
..............
......
..................
..........
.............
..............
.........
................
.......
.......
..................
...................
..................
................
...............
...
....
l-85
2-3 2-4 2-4 2-4 2-5 2-5 2-5 2-5 2-5 2-6 2-6
2-6 2-6 2-7 2-7 2-7 2-8 2-8 2-8 2-8 2-9 2-9 2-9 2-9
2-10 2-10 2-10 2-10 2-11 2-11 2-12 2-12 2-12 2-12 2-13 2-13 2-14 2-14
Contents-4
Query Syntax
CA.Libration:
CALibration:PMETer:FLATness:INITiate? CALibration:PMETer:FLATness:NEXT?
Correction Subsystem
CORRection:FLATness:FREQ
Query Syntax
CORRection:FLATness:AMPL
Query Syntax CORRection:FLATness:POINts? CORRection[:STATe]
Query Syntax
CORRection:VOLTs:SCALe
Query Syntax
CORRection:VOLTs:OFFSet
Query Syntax
Diagnostic Subsystem
DIAG:LRNS? DIAGnostic:TEST:FULLtest?
DIAGnostic:TEST:FULLtest:REPort?
Display Subsystem
DISPlay[:STATe]
Query Syntax
FM Subsystem
FM:COUPling
Query Syntax
FM:STATe
Query Syntax
FM:SENSitivity
Query Syntax
FM:SOURce
Query Syntax
Frequency Subsystem
FREQuency:CENTer
Query Syntax Example 1 Example 2 Example 3
FREQuency[:CW[:FIXed]
Query Syntax
..................
TRACk
....................
..................
................
...........
..................
...........
..................
..........
...............
..................
............
..................
............
..................
................
...................
............
.................
.................
..................
...................
..................
..................
..................
..................
..................
...................
..................
................
...............
..................
...................
...................
...................
.............
..................
......
.......
........
2-14
2-14
2-15 2-15 2-16 2-16
2-16 2-17 2-17
2-17
2-18
%2:
2-18 2-19
%l:
2-20
2-20 2-21 2-22 2-22 2-22 2-23 2-23 2-23 2-23
%2: i:?t
2-24
2-25 2-25
,2:2:
2-26 2-26 2-27 2-27
Contents-5
FREQuency[:CW]:AUTO and
FREQuency[:FIXed]:AUTO
Query Syntax
FREQuency:MANual
Query Syntax
FREQuency:MODE
Query Syntax
FREQuency:MULTiplier
Query Syntax
FREQuency:MULTiplier:STATe
Query Syntax
FREQuency:OFFSet
Query Syntax
FREQuency:OFFSet:STATe
Query Syntax
FREQuency:SPAN
Query Syntax
FREQuency:STARt
Query Syntax
FREQuency:STEP[:INCRement]
Query Syntax
FREQuency:STOP
Query Syntax
Triggering in the Sweeper
1NITiate:CONTinuous
Query Syntax
INITiate[:IMMediate]
Marker Subsystem
MARKer[n]:AMPLitude
Query Syntax
MARKer[n]:AOFF
MARKer[n]:FREQuency
Query Syntax MARKer[n]:MODE
Query Syntax
MARKer[n]:REFerence
Query Syntax MARKer[n][:STATe]
Query Syntax
Memory Subsystem
MEMory:RAM:INITialize
...................
...............
..................
................
..................
..................
..................
................
..................
..................
................
..................
................
..................
..................
................
..................
..............
...............
..................
...............
..................
..............
..................
.................
..............
...................
................
..................
...............
..................
................
..................
.................
...........
..............
...........
............
..........
.............
2-27
2-27
2-28
22: 2:: 22: ,22:: 22; 22: Z3: i-g:
-
23: 22:
2-36
f3:
2-37 2-37
22:
2-39
22-i:
-
;!:I i1&; 22:
2-43
Contents-6
Output Subsystem
OUTPut
:
STATe
Query Syntax
OUTPut:IMPedance?
Power Subsystem
POWer:ALC:CFACtor
Query Syntax
POWer:ALC:SOURce
Query Syntax
POWer:ALC[:STATe]
Query Syntax
POWer:ATTenuation
Query Syntax
......
........
......
...
......
...
......
...
......
...
......
...
......
POWer:ATTenuation:AUTO
Query Syntax
POWer:CENTer
Query Syntax
POWer[:LEVel]
Query Syntax
......
......
......
......
......
POWer:MODE FIXedlSWEep
Query Syntax
POWer:OFFSet
Query Syntax
POWer:OFFSet:STATe
Query Syntax
POWer:SLOPe
Query Syntax
POWer:SLOPe:STATe
Query Syntax
POWer:SPAN
Query Syntax
POWer:STARt
Query Syntax
POWer:STATe
Query Syntax
......
......
......
...
......
......
......
...
......
.......
......
......
......
......
......
POWer:STEP[:INCRement] .
Query Syntax
POWer:STOP
Query Syntax
Pulse Subsystem
PULSe:PER.iod
......
.......
......
......
......
. . . . . . . . . . . .
............
............
............
............
............
............
............
............
............
............
............
............
............
............
............
............
............
...........
............
............
............
............
............
............
............
............
............
............
............
............
............
............
............
............
............
............
............
. . . . . . . . . . . .
. . . . . . . . . . . .
2-44
2-44
2-44 2-44 2-45 2-45 2-45 2-45 2-45 2-46 2-46
2-46 2-46 2-47 2-47 2-48 2-48 2-49 2-49 2-49 2-49 2-50 2-50 2-50 2-50 2-51 2-51 2-51 2-51 2-52 2-52 2-52 2-52 2-53 2-53 2-53 2-53
2-54 2-54
2-55
2-55
Contents-7
Query Syntax
PULSe:FREQuency
Query Syntax
PULSe:WIDTh
Query Syntax
PULM:SOURce
Query Syntax
PULM:STATe
Query Syntax
ROSCillator:SOURce
Query Syntax
ROSCillator:SOURce:AUTO
Query Syntax
Status Subsystem
STATus:OPERation:CONDition? STATus:OPERation:ENABle
Query Syntax STATus:OPERation[:EVENt]? STATus:OPERation:NTRansition
Query Syntax STATus:OPERation:PTRansition
Query Syntax STATUS:PRESet STATus:QUEStionable:CONDition? STATus:QUEStionable:ENABle
Query Syntax
STATus:QUEStionable[:EVENt]?
STATus:QUEStionable:NTRansition
Query Syntax STATus:QUEStionable:PTRansition
Query Syntax
Sweep Subsystem
SWEep:CONTrol:TYPE
Query Syntax
SWEep:DWELl
Query Syntax
SWEep:DWELl:AUTO
Query Syntax SWEep:POINts
Query Syntax SWEep:POWer:STEP
..................
..................
..................
..................
..................
..................
..................
...................
..................
...............
..................
..................
..................
..................
..................
..................
.................
..................
..................
..................
..................
..............
..................
..................
..................
...............
..................
..................
..................
...............
............
..........
............
...........
..........
..........
.........
...........
..........
.........
.........
2-55
2-56
%2: ir$; %g; %2; %?-?i E1z5
2-59 2-59
C&i
2-60
iI%: %&I
2-61 2-61
24:
2-62
;-$
-
&2:
2-64
%2: %2; irEg 22::;
Contents-8
Query
SWEep[
Query Syntax
SWEep:TIME
Query Syntax
SWEep:TIME:AUTO
Query Syntax
SWEep:TIME:LLIMit
Query Syntax
SWEep:GENeration
Query Syntax
SWEep:MODE
Query Syntax
SWEep:MANud[:RELative]
Query Syntax
SWEep:MANual:POINt
Query Syntax
SWEep:MARKer:STATe
Query Syntax
SWEep:MARKer:XFER
SWEep[:POINts]:TRIGger:SOURce
Query Syntax
SWEep:POINts:TRIGger:
System Subsystem
SYSTem:ALTernate
Query Syntax
SYSTem:ALTernate:STATe
Query Syntax SYSTem:COMMunicate:GPIB:ADDRess SYSTem:COMMunicate:PMETer:ADDRess
Query Syntax
SYSTem:COMMunicate:PMETer:TYPE
Query Syntax SYSTem:ERRor? SYSTem:KEY[:CODE]
Query Syntax
SYSTem:KEY:DISable
Query Syntax SYSTem:KEY:ENABle SYSTem:LANGuage
Query Syntax
Syntax
:FREQuency]:STEP
..................
..............
..................
...................
..................
...............
..................
...............
..................
................
..................
..................
..................
............
..................
..............
..................
..............
..................
..............
..................
.............
..................
................
..................
.............
..................
..................
..................
.................
...............
..................
...............
..................
...............
................
..................
.........
.......
......
.......
2-6’7
2-68
2-68 2-69
;I;; %V7: i-7’:
-
.22;; ;I;; %??i t1;f %2t
2-75
%ZE
2-76
2-76
%2: %2;
2-77
i:?i i-;i
-
2-79
2-79 2-81
“2::;
2-82 2-82
Contents-9
SYSTem:PRESet[:EXECute]
SYSTem:PRESet:SAVE
SYSTem:PRESet:TYPE . .
Query Syntax . . . . . .
SYSTem:SECurity:CLEar . SYSTem:SECurity:COUNt . SYSTem:SECurity:KLOCk . SYSTem:SECurity:ZERO . .
SYSTem:VERSion? . . . .
Trigger Subsystem . . . . . .
TRIGger[:IMMediate] . . .
TRIGger:SOURce . . . . .
Query Syntax . . . . . .
TSWeep
HP
3.
835OB
Introduction Data
Input Syntax Function Codes (Prefix Active) Numeric Value (Numeric Format) Numeric Terminators Valid Characters Instrument Preset
Output Data
Learn String Mode String Interrogate Function Active Function Status
Trigger
Input Programming Codes Clear Remote/Local Changes Service Request Status Byte Status Bit Pass Control Abort Interface Function Codes
HP 83750 Series Status Byte Descriptions
. . . . . . . . .
Compatibility Guide
....................
........................
...................
....................
...................
...................
..................
......................
.......................
.......................
...................
.....................
.....................
....................
.......................
. . . . . . . . . . . .
. . . . .
............
............
............
............
............
............
............
............
............
............
............
. . . . . . . . . . . .
...........
..........
...............
.................
.................
................
.............
................
...............
......
2-82
2-82
2-83 2-83 2-83 2-84 2-84 2-84 2-85 2-86 2-86
2-87 2-87 2-88
3-1
3-l
3-1 3-2 3-2 3-3 3-3 3-4 3-4 3-5
3-6 3-13 3-13 3-14 3-14 3-15 3-22 3-22 3-23 3-24
3-24 3-24 3-24 3-25 3-26
Contents-10
4. Error Messages
:ERRor?
SYSTem:ERRor The Error/Event Queue Error numbers No Error
SCPI Error Messages
Error Message Description
Example Error
Command Error
......................
Execution Error Device-Specific Error
Query
Instrument Specific Error Messages
Block Transfer Errors Bus Control Errors Parsing and Compatibility Errors Diagnostics and Self-Test Errors Internal Hardware Errors Hardware Configuration Errors Calibration Routine Errors Loops Unlocked Errors Miscellaneous Hardware Dependent Errors
Error
................
...............
...................
................
.............
.................
..................
..................
................
....................
.........
...............
................
..........
...........
..............
...........
.............
...............
......
4-3
4-4
4-5 4-5
4-6 4-6 4-6
4-8 4-14 4-20 4-22
4-24 4-24 4-25 4-26 4-29 4-33 4-33 4-34 4-36 4-37
5. SCPI Conformance Information
SCPI Conformance . . . . . . . . . . . . . . . . .
Index
5-3
Contents-l
1
Figures
l-l. SCPI Command Types
l-2.
A Simplified Command Tree
l-3.
Proper Use of the Colon and Semicolon
l-4. Simplified SWEep l-5. Voltage Controlled Oscillator Test l-6.
Simplified Program Message Syntax
l-7.
SCPI
l-8. Simpliiied l-9.
Simplified Response Message Syntax
l-10.
Generalized Status Register Model
l-11.
Typical Status Register Bit Changes
l-12.
Status Registers
l-
13. The TRIG Trigger Configuration
l-14. Simplified Trigger Model
2-l. Instrument Trigger Model
Simplified
Common Command Syntax
Command Tree
Subsystem Command Syntax
.....................
..................
.................
Tables
...............
..........
.............
.............
............
........
...........
............
.............
............
..............
................
l-20
l-21
l-23
l-24
l-33 l-37 l-38
l-39
l-40 l-69 l-71
l-78 l-81 l-82
2-34
l-l. Command Table
l-2.
SCPI Data Types
l-3.
Sample Sweeper Commands
2-l.
Interactions between Dwell, Sweep Time, and Points. _ _ _ . 2-2. HP 83750 SCPI Sweep Mode Programming Table 2-3. Sweeper Key Codes
5-l. SCPI Conformance
Contents-12
.....................
....................
...............
...................
....................
......
l-25 l-41 l-49
2-64 2-71 2-80
5-4
1
Getting Started
Programming

Getting Started Programming

HP-& the Hewlett-Packard Interface Bus, is the instrument-to-instrument
communication system between the sweeper and up to 14 other instruments. Any instrument having including non-HP instruments that have or
‘IEC-625” electricahy equivalent although
portion of the manual specifically describes interfacing the sweeper to a computer.
capability (these are common generic terms for
HP-II3
capability
W-625
can
be interfaced to the sweeper,
“GPIB,” “IEEE-488, ’
uses a unique connector). This
“ANSI
HP-E!;
MCl.
all are
1,”
The first part of this section provides general the Standard Commands for Programmable Instruments language
introduced, and example programs are given.
HP-LB
information. Later,
(SCPI)
is
l-2

HP-IB General Information

Interconnecting Cables

The Installation Guide shows the sweeper rear-panel and suitable cables, and describes the procedures and limitations for interconnecting instruments. Cable length restrictions, also described in the Installation Guide, must be observed to prevent transmission line propagation delays that might disrupt HP-IB timing cycles.
HIP-B
connector

Instrument Addresses

Each in.stnunent in an HP-IB network must have a unique address, an integer ranging in value from 0 to 30. The default address for the sweeper is 19, but this can be changed using the
(m) [m)
keys or rear panel switch.
1-3
Getting Started Programming
HP-IB General Information
Listener
Talker
Controller
HP-B
An HP-IB instrument is categorized as a ‘listener, n “talker, * or “controller,
Instrument Nomenclature
n
depending on its current function in the network.
A listener is a device capable of receiving data or commands from other instruments. Any number of instruments in the HP-IB network can be listeners simultaneously.
A talker is a device capable of transmitting data or commands to other instruments.
‘lb
avoid confusion, an HP-IB system
allows
only one device at a
time to be an active talker.
A controller is an instrument, typically a computer, capable of managing the various HP-IB activities. Only one device at a time can be an active controller

Programming the Sweeper

The sweeper can be controlled entirely by a computer (although the line POWER switch must be operated manually). Several functions are possible only by computer (remote) control. Computer programming procedures for the sweeper involve selecting an the
specific
sweeper (SCPI, Analyzer) programming codes to that statement to achieve the desired operating conditions. The programming codes can be categorized into two groups: Those that mimic front panel keystrokes; and those that are unique, and have no front panel equivalent.
HP-IE3
command statement, then adding
In the
progmmming
explanations that
follow,
specific examples are included that are written in a generic dialect of the BASIC language. BASIC was selected because the majority of HP-IB computers have BASIC language capability. However, other languages can also be used.
l-4
Getting Started Programming
HP-IB General
lnfomation
HP-II3
Command statements form the nucleus of understood by all mstruments in the network and, when combined with the
communication instructions for the system. An explanation of the eight fundamental command statements follows.
However, some computers use a slightly different terminology, or support an extended or enhanced version of these explanations as a starting point, but for detailed information consult the
BASIC language reference manual, the manual for the particular computer used.
Syntax drawings accompany each statement: All items enclosed by a circle or oval are computer specific terms that must be entered exactly as described;
items enclosed in a rectangular box are names of parameters used in the statement; and the arrows indicate a path that generates a valid combination of statement elements.
Command Statements
progmmming
language codes, they provide all management and data
HP-D
programming; they are
conunands.
I/O
programming guide, and the
Consider the following
HP-IB
l-5
Getting Started Programming
HP-IB General lnfomation

Remote

Remote causes an instrument to change from local control to remote control.
In remote control, the front panel keys are disabled (except for the
key and the POWER switch), and the REMOTE Annunciator is lighted. The
syntax is:
[E?Kj
Some BASIC examples
where the device selector is the address of the instrument appended to the
HP-E3
port number. Typically, the
HP-II3
port number is 7, and the default
address for the sweeper is 19, so the device selector is 719.
10
REMOTE7
which prepares
all HP-II3
instruments for remote operation (although
nothing appears to happen to the instruments until they are addressed to
talk), or
10
REMOTE719
which affects the HP-B instrument located at address 19, or
10
REMOTE719,
which effects four instruments that
721, 726, 715
have addresses
19, 21,
26,
and
15.
1-7
Getting Started Programming
HP-IB General Information
-

Local Lockout

Local Lockout can be used in conjunction with REMOTE to disable the front panel (LOCAL) key. With the hard reset by the POWER switch) can restore local control. The syntax is:
(ml
key disabled, only the controller (or a
A BASIC example
10
20
REMOTE
719
LOCALLOCKOUT
interface
sect -
code
w
Local is the complement to REMOTE, causing an instrument to return to local control with a fully enabled front panel. The syntax is:
Some BASIC examples
LOCAL 7
10
which effects all instruments in the network, or
LOCAL 719
10
for an addressed instrument (address 19).
l-8
Getting Started Programming
HP-IB General Information

output

Output is used to send function commands and data commands from the controller to the addressed instrument. The syntax is:
where USING is a secondary command that formats the output in a particular way, such as a binary or ASCII representation of numbers. The USING command is followed by “image items” that precisely define the format of the output; these image items can be a string of code characters, or a reference to a statement line in the computer program. Image items are explained in the
programming
codes where they are needed. Notice that this syntax
is
virtually identical to the syntax for the ENTER statement that follows.
l-10
Loading...
+ 249 hidden pages