Programming Guide
Agilent Technologies
83751A/B and 83752A/B Synthesized Sweeper
Part No. 83750-90005
Printed in USA
July 2001
Supersedes: March 1997
Serial Numbers.
This manual applies directly to instruments with serial prefix 3447A and below.
This manual also applies to firmware revision 2.0 and above. For firmware revisions below 2.0
contact your nearest Agilent Technologies service center for a firmware upgrade.
Notice.
The information contained in this document is subject to change without notice.
Agilent Technologies makes no warranty of any kind with regard to this material, including but
not limited to, the implied warranties of merchantability and fitness for a particular purpose.
Agilent Technologies 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 Agilent Technologies Inc.1993, 1997, 2001
All Rights Reserved. Reproduction, adaptation, or translation without prior written permission is
prohibited, except as allowed under the copyright laws.
1400 Fountaingrove Parkway, Santa Rosa, CA 95403-1799, USA
ii
Certication
Agilent T echnologies Inc. certies that this product met its published
specications at the time of shipment from the factory . Agilent T echnologies
further certies that its calibration measurements are traceable to the United
States National Institute of Standards and T echnology , t o the extent allowed
by the Institute's calibration facility , and to the calibration facilities of other
International Standards Organization members .
Regulatory Information.
The User's Guide contains ISO/IEC regulatory information.
SCPI Conformance Information is found in Chapter 5, \SCPI Conformance
Information."
iii
W arranty
This Agilent T echnologies instrument product is warranted against defects in
material and workmanship for a period of one year from date of shipment.
During the warranty period, Agilent T echnologies will, at its option, either
repair or replace products which prove to be defective .
F or warranty service or repair , this product must be returned to a service
facility designated by Agilent T echnologies . Buyer shall prepay shipping
charges Agilent T echnologies and Agilent T echnologies shall pay shipping
charges to return the product to Buyer . However , buyer shall pay all shipping
charges , duties , and taxes for products returned to Agilent T echnologies
from another country . Agilent T echnologies warrants that its software and
rmware designated by Agilent T echnologies for use with an instrument
will execute its programming instructions when properly installed on that
instrument. Agilent T echnologies does not warrant that the operation of the
instrument, or software , o r rmware will be uninterrupted or error-free .
Limit a tion of W arranty
The foregoing warranty shall not apply to defects resulting from improper
or inadequate maintenance by Buyer , Buyer-supplied software or
interfacing, unauthorized modication or misuse , operation outside of the
environmental specications for the product, or improper site preparation
or maintenance .
NO OTHER W ARRANTY IS EXPRESSED OR IMPLIED .A GILENT
TECHNOLOGIES SPECIFICALL Y DISCLAIMS THE IMPLIED W ARRANTIES
OF MERCHANT ABILITY AND FITNESS FOR A P ARTICULAR PURPOSE.
Ex clusive Remedies
THE REMEDIES PRO VIDED HEREIN ARE BUYER'S SOLE AND EXCLUSIVE
REMEDIES .A GILENT TECHNOLOGIES SHALL NOT BE LIABLE FOR
ANY DIRECT , INDIRECT , SPECIAL, INCIDENT AL, OR CONSEQUENTIAL
D AMA GES , WHETHER B ASED ON CONTRA CT , TORT , O R ANY OTHER
LEGAL THEORY .
iv
Assistance
Product maintenance agreements and other customer assistance agreements
are available for A gilent T echnologies products.
F or any assistance , contact your nearest A gilent T echnologies Sales and
Service Oce .
v
Safety Notes
The following safety notes are used throughout this manual. F amiliarize
yourself with each of the notes and its meaning before operating this
instrument.
The
caution
if not correctly performed or adhered to , could result in damage to or
destruction of the instrument. Do not proceed beyond a
the indicated conditions are fully understood and met.
The
warning
which, if not correctly performed or adhered to
loss of life . D o not proceed beyond a
conditions are fully understood and met.
note denotes a hazard. It calls attention to a procedure which,
caution
note denotes a hazard. It calls attention to a procedure
, could result in injury or
warning
note until the indicated
note until
Instruction
Manual
L
vi
The
instruction manual
for the user to refer to the instructions in the manual.
symbol. The product is marked with this symbol when it is necessary
General Safety Considerations
WAR N ING
WAR N ING
CAU TION
Before this instrument is switched on
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 . B e 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,
has been adapted to the voltage of the ac power source
F ailure to set the ac power input to the correct voltage could cause damage to
the instrument when the ac power cable is plugged in.
, make sure it has been properly
make sure its primary power circuitry
.
vii
How to Use This Guide
This guide uses the following conventions.
4
F ront-P anel Key
NNNNNNNNNNNNNNNNNNNNNNN
Softkey
Screen Text
5
This represents a key physically located on the instrument.
This indicates a \softkey ," a key whose label is determined
by the instrument's rmware .
This indicates text displayed on the instrument's screen.
viii
Contents
1. Getting Started Programming
GPIB General Information . . . . . . . . . . . . . .
In terconnecting Cables . . . . . . . . . . . . . . .
Instrumen t Addresses . . . . . . . . . . . . . . .
GPIB Instrumen t Nomenclature . . . . . . . . . . .
Listener . . . . . . . . . . . . . . . . . . . .
T alk er . . . . . . . . . . . . . . . . . . . . .
Con troller . . . . . . . . . . . . . . . . . . .
Programming the Sw eep er . . . . . . . . . . . . .
GPIB Command Statemen ts . . . . . . . . . . . .
Ab ort . . . . . . . . . . . . . . . . . . . . . .
Related statemen ts used b y some computers . . . .
Remote . . . . . . . . . . . . . . . . . . . . .
Some BASIC examples . . . . . . . . . . . . . .
Lo cal Lo c k out . . . . . . . . . . . . . . . . . . .
A BASIC example . . . . . . . . . . . . . . . .
Lo cal . . . . . . . . . . . . . . . . . . . . . .
Some BASIC examples . . . . . . . . . . . . . .
Clear . . . . . . . . . . . . . . . . . . . . . .
Some BASIC examples . . . . . . . . . . . . . .
Related statemen ts used b y some computers . . . .
Output . . . . . . . . . . . . . . . . . . . . . .
A BASIC example . . . . . . . . . . . . . . . .
Related statemen ts used b y some computers . . . .
En ter . . . . . . . . . . . . . . . . . . . . . .
Related statemen ts used b y some computers . . . .
Getting Started with SCPI . . . . . . . . . . . . . .
Denitions of T erms . . . . . . . . . . . . . . . . .
Standard Notation . . . . . . . . . . . . . . . . .
Command Mnemonics . . . . . . . . . . . . . .
Angle Brac k ets . . . . . . . . . . . . . . . . .
Ho w t o Use Examples . . . . . . . . . . . . . . .
Command Examples . . . . . . . . . . . . . . .
Resp onse Examples . . . . . . . . . . . . . . .
Essen tials for Beginners . . . . . . . . . . . . . . .
Program and Resp onse Messages . . . . . . . . . .
1-3
1-3
1-3
1-4
1-4
1-4
1-4
1-4
1-5
1-6
1-6
1-7
1-7
1-8
1-8
1-8
1-8
1-9
1-9
1-9
1-10
1-11
1-11
1-12
1-13
1-14
1-15
1-16
1-16
1-16
1-16
1-17
1-17
1-18
1-19
Contents-1
F orgiving Listening and Precise T alking . . . . . .
Types of Commands . . . . . . . ... .. .. .. 1-19
Subsystem Command T rees . . . . . . . . . . . . .
The Command T ree Structure . . . . . . . . . .
P aths Through the Command T ree . . . . . . . .
Subsystem Command T ables . . . . . . . . . . . .
Reading the Command T able . . . . . . . . . . .
More Ab out Commands . . . . . . . . . . . . . .
Query and Ev en t Commands . . . . . . . . . . .
Implied Commands . . . . . . . . . . . . . . .
Optional P arameters . . . . . . . . . . . . . . .
Program Message Examples . . . . . . . . . . . .
Example 1 . . . . . . . . . . . . . . . . . . .
Example 2 . . . . . . . . . . . . . . . . . . .
Example 3 . . . . . . . . . . . . . . . . . . .
Example 4 . . . . . . . . . . . . . . . . . . .
P arameter T yp es . . . . . . . . . . . . . . . . .
Numeric P arameters . . . . . . . . . . . . . . .
Extended Numeric P arameters . . . . . . . . . .
Discrete P arameters . . . . . . . . . . . . . . .
Bo olean P arameters . . . . . . . . . . . . . . .
Reading Instrumen t Errors . . . . . . . . . . . . .
Example Programs . . . . . . . . . . . . . . . .
Example Program . . . . . . . . . . . . . . . .
Program Commen ts . . . . . . . . . . . . . . .
Details of Commands and Resp onses . . . . . . . . . .
Program Message Syn tax . . . . . . . . . . . . . .
SCPI Subsystem Command Syn tax . . . . . . . . .
Common Command Syn tax . . . . . . . . . . . . .
Resp onse Message Syn tax . . . . . . . . . . . . .
SCPI Data T yp es . . . . . . . . . . . . . . . . .
P arameter T yp es . . . . . . . . . . . . . . . . .
Numeric P arameters . . . . . . . . . . . . . . .
Extended Numeric P arameters . . . . . . . . . .
Discrete P arameters . . . . . . . . . . . . . . .
Bo olean P arameters . . . . . . . . . . . . . . .
Resp onse Data T yp es . . . . . . . . . . . . . . .
Real Resp onse Data . . . . . . . . . . . . . . .
In teger Resp onse Data . . . . . . . . . . . . . .
Discrete Resp onse Data . . . . . . . . . . . . .
String Resp onse Data . . . . . . . . . . . . . .
1-19
1-21
1-21
1-21
1-24
1-25
1-26
1-26
1-26
1-26
1-27
1-27
1-27
1-28
1-28
1-29
1-29
1-30
1-31
1-31
1-32
1-33
1-33
1-35
1-36
1-37
1-38
1-39
1-40
1-41
1-42
1-42
1-43
1-44
1-44
1-45
1-45
1-45
1-46
1-46
Contents-2
Programming T ypical Measuremen ts . . . . . . . . . .
Using the Example Programs .. .. .. .. .. .. . 1-47
Use of the Command T ables . . . . . . . . . . . .
GPIB Chec k, Example Program 1 . . . . . . . . . .
Program Commen ts . . . . . . . . . . . . . . .
Lo cal Lo c k out Demonstration, Example Program 2 . .
Program Commen ts . . . . . . . . . . . . . . .
Setting Up A T ypical Sw eep, Example Program 3 . . .
Program Commen ts . . . . . . . . . . . . . . .
Queries, Example Program 4 . . . . . . . . . . . .
Program Commen ts . . . . . . . . . . . . . . .
Sa ving and Recalling States, Example Program 5 . . .
Program Commen ts . . . . . . . . . . . . . . .
Lo oping and Sync hronization, Example Program 6 . . .
Program Commen ts . . . . . . . . . . . . . . .
Using the *W AI Command, Example Program 7 . . .
Program Commen ts . . . . . . . . . . . . . . .
Using the User Flatness Correction Commands,
Example Program 8 . . . . . . . . . . . . . . . .
Programming the Status System . . . . . . . . . . .
General Status Register Mo del . . . . . . . . . . .
Condition Register . . . . . . . . . . . . . . .
T ransition Filter . . . . . . . . . . . . . . . .
Ev en t Register . . . . . . . . . . . . . . . . .
Enable Register . . . . . . . . . . . . . . . . .
An Example Sequence . . . . . . . . . . . . . .
83750 Series Status Register Mo del . . . . . . . . .
Syn thesized Sw eep er Status Groups . . . . . . . . .
The Status Byte Group . . . . . . . . . . . . .
The Standard Ev en t Status Group . . . . . . . . .
The Standard Op eration Status Group . . . . . . .
The Questionable Data Status Group . . . . . . .
Status Register System Programming Example . . .
Programming the T rigger System . . . . . . . . . . .
Generalized T rigger Mo del . . . . . . . . . . . . .
Description of T riggering in Sw eep ers . . . . . . . .
Adv anced T rigger Congurations . . . . . . . . .
T rigger Keyw ord Denitions . . . . . . . . . . . .
ABOR t . . . . . . . . . . . . . . . . . . . .
IMMediate . . . . . . . . . . . . . . . . . . .
SOURce . . . . . . . . . . . . . . . . . . . .
1-47
1-48
1-51
1-51
1-52
1-53
1-54
1-55
1-56
1-56
1-58
1-59
1-60
1-61
1-62
1-63
1-64
1-68
1-69
1-69
1-70
1-70
1-70
1-71
1-72
1-72
1-72
1-74
1-75
1-76
1-77
1-80
1-80
1-82
1-83
1-84
1-84
1-84
1-84
Contents-3
Related Do cumen ts . . . . . . . . . . . . . . . . .
2. Programming Commands
Command Syn tax . . . . . . . . . . . . . . . . . .
IEEE 488.2 Common Commands . . . . . . . . . . .
*CLS (Clear Status Command) . . . . . . . . . . .
*DMC (Dene Macro Command) . . . . . . . . . .
*EMC (Enable Macros Command) . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
*ESE (Standard Ev en t Status Enable Command) . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
*ESR? (Standard Ev en t Status Register Query) . . . .
*GMC? (Get Macro Con ten ts Query) . . . . . . . .
*IDN? (Iden tication Query) . . . . . . . . . . . .
*LMC? (List Macro Query) . . . . . . . . . . . . .
*LRN? (Learn Device Setup Query) . . . . . . . . .
*OPC (Op eration Complete Command) . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
*OPT? (Option Iden tication Query) . . . . . . . .
*PMC (Purge Macros Command) . . . . . . . . . .
*PSC (P o w er-On Status Clear Command) . . . . . .
Example . . . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
*R CL (Recall Command) . . . . . . . . . . . . . .
*RMC (Remo v e Macro Command) . . . . . . . . .
*RST (Reset Command) . . . . . . . . . . . . . .
*SA V (Sa v e Command) . . . . . . . . . . . . . .
*SRE (Service Request Enable Command) . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
*STB? (Read Status Byte Query) . . . . . . . . . .
*TR G( T rigger Command) . . . . . . . . . . . . .
*TST? (Self-T est Query) . . . . . . . . . . . . . .
*W AI (W ait-to-Con tin ue Command) . . . . . . . . .
Subsystem Commands . . . . . . . . . . . . . . . .
ABOR t . . . . . . . . . . . . . . . . . . . . .
AM:ST A T e . . . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
AM:SOURce . . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
Calibration Subsystem . . . . . . . . . . . . . . . .
CALibration:PEAKing . . . . . . . . . . . . . . .
1-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 Syn tax . . . . . . . . . . . . . . . . . .
CALibration:TRA C k .. .. .. .. .. .. .. .. .. 2-14
CALibration:PMET er:FLA Tness:INITiate? . . . . . .
CALibration:PMET er:FLA Tness:NEXT? . . . . . . .
Correction Subsystem . . . . . . . . . . . . . . . .
CORRection:FLA Tness:FREQ . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
CORRection:FLA Tness:AMPL . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
CORRection:FLA Tness:POINts? . . . . . . . . . .
CORRection[:ST A T e] . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
CORRection:V OL Ts:SCALe . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
CORRection:V OL Ts:OFFSet . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
Diagnostic Subsystem . . . . . . . . . . . . . . . .
DIA G:LRNS? . . . . . . . . . . . . . . . . . . .
DIA Gnostic:TEST:FULLtest? . . . . . . . . . . . .
DIA Gnostic:TEST:FULLtest:REP ort? . . . . . . . .
Displa y Subsystem . . . . . . . . . . . . . . . . .
DISPla y[:ST A T e] . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
FM Subsystem . . . . . . . . . . . . . . . . . . .
FM:COUPling . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
FM:ST A T e . . . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
FM:SENSitivit y . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
FM:SOURce . . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
F requency Subsystem . . . . . . . . . . . . . . . .
FREQuency:CENT er . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
Example 1 . . . . . . . . . . . . . . . . . . .
Example 2 . . . . . . . . . . . . . . . . . . .
Example 3 . . . . . . . . . . . . . . . . . . .
FREQuency[:CW j :FIXed] . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
2-14
2-15
2-15
2-16
2-16
2-16
2-17
2-17
2-17
2-18
2-18
2-18
2-18
2-19
2-19
2-20
2-20
2-20
2-21
2-22
2-22
2-22
2-23
2-23
2-23
2-23
2-23
2-24
2-24
2-24
2-24
2-25
2-25
2-25
2-26
2-26
2-26
2-27
2-27
Contents-5
FREQuency[:CW]:A UTO and
FREQuency[:FIXed]:A UTO . . . . . . . . . . .
Query Syntax .. .. ... .. .. .. .. .. .. 2-27
FREQuency:MANual . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
FREQuency:MODE . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
FREQuency:MUL Tiplier . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
FREQuency:MUL Tiplier:ST A T e. . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
FREQuency:OFFSet . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
FREQuency:OFFSet:ST A T e . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
FREQuency:SP AN . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
FREQuency:ST AR t . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
FREQuency:STEP[:INCRemen t] . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
FREQuency:STOP . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
T riggering in the Sw eep er . . . . . . . . . . . . . .
INITiate:CONTin uous . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
INITiate[:IMMediate] . . . . . . . . . . . . . . .
Mark er Subsystem . . . . . . . . . . . . . . . . . .
MARKer[n]:AMPLitude . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
MARKer[n]:A OFF . . . . . . . . . . . . . . . . .
MARKer[n]:FREQuency . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
MARKer[n]:MODE . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
MARKer[n]:REF erence . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
MARKer[n][:ST A T e] . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
Memory Subsystem . . . . . . . . . . . . . . . . .
MEMory:RAM:INITialize . . . . . . . . . . . . .
2-27
2-28
2-28
2-29
2-29
2-30
2-30
2-30
2-30
2-31
2-31
2-31
2-31
2-32
2-32
2-32
2-32
2-33
2-33
2-33
2-33
2-34
2-36
2-36
2-36
2-37
2-37
2-37
2-38
2-39
2-39
2-40
2-40
2-41
2-41
2-42
2-42
2-43
2-43
Contents-6
Output Subsystem . . . . . . . . . . . . . . . . . .
OUTPut:ST A T e .. .. .. .. .. .. .. .. .. .. 2-44
Query Syn tax . . . . . . . . . . . . . . . . . .
OUTPut:IMP edance? . . . . . . . . . . . . . . .
P o w er Subsystem . . . . . . . . . . . . . . . . . .
PO W er:ALC:CF A Ctor . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PO W er:ALC:SOURce . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PO W er:ALC[:ST A T e] . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PO W er:A TT en uation . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PO W er:A TT en uation:A UTO . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PO W er:CENT er . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PO W er[:LEV el] . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PO W er:MODE FIXed j SWEep . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PO W er:OFFSet . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PO W er:OFFSet:ST A T e. . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PO W er:SLOP e . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PO W er:SLOP e:ST A T e . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PO W er:SP AN . . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PO W er:ST AR t . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PO W er:ST A T e . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PO W er:STEP[:INCRemen t] . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PO W er:STOP . . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
Pulse Subsystem . . . . . . . . . . . . . . . . . .
PULSe:PERio d . . . . . . . . . . . . . . . . . .
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 Syn tax . . . . . . . . . . . . . . . . . .
PULSe:FREQuency .. .. .. .. .. .. .. .. .. 2-56
Query Syn tax . . . . . . . . . . . . . . . . . .
PULSe:WIDTh . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PULM:SOURce . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
PULM:ST A T e. . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
R OSCillator:SOURce . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
R OSCillator:SOURce:A UTO . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
Status Subsystem . . . . . . . . . . . . . . . . . .
ST A T us:OPERation:CONDition? . . . . . . . . . .
ST A T us:OPERation:ENABle . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
ST A T us:OPERation[:EVENt]? . . . . . . . . . . .
ST A T us:OPERation:NTRansition . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
ST A T us:OPERation:PTRansition . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
ST A TUS:PRESet . . . . . . . . . . . . . . . . .
ST A T us:QUEStionable:CONDition? . . . . . . . . .
ST A T us:QUEStionable:ENABle . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
ST A T us:QUEStionable[:EVENt]? . . . . . . . . . .
ST A T us:QUEStionable:NTRansition . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
ST A T us:QUEStionable:PTRansition . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
Sw eep Subsystem . . . . . . . . . . . . . . . . . .
SWEep:CONT rol:TYPE . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SWEep:D WELl . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SWEep:D WELl:A UTO . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SWEep:POINts . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SWEep:PO W er:STEP . . . . . . . . . . . . . . .
2-55
2-56
2-56
2-56
2-57
2-57
2-57
2-57
2-58
2-58
2-58
2-58
2-59
2-59
2-59
2-59
2-59
2-60
2-60
2-60
2-60
2-61
2-61
2-61
2-61
2-62
2-62
2-62
2-63
2-63
2-64
2-64
2-64
2-65
2-65
2-65
2-65
2-66
2-66
2-67
Contents-8
Query Syn tax . . . . . . . . . . . . . . . . . .
SWEep[:FREQuency]:STEP .. .. .. .. .. .. .. 2-68
Query Syn tax . . . . . . . . . . . . . . . . . .
SWEep:TIME . . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SWEep:TIME:A UTO . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SWEep:TIME:LLIMit . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SWEep:GENeration . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SWEep:MODE . . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SWEep:MANual[:RELativ e] . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SWEep:MANual:POINt . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SWEep:MARKer:ST A T e . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SWEep:MARKer:XFER . . . . . . . . . . . . . .
SWEep[:POINts]:TRIGger:SOURce . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SWEep:POINts:TRIGger: . . . . . . . . . . . . .
System Subsystem . . . . . . . . . . . . . . . . . .
SYST em:AL T ernate . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SYST em:AL T ernate:ST A T e. . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SYST em:COMMunicate:GPIB:ADDRess . . . . . . .
SYST em:COMMunicate:PMET er:ADDRess . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SYST em:COMMunicate:PMET er:TYPE . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SYST em:ERRor? . . . . . . . . . . . . . . . . .
SYST em:KEY[:CODE] . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SYST em:KEY:DISable . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SYST em:KEY:ENABle . . . . . . . . . . . . . . .
SYST em:LANGuage . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
2-67
2-68
2-69
2-69
2-70
2-70
2-70
2-70
2-72
2-72
2-72
2-72
2-73
2-73
2-73
2-73
2-74
2-74
2-74
2-75
2-75
2-75
2-76
2-76
2-76
2-76
2-76
2-77
2-77
2-77
2-78
2-78
2-78
2-79
2-79
2-81
2-81
2-81
2-82
2-82
Contents-9
SYST em:PRESet[:EXECute] . . . . . . . . . . . .
SY ST em:PRESet:S A V E .. .. .. .. .. .. .. .. . 2-82
SYST em:PRESet:TYPE . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
SYST em:SECurit y:CLEar . . . . . . . . . . . . .
SYST em:SECurit y:COUNt . . . . . . . . . . . . .
SYST em:SECurit y:KLOCk . . . . . . . . . . . . .
SYST em:SECurit y:ZER O. . . . . . . . . . . . . .
SYST em:VERSion? . . . . . . . . . . . . . . . .
T rigger Subsystem . . . . . . . . . . . . . . . . . .
TRIGger[:IMMediate] . . . . . . . . . . . . . . .
TRIGger:SOURce . . . . . . . . . . . . . . . . .
Query Syn tax . . . . . . . . . . . . . . . . . .
TSW eep . . . . . . . . . . . . . . . . . . . . .
3. 8350B Compatibility Guide
In tro duction . . . . . . . . . . . . . . . . . . . .
Data . . . . . . . . . . . . . . . . . . . . . . . .
Input Syn tax . . . . . . . . . . . . . . . . . . .
F unction Co des (Prex Activ e) . . . . . . . . . . .
Numeric V alue (Numeric F ormat) . . . . . . . . . .
Numeric T erminators . . . . . . . . . . . . . . .
V alid Characters . . . . . . . . . . . . . . . . .
Instrumen t Preset . . . . . . . . . . . . . . . . .
Output Data . . . . . . . . . . . . . . . . . . . .
Learn String . . . . . . . . . . . . . . . . . . .
Mo de String . . . . . . . . . . . . . . . . . . .
In terrogate F unction . . . . . . . . . . . . . . . .
Activ eF unction . . . . . . . . . . . . . . . . . .
Status . . . . . . . . . . . . . . . . . . . . . .
T rigger . . . . . . . . . . . . . . . . . . . . . . .
Input Programming Co des . . . . . . . . . . . . .
Clear . . . . . . . . . . . . . . . . . . . . . . .
Remote/Lo cal Changes . . . . . . . . . . . . . . . .
Service Request . . . . . . . . . . . . . . . . . . .
Status Byte . . . . . . . . . . . . . . . . . . . . .
Status Bit . . . . . . . . . . . . . . . . . . . . .
P ass Con trol . . . . . . . . . . . . . . . . . . . .
Ab ort . . . . . . . . . . . . . . . . . . . . . . .
In terface F unction Co des . . . . . . . . . . . . . . .
83750 Series Status Byte Descriptions . . . . . . . .
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-1
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? SYST em:ERRor
The Error/Event Queue
Error numbers
No Error
.. .. .. .. .. .. .. .. .. .. .. 4-5
.. .. ... .. .. .. .. . 4-3
.. .. .. .. .. .. .. . 4-4
... .. .. .. .. .. .. .. .. 4-5
SCPI Error Messages . . . . . . . . . . . . . . . .
Error Message Description . . . . . . . . . . . . .
Example Error . . . . . . . . . . . . . . . . .
Command Error . . . . . . . . . . . . . . . . . .
Execution Error
Device-Specic Error
Query Error
.. .. .. .. .. .. .. .. .. 4-14
.. .. .. .. .. .. .. .. 4-20
. . . . . . . ... .. .. .. .. .. 4-22
Instrumen t S p ecic Error Messages . . . . . . . . .
Blo c kT ransfer Errors . . . . . . . . . . . . . . .
Bus Con trol Errors . . . . . . . . . . . . . . . .
P arsing and Compatibilit y Errors . . . . . . . . . .
Diagnostics and Self-T est Errors . . . . . . . . . . .
In ternal Hardw are Errors . . . . . . . . . . . . . .
Hardw are Conguration Errors . . . . . . . . . . .
Calibration Routine Errors . . . . . . . . . . . . .
Lo ops Unlo c k ed Errors . . . . . . . . . . . . . . .
Miscellaneous Hardw are Dep enden t Errors . . . . . .
5. SCPI Conformance Information
SCPI Conformance . . . . . . . . . . . . . . . . .
4-6
4-6
4-6
4-8
4-24
4-24
4-25
4-26
4-29
4-33
4-33
4-34
4-36
4-37
5-3
Index
Contents-11
Figures
1-1. SCPI Command Types . . . . . . . . . . . . . . . . . . 1-20
1-2. A Simplied Command Tree .. .. .. .. .. .. .. . 1-21
1-3. Proper Use of the Colon and Semicolon .. .. .. .. .. 1-23
1-4. Simplied SWEep Command Tree . . . . . . . . . . . . . 1-24
1-5. V oltage Controlled Oscillator T est .. ... .. .. .. .. 1-33
1-6. Simplied Program Message Syntax .. .. .. .. .. .. 1-37
1-7. SCPI Simplied Subsystem Command Syntax . . . . . . . . 1-38
1-8. Simplied Common Command Syntax . . . . . . . . . . . 1-39
1-9. Simplied Response Message Syntax . . . . . . . . . . . . 1-40
1-10. Generalized Status Register Model . . . . . . . . . . . . . 1-69
1-11. Typical Status Register Bit Changes . . . . . . . . . . . .
1-12. Status Registers . . . . . . . . . . . . . . . . . . . . .
1-13. The TRIG Trigger Conguration . . . . . . . . . . . . . .
1-14. Simplied Trigger Model .. .. .. .. .. .. .. .. .
2-1. Instrument Trigger Model .. .. .. .. .. .. .. ..
1-71
1-78
1-81
1-82
2-34
T ables
1-1. Command T able . . . . . . . . . . . . . . . . . . . . . 1-25
1-2. SCPI Data Types . ... .. .. .. .. .. .. .. .. 1-41
1-3. Sample Sweeper Commands .. .. .. .. .. .. .. .
2-1. Interactions between Dwell, Sweep Time , and P oints .. . . . 2-64
2-2. 83750 SCPI Sweep Mode Programming T able . . . . . . . .
2-3. Sweeper K ey Codes .. .. .. .. .. .. .. .. .. .
5-1. SCPI Conformance . . . . . . . . . . . . . . . . . . . .
Contents-12
1-49
2-71
2-80
5-4
1
Getting Started
Programming
Getting Started Programming
GPIB , the Generic Interface Bus , i s the instrument-to-instrument
communication system between the sweeper and up to 14 other instruments .
Any instrument having GPIB capability can be interfaced to the sweeper ,
including non-Agilent instruments that have \GPIB ," \IEEE-488," \ANSI
MC1.1," or \IEC-625" capability (these are common generic terms for GPIB;
all are electrically equivalent although IEC-625 uses a unique connector).
This portion of the manual specically describes interfacing the sweeper to a
computer .
The rst part of this section provides general GPIB information. Later , the
Standard Commands for Programmable Instruments language (SCPI) is
introduced, and example programs are given.
1-2
GPIB General Information
Interconnecting Cables
The Installation Guide shows the sweeper rear-panel GPIB connector
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 GPIB timing cycles .
Instrument A ddresses
Each instrument in an GPIB network must have a unique address
ranging in value from 0 t o 30. The default address for the sweeper is 19, but
this can be changed using the
4
SHIFT 54 LOCAL
5
keys or rear panel switch.
, a n integer
1-3
Getting Started Programming
GPIB General Information
GPIB Instrument Nomenclature
An GPIB instrument is categorized as a \listener ," \talker ," or \controller ,"
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 GPIB network can be
listeners simultaneously .
A talker is a device capable of transmitting data or commands to other
instruments .T o avoid confusion, an GPIB 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 GPIB 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
PO WER switch must be operated manually). Several functions are possible
only by computer (remote) control. Computer programming procedures for
the sweeper involve selecting an GPIB command statement, then adding the
specic 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.
In the programming explanations that follow , specic examples are included
that are written in a generic dialect of the B
selected because the majority of GPIB computers have B
capability . However , other languages can also be used.
1-4
ASIC language .B ASIC was
ASIC language
Getting Started Programming
GPIB General Information
GPIB Command Statements
Command statements form the nucleus of GPIB programming; they are
understood by all instruments in the network and, when combined with
the programming language codes , they provide all management and data
communication instructions for the system.
An explanation of the
However , some computers use a slightly dierent terminology , o r support an
extended or enhanced version of these commands . Consider the following
explanations as a starting point, but for detailed information consult the
B ASIC language reference manual, the I/O programming guide , and the GPIB
manual for the particular computer used.
Syntax drawings accompany each statement: All items enclosed by a circle or
oval are computer specic 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 .
eight fundamental command statements
follows .
1-5
Getting Started Programming
GPIB General Information
Abort
Abort abruptly terminates all listener/talker activity on the interface bus ,
and prepares all instruments to receive a new command from the controller .
Typically , this is an initialization command used to place the bus in a known
starting condition. The syntax is:
where the interface select code is the computer's GPIB I/O port, which is
typically port 7. Some B ASIC examples:
10 ABORT 7
100 IF V>20 THEN ABORT 7
ABORTIO (used by HP-80 series computers)
HAL T
RESET
1-6
Getting Started Programming
GPIB General Information
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 PO WER switch), and the REMOTE annunciator is lighted. The
syntax is:
where the device selector is the address of the instrument appended to the
GPIB port number . Typically , the GPIB port number is 7, and the default
address for the sweeper is 19, so the device selector is 719.
4
LOCAL
5
Some BASIC examples
10 REMOTE 7
which prepares all GPIB instruments for remote operation (although
nothing appears to happen to the instruments until they are addressed to
talk), or
10 REMOTE 719
which aects the GPIB instrument located at address 19, or
10 REMOTE 719, 721, 726, 715
which eects four instruments that have addresses 19, 21, 26, and 15.
1-7
Getting Started Programming
GPIB General Information
Local Lockout
Local Lockout can be used in conjunction with REMOTE to disable the front
panel
4
5
LOCAL
hard reset by the PO WER switch) can restore local control. The syntax is:
10 REMOTE 719
20 LOCAL LOCKOUT 7
key . With the
4
LOCAL
5
key disabled, only the controller (or a
Local
Local is the complement to REMOTE, causing an instrument to return to local
control with a fully enabled front panel. The syntax is:
10 LOCAL 7
which eects all instruments in the network, or
10 LOCAL 719
for an addressed instrument (address 19).
1-8
Getting Started Programming
GPIB General Information
Clear
Clear causes all GPIB instruments , o r addressed instruments , t o assume a
\cleared" condition, with the denition of \cleared" being unique for each
device .F or the sweeper:
1. All pending output-parameter operations are halted.
2. The parser (the software that interprets the programming codes) is reset,
and now expects to receive the rst character of a programming code .
The syntax is:
Some BASIC examples
Related statements used
b y some computers
10 CLEAR 7
to clear all GPIB instruments ,o r
10 CLEAR 719
to clear an addressed instrument.
RESET
CONTROL
SEND
The preceding statements are primarily management commands that do not
incorporate programming codes . The following two statements do incorporate
programming codes , and are used for data communication.
1-9
Getting Started Programming
GPIB 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
command is followed by \image items" that precisely dene the format of the
output; these image items can be a string of code characters
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 .
1-10
. The USING
, o r a reference