Agilent 83751A Programming Guide

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
Certication
Agilent Technologies Inc. certies that this product met its published
specications at the time of shipment from the factory. Agilent Technologies
further certies 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.
The User's Guide contains ISO/IEC regulatory information.
SCPI Conformance Information is found in Chapter 5, \SCPI Conformance
Information."
iii
Warranty
This Agilent Technologies 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 Technologies 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 Agilent Technologies. Buyer shall prepay shipping
charges Agilent Technologies and Agilent Technologies 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 Technologies
from another country. Agilent Technologies warrants that its software and
rmware designated by Agilent Technologies for use with an instrument
will execute its programming instructions when properly installed on that
instrument. Agilent Technologies does not warrant that the operation of the
instrument, or software, or rmware will be uninterrupted or error-free.
Limitation of Warranty
The foregoing warranty shall not apply to defects resulting from improper
or inadequate maintenance by Buyer, Buyer-supplied software or
interfacing, unauthorized modication or misuse, operation outside of the
environmental specications for the product, or improper site preparation
or maintenance.
NO OTHER WARRANTY IS EXPRESSED OR IMPLIED.AGILENT
TECHNOLOGIES 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.AGILENT TECHNOLOGIES SHALL NOT BE LIABLE FOR
ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER BASED ON CONTRACT, TORT, OR ANY OTHER
LEGAL THEORY.
iv
Assistance
Product maintenance agreements and other customer assistance agreements
are available for Agilent Technologies products.
For any assistance, contact your nearest Agilent Technologies Sales and
Service Oce.
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.
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. Do 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
WARNING
WARNING
CAUTION
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. 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,
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.
, 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
Front-Panel 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 . . . . . . . . . . . . . .
Interconnecting Cables . . . . . . . . . . . . . . .
Instrument Addresses . . . . . . . . . . . . . . .
GPIB Instrument Nomenclature . . . . . . . . . . .
Listener . . . . . . . . . . . . . . . . . . . .
Talker . . . . . . . . . . . . . . . . . . . . .
Controller . . . . . . . . . . . . . . . . . . .
Programming the Sweeper . . . . . . . . . . . . .
GPIB Command Statements . . . . . . . . . . . .
Abort . . . . . . . . . . . . . . . . . . . . . .
Related statements used by some computers . . . .
Remote . . . . . . . . . . . . . . . . . . . . .
Some BASIC examples . . . . . . . . . . . . . .
Local Lo ckout . . . . . . . . . . . . . . . . . . .
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 . . . . . . . . . . . . . .
Denitions of Terms . . . . . . . . . . . . . . . . .
Standard Notation . . . . . . . . . . . . . . . . .
Command Mnemonics . . . . . . . . . . . . . .
Angle Brackets . . . . . . . . . . . . . . . . .
How to Use Examples . . . . . . . . . . . . . . .
Command Examples . . . . . . . . . . . . . . .
Response Examples . . . . . . . . . . . . . . .
Essentials for Beginners . . . . . . . . . . . . . . .
Program and Response 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
Forgiving Listening and Precise Talking . . . . . .
Types of Commands ................ 1-19
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 Resp onses . . . . . . . . . .
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
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 Typical Measurements . . . . . . . . . .
Using the Example Programs .... ...... ... 1-47
Use of the Command Tables . . . . . . . . . . . .
GPIB Check, Example Program 1 . . . . . . . . . .
Program Comments . . . . . . . . . . . . . . .
Local Lo ckout Demonstration, Example Program 2 . .
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 *WAI Command, Example Program 7 . . .
Program Comments . . . . . . . . . . . . . . .
Using the User Flatness Correction Commands,
Example Program 8 . . . . . . . . . . . . . . . .
Programming the Status System . . . . . . . . . . .
General Status Register Model . . . . . . . . . . .
Condition Register . . . . . . . . . . . . . . .
Transition Filter . . . . . . . . . . . . . . . .
Event Register . . . . . . . . . . . . . . . . .
Enable Register . . . . . . . . . . . . . . . . .
An Example Sequence . . . . . . . . . . . . . .
83750 Series Status Register Mo del . . . . . . . . .
Synthesized Sweeper Status Groups . . . . . . . . .
The Status Byte Group . . . . . . . . . . . . .
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 Mo del . . . . . . . . . . . . .
Description of Triggering in Sweepers . . . . . . . .
Advanced Trigger Congurations . . . . . . . . .
Trigger Keyword Denitions . . . . . . . . . . . .
ABORt . . . . . . . . . . . . . . . . . . . .
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 Documents . . . . . . . . . . . . . . . . .
2. Programming Commands
Command Syntax . . . . . . . . . . . . . . . . . .
IEEE 488.2 Common Commands . . . . . . . . . . .
*CLS (Clear Status Command) . . . . . . . . . . .
*DMC (Dene 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? (Identication Query) . . . . . . . . . . . .
*LMC? (List Macro Query) . . . . . . . . . . . . .
*LRN? (Learn Device Setup Query) . . . . . . . . .
*OPC (Operation Complete Command) . . . . . . .
Query Syntax . . . . . . . . . . . . . . . . . .
*OPT? (Option Identication 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) . . . . . . . . . . . . . .
*WAI (Wait-to-Continue Command) . . . . . . . . .
Subsystem Commands . . . . . . . . . . . . . . . .
ABORt . . . . . . . . . . . . . . . . . . . . .
AM:STATe . . . . . . . . . . . . . . . . . . . .
Query Syntax . . . . . . . . . . . . . . . . . .
AM:SOURce . . . . . . . . . . . . . . . . . . .
Query Syntax . . . . . . . . . . . . . . . . . .
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 Syntax . . . . . . . . . . . . . . . . . .
CALibration:TRACk.. ........ ...... .. 2-14
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[:CWj:FIXed] . . . . . . . . . . . . .
Query Syntax . . . . . . . . . . . . . . . . . .
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]:AUTO and
FREQuency[:FIXed]:AUTO . . . . . . . . . . .
Query Syntax ................... 2-27
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 . . . . . . . . . . . . . .
INITiate: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-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:STATe .................... 2-44
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 FIXedjSWEep . . . . . . . . . . .
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:PERiod . . . . . . . . . . . . . . . . . .
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 ...... ...... ...... 2-56
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-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 Syntax . . . . . . . . . . . . . . . . . .
SWEep[:FREQuency]:STEP .............. 2-68
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:MANual[: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 . . . . . . . . . . . . . . . . . .
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
SYSTem:PRESet[:EXECute] . . . . . . . . . . . .
SYSTem:PRESet:SAVE.... ...... ....... 2-82
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 . . . . . . . . . . . . . . . . . . . . .
3. 8350B Compatibility Guide
Introduction . . . . . . . . . . . . . . . . . . . .
Data . . . . . . . . . . . . . . . . . . . . . . . .
Input Syntax . . . . . . . . . . . . . . . . . . .
Function Co des (Prex Active) . . . . . . . . . . .
Numeric Value (Numeric Format) . . . . . . . . . .
Numeric Terminators . . . . . . . . . . . . . . .
Valid Characters . . . . . . . . . . . . . . . . .
Instrument Preset . . . . . . . . . . . . . . . . .
Output Data . . . . . . . . . . . . . . . . . . . .
Learn String . . . . . . . . . . . . . . . . . . .
Mode String . . . . . . . . . . . . . . . . . . .
Interrogate Function . . . . . . . . . . . . . . . .
ActiveFunction . . . . . . . . . . . . . . . . . .
Status . . . . . . . . . . . . . . . . . . . . . .
Trigger . . . . . . . . . . . . . . . . . . . . . . .
Input Programming Codes . . . . . . . . . . . . .
Clear . . . . . . . . . . . . . . . . . . . . . . .
Remote/Local Changes . . . . . . . . . . . . . . . .
Service Request . . . . . . . . . . . . . . . . . . .
Status Byte . . . . . . . . . . . . . . . . . . . . .
Status Bit . . . . . . . . . . . . . . . . . . . . .
Pass Control . . . . . . . . . . . . . . . . . . . .
Abort . . . . . . . . . . . . . . . . . . . . . . .
Interface Function 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? SYSTem: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-Specic Error
Query Error
.................. 4-14
...... ...... .... 4-20
.................... 4-22
Instrument Specic Error Messages . . . . . . . . .
BlockTransfer Errors . . . . . . . . . . . . . . .
Bus Control Errors . . . . . . . . . . . . . . . .
Parsing and Compatibility Errors . . . . . . . . . .
Diagnostics and Self-Test Errors . . . . . . . . . . .
Internal Hardware Errors . . . . . . . . . . . . . .
Hardware Conguration Errors . . . . . . . . . . .
Calibration Routine Errors . . . . . . . . . . . . .
Loops Unlocked Errors . . . . . . . . . . . . . . .
Miscellaneous Hardware Dependent 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 Simplied Command Tree ...... ...... ... 1-21
1-3. Proper Use of the Colon and Semicolon .... ...... 1-23
1-4. Simplied SWEep Command Tree . . . . . . . . . . . . . 1-24
1-5. Voltage Controlled Oscillator Test ............. 1-33
1-6. Simplied Program Message Syntax ...... ...... 1-37
1-7. SCPI Simplied Subsystem Command Syntax . . . . . . . . 1-38
1-8. Simplied Common Command Syntax . . . . . . . . . . . 1-39
1-9. Simplied 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 Conguration . . . . . . . . . . . . . .
1-14. Simplied Trigger Model .. ...... ...... ...
2-1. Instrument Trigger Model .. ........ ......
1-71
1-78
1-81
1-82
2-34
Tables
1-1. Command Table . . . . . . . . . . . . . . . . . . . . . 1-25
1-2. SCPI Data Types .................... 1-41
1-3. Sample Sweeper Commands ...... ...... ...
2-1. Interactions between Dwell, Sweep Time, and Points..... 2-64
2-2. 83750 SCPI Sweep Mode Programming Table . . . . . . . .
2-3. Sweeper Key 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, is 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 specically 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 Addresses
Each instrument in an GPIB network must have a unique address
ranging in value from 0 to 30. The default address for the sweeper is 19, but
this can be changed using the
4
SHIFT54LOCAL
5
keys or rear panel switch.
, an 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.To 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
POWER 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
specic 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, specic 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.BASIC 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 dierent terminology, or support an
extended or enhanced version of these commands. Consider the following
explanations as a starting point, but for detailed information consult the
BASIC 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 specic 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 BASIC examples:
10 ABORT 7
100 IF V>20 THEN ABORT 7
ABORTIO (used by HP-80 series computers)
HALT
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 POWER 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 aects the GPIB instrument located at address 19, or
10 REMOTE 719, 721, 726, 715
which eects 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 POWER 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 eects 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, or addressed instruments, to assume a
\cleared" condition, with the denition of \cleared" being unique for each
device.For 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
by some computers
10 CLEAR 7
to clear all GPIB instruments,or
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 dene 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
, or a reference
Loading...
+ 249 hidden pages