Agilent Part No. 08703- 90 20 2
Printed in USA
July 2001
Agilent Technologies
Lightwave Division
3910 Brickway BoulevardSanta
Rosa, CA 95403, USA
Notice.
The information contained in
this document is subject to
change without notice. Companies, names, and data used in
examples herein are fictitious
unless otherwise noted. 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.
Restricted Rights Legend.
Use, duplication, or disclosure
by the U.S. Government is subject to restrictions as set forth
in subparagrap h (c) (1 ) (i i) of
the Rights in Technical Data
and Computer Software clause
at DFARS 252.227-7013 for
DOD agencies, and subparagraphs (c) (1) and (c) (2) of
the Commercial Computer
Software Restricted Rights
clause at FAR 52.227-19 for
other agencies.
Warranty.
This Agilent Technologies
instrument product is warranted against defects in material and workmanship for a
period of one yea r fro m 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
to 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 firmware
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 firmware 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 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. 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.
Safety Symbols.
CAUTION
The caution sign denotes a
hazard. It calls attention to a
procedure which, if not correctly performed or adhered
to, could result in damage to or
destruction of the product. Do
not proceed beyond a caution
sign until the indicated conditions are fully understood and
met.
WARNING
The warning sign denotes a
hazard. It calls attention to a
procedure which, if not correctly performed or adhered
to, could result in injury or loss
of life. Do not proceed beyond
a warning sign until the indicated conditions are fully
understood and met.
The instruction manual symbol. The product is marked with this
warning symbol when
it is necessary for the
user to refer to the
instructions in the
manual.
The laser radiation
symbol. This warning
symbol is marked on
products which have a
laser output.
The AC symbol is used
to indicate the required
nature of the line module input power.
| The ON symbols are
used to mark the positions of the instrument
power line switch.
❍ The OFF symbols
are used to mark the
positions of the instrument power line
switch.
The CE mark is a registered trademark of the
European Community.
The CSA mark is a registered trademar k of
the Canadian Standards Association.
The C-Tick mark is a
registered trademark of
the Australian Spectrum Management
Agency.
This text denotes the
ISM1-A
instrument is an Industrial Scientific and
Medical Group 1 Class
A product.
Typographi ca l C on ve nt io ns .
The following conventions are
used in this book:
Keytype for keys or text lo cated
on the keyboard or ins tr ume nt.
Softkeytype for key names that
are displayed on the instrument’s screen.
Displaytype for words or
characters displayed on the
computer’s screen or instrument’s display.
Usertype for words or charac-
ters that you type or enter.
Emphasis type for words or
characters that emphasize
some point or that are used as
place holders for text that you
type.
2
Page 3
Contents
1.Alphabetical Command Reference
Alphabetical Command Reference 1-2
Symbol Conventions 1-3
Keys to Programming Commands 1-4
Programming Commands 1-15
PAUS 1-56
8703A Commands Not Supported in the 8703B 1-79
2.Command Listings
Alphabetical List of Commands 2-2
OPC-Compatible List of Commands 2-4
3.Introduction to Instrument Control
Introduction to Instrument Control 3-2
Instrument Control using the VXIplug&play Driver 3-3
Instrument Control using HP BASIC 3-9
Data Processing Chain 6-2
Data Arrays 6-2
Common Output Commands 6-3
Fast Data Transfer Commands 6-4
Data Levels 6-4
Learnstring and Calibration-Kit String 6-5
7.Error Reporting
Error Reporting 7-2
Contents-1
Page 4
Contents
Status Reporting 7-3
The Status Byte 7-6
The Event-Status Register and Event-Status Registers B and L 7-7
Error Output 7-8
Error Messages in Numerical Order 7-9
8.Programming Examples
Example Programs 8-2
Measurement Process 8-3
Programming Examples 8-5
Measurement Setup Examples 8-9
Measurement Calibration Examples 8-26
Measurement Data Transfer Examples 8-63
Measurement Process Synchronization Examples 8-74
Analyzer System Setup Examples 8-84
List-Frequency and Limit-Test Table Examples 8-92
Report Generation Examples 8-106
Limit Line and Data Point Special Functions 8-125
9.Preset State and Memory Allocation
Preset State and Memory Allocation 9-2
Preset State 9-3
Memory Allocation 9-13
Contents-2
Page 5
1
Alphabetical Command Reference1-2
Keys to Programming Commands1-4
Programming Commands1-15
8703A Commands Not Supported in the 8703B1-79
In this chapter, you can find an alphabetical list and brief descriptions of the supported
commands for controlling the Agilent 8703B remotely.
NOTESome commands have a range of values associated with them. If you send a
value that is beyond the analyzer’s capability, the analyzer will default to the
closest allowed value. Refer to the individual commands for the specific range
of values allowed.
1-2
Page 7
Alphabetical Command Reference
Symbol Conventions
Symbol Conventions
<num> Required numerical data.
<choice1|choice2|…|choicen> An appendage that is part of the command. For example,
FORMAT<DOS|LIF> indicates that the actual commands are
FORMATDOS and FORMATLIF.
<$> Indicates a character string operand which must be
enclosed by double quotes.
| An either/or choice in an appendage or optional data.
[ ] Optional data.
A terminator indicates the end of a command string, and this manual uses a semicolon as the
terminator in all syntax examples. The analyzer also interprets line feeds and GPIB end or
identify (EOI) messages as terminators.
Terminators are not necessary for the analyzer to interpret commands correctly, however in
the case of a syntax error, the analyzer will attempt to recover at the next terminator.
Therefore, it is recommended that you conclude each command with a terminator.
Because this chapter is an “Alphabetical Command Reference,” the commands have been
listed alphabetically, rather than by function, in both the “Syntax” sections and the
“Description ” sections. Therefore, commands grouped together in the “Syntax” sections, are
grouped alphabetically and/or due to common syntax form, not necessarily due to common
functionality.
The softkeys listed in the “Front Panel Equivalents” tables may not be in the first menu
viewed when the associated hardkey is pressed. In many cases, more than one key press will
be required to locate the softkey. Refer to your analyzer’s reference guide for the exact
location of any softkey.
Some commands that do not have an associated query syntax can be queried by sending the
command (without a value) and then sending the OUTPACTI command, as in the following
example that queries the segment power value:
10 OUTPUT 716;”SEGPOWER;OUTPACTI;”
Many of the commands that do have a listed query syntax can also be queried in this manner.
1-3
Page 8
Alphabetical Command Reference
Keys to Programming Commands
SMOOTHING ON OFFSMOOO <ON|OFF>
CalISOLATIONISOL
CalALTERNATE A and BALTAB
CalALTERNATE RFL/TRANALTAB
CalCORRECTION ON OFFCORR
CalDEFINE STANDARDDEFS
CalDONE 1-PORT CALSAV1
CalDONE 2-PORT CALSAV2
CalDONE RESP ISOL’N CALRAID
CalDONE:DONE
CalDONE:RESPDONE
CalEXTENSION PORT 1PORT1
CalEXTENSION PORT 2PORT2
CalEXTENSIONS ON OFFPORE
CalFULL 2-PORTCALIFUL2
CalFWD ISOL’NFWDI
CalFWD MA TCHFWDM
CalFWD TRA NSFWDT
CalINTERPOL ON OFFCORI
CalISO L’N STDRAIISOL
CalISOLATION DONEISOD
CalMAXIMUM FREQUENCYMAXF
CalOMIT ISOLATIONOMII
1-4
Page 9
Alphabetical Command Reference
Keys to Programming Commands
Table 1-1. Front Panel Equivalents (2 of 11)
HardkeySoftkeyCommand
CalREFLECTIONREFL
CalRESPONSECALIRESP
CalRESPONSERAIRESP
CalRESPON SE & IS OL’NCALIRAI
CalRespons e & Match (E/O)CA LIEORM
CalResponse & Match (O/E)CALIOERM
CalResponse & Match: DoneRAMD
CalRESUME CA L SEQUENCERESC
CalREV ISOL’NREVI
CalREV MATCHREVM
CalREV TRAN SREVT
CalS11 1-PORTCALIS111
CalS11ACLASS11A
CalS11BCLASS11B
CalS11CCLASS11C
CalS22 1-PORTCALIS221
CalS22ACLASS22A
CalS22ACLASS22B
CalS22ACLASS22C
CalSET Z0SETZ
CalSLIDING LOAD DONESLID
CalSPECIFY CLASS DONECLAD
Calstandard listed under softkey 1STANA
Calstandard listed under softkey 2STANB
Calstandard listed under softkey 3STANC
Calstandard listed under softkey 4STAND
Calstandard listed under softkey 5STANE
Calstandard listed under softkey 6STANF
Calstandard listed under softkey 7STANG
CalSTANDARDS DONEREFD
CalSTANDARDS DONETRAD
1-5
Page 10
Alphabetical Command Reference
Keys to Programming Commands
Table 1-1. Front Panel Equivalents (3 of 11)
HardkeySoftkeyCommand
CalTESTS ET SW n SweepsTSSWIn
CalTRANSMISSNTRAN
CalVELOCITY FACTORVELOFACT
Center CENT
Chan 1N/ACHAN1
Chan 2N/ACHAN2
Chan 3N/ACHAN3
Chan 4N/ACHAN4
CopyLINE TYPE DATALINTDATA
LINE TYPE MEMORYLINTMEMO
LIST VALUESLISV
NEXT PAGENEXP
OP PARAMSO PE P
PLOTPLOT
RESTORE DISPLAYRESD
1-6
Page 11
Table 1-1. Front Panel Equivalents (4 of 11)
HardkeySoftkeyCommand
Display2x:[1&2][3&4]D2XUPCH2
2x:[1&3][2&4]D2XUPCH3
4x:[1][2][3][4]D4XUPCH2
4x:[1][3][2][4]D4XUPCH3
AUX CHAN ON OFFAUXC <ON|OFF>
BACKGROUND INTENSITYBACI
BEEP DONE ON OFFBEEPDONE <ON|OFF>
BEEP FAIL ON OFFBEEPFAIL <ON|OFF>
BEEP WARN ON OFFBEEPWARN <ON|OFF>
BRIGHTNESSCBRI
DATA ->MEMORYDATI
Alphabetical Command Reference
Keys to Programming Commands
DATA and MEMORYDISPDATM
DATA/MEMDISPDDM
DATA-MEMDISPDMM
DATA+MEMDISPDPM
DATA*MEMDISPDTM
MEM1/MEM2DISPM1DM
MEM1-MEM2DISPM1MM
MEM1+MEM2DISPM1PM
MEM1*MEM2DISPM1TM
MEM2/MEM1DISPM2DM
MEM2-MEM1DISPM2MM
MEM/DATADISPMDD
MEM-DATADISPMMD
MATH->MEMMATI
MEM1->MEM2MEM1I
MEM2->MEM1MEM2I
DEFAULT COLORSDEFC
DISPLAY: DATADISPDATA
DUAL CHAN ON OFFDUAC <ON|OFF>
FREQUENCY BLANKFREO
INTENSITYINTE
1-7
Page 12
Alphabetical Command Reference
Keys to Programming Commands
Table 1-1. Front Panel Equivalents (5 of 11)
HardkeySoftkeyCommand
downN/AD OWN
Entry OffN/AENTO
FormatDELAYDELA
IMAGINARYIMAG
LIN MAGLINM
LOG MAGLOGM
PHASEPHAS
POLARPOLA
REALREAL
SMITH CHARTSMIC
SWRSWR
LocalADDRESS: CONTROLLERADDRCONT
ADDRESS: DISKADDRDISC
ADDRESS: P MTR/GPIBADDRPOWM
DISK UNIT NUMBERDISCUNIT
GPIB DIAG ON OFFDEBU <ON|OFF>
PLTR PORT GPIBADDRPLOT
PRNTR PORT GPIBADDRPRIN
USE PASS CONTROLUSEPASC
Markerall OFFMARKOFF
D MODE OFFDELO
D REF = D FIXED MKRDELRFIXM
D REF = nDELR
FIXED MKR AUX VALUEMARKFAUV
FIXED MKR STIMULUSMARKFSTI
FIXED MKR VALUEMARKFVAL
MARKER nMARKn
1-8
MKR ZEROMARKZERO
Page 13
Table 1-1. Front Panel Equivalents (6 of 11)
HardkeySoftkeyCommand
Marker FctnDISP MKRS ON OFFDISM
G + jB MKRSMIMGB
POLAR LIN MKRPOLMLIN
SMITH LIN MKRSMIMLIN
POLAR LOG MKRPOLMLOG
SMITH LOG MKRSMIMLOG
MARKER -> CENTERMARKCENT
MARKER -> DELAYMARKDELA
MARKER -> SPANMARKSPAN
MARKER -> STARTMARKSTAR
MARKER -> STOPMARKSTOP
Alphabetical Command Reference
Keys to Programming Commands
MARKERS: CONTIN UOUSMARKCONT
MARKERS: COUPLEDMARKCOUP
MARKERS: DISCRETEMARKDISC
MARKERS: UNCOUP LEDMARKUNCO
MEASURE: STATSMEASTAT
SMITH R + jX MKRSMIMRX
POLAR Re/Im MKRPOLMRI
SMITH Re/Im MKRSMIMRI
Alphabetical Command Reference
Keys to Programming Commands
Table 1-1. Front Panel Equivalents (7 of 11)
HardkeySoftkeyCommand
MeasBMEASB
AMEASA
A/BAB
A/R AR
B/RBR
CONVERSION 1/SCONV1DS
CONVERSION OFFCONVOFF
CONVERSION Y:Ref lCONVYREF
CONVERSION Y:Tran sCONVYTRA
CONVERSION Z:ReflCO NVZREF
CONVERSION Z:TransCONVZT RA
E/O TransM EASEO1
O/E Trans (Port 1)MEASOE1
O/E Trans (Port 2)MEASOE2
O ReflMEASO1
O TransMEAS001
RMEASR
Refl:FWD S11 (A/R)S11
Refl:REV S22 (B/R)S22
Trans:FWD S21 (B/R)S21
Trans:REV S12 (A/R)S12
PowerN/APOWE
PORT POWERPORTP
PWR RANGE AUTO MANPWRR <PMAN|PAUTO>
RANGE nPRAN
SOURCE PWR ON OFFSOUP <ON|OFF>
PresetN/APRES
1-10
N/ARST
Page 15
Table 1-1. Front Panel Equivalents (8 of 11)
HardkeySoftkeyCommand
Save/RecallCLEARCLEAREG <01-31>
CLEAR ALLCLEARALL
DATA ARRAY ON OFFEXTMDATA
DATA ONLYEXTMDATO
FILE NAMETITF
FORMAT ARY ON OFFEXTMFORM
FORMAT INT DISKINID
GRAHPICS ON OFFEXTMGRAP
INTERNAL DISKINTD
LOADLOAD
RAW ARRAY ON OFFEXTMRAW
Alphabetical Command Reference
Keys to Programming Commands
READ FILE TITLESREFT
SAVESAVEREG
SAVE FILE when GRAPH FMT [ ] is set to CSV and
FILETYPE: GRAPHIC is selected.
SAVE FILE when GRAPH FMT [ ] is set to JPG and
FILETYPE: GRAPHIC is selected.
SAVE USING ASCIISAVUASCI
SAVE USING BINARYSAVUBINA
TITLETITREG
Alphabetical Command Reference
Keys to Programming Commands
Table 1-1. Front Panel Equivalents (9 of 11)
HardkeySoftkeyCommand
Sweep SetupALL SEGS SWEEPASEG
CONTINUOUSCONT
CONTINUOUSFRER
COUPLED CH ON OFFCOUC
CW FREQCWFREQ
CW TIMECWTIME
EXT TRIG ON SWEEPEXTTON
HOLDHOLD
LIN FREQLINFREQ
LIST FREQLI SFREQ
LIST IF BW ON OFFLISIFBWM
LIST POWER ON OFFLISPWRM
LIST TYPE: STEPPEDLISTTYPELSTP
LIST TYPE: SWEPTLISTTYPELSWP
LOG FREQLOGFREQ
MANUAL TRG ON POINTMANTRIG
MEASURE RESTAR TR E ST
NUMBER of GROUPSNUMG
NUMBER of POINTSPOIN <NUM>
POWER SWEEPPOWS
SEGMENT IF BWSEGIFBW
SEGMENT POWERSEGPOWER
SINGLESING
SINGLE SEG SWEEPSSEG
STEP SIZESTPSIZE
SWEEP TIME AUTOSWEA
SWEEP TIME MANUALSWET <NUM>
TRIGGER: TRIG OFFEXTTOFF
EDIT LISTEDITLIST
Sweep Setup or CalCLEAR LIST YESCLEL
Sweep Setup or SystemSTEP SWP ON OFFSTEPSWP ON| OFF>
1-12
Page 17
Table 1-1. Front Panel Equivalents (10 of 11)
HardkeySoftkeyCommand
SystemAMPLITUDE OFFSETLIMIAMPO
BEEP FAIL ON OFFBEEPFAIL ON|OFF>
BW DISPLAY on OFFBWLIMDISP ON|OFF>
BW TEST on OFFBWLIMTEST ON|OFF>
CLEAR LISTCLER
CLEAR LIST YESCLEAL
DELTA LIMITSLIMD
DEMOD: AMPLITUDEDEMOAMPL
DEMOD: OFFDEMOOFF
DEMOD: PHASEDEMOPHAS
EDIT LIMIT LINEEDITLIML
Alphabetical Command Reference
Keys to Programming Commands
EDIT RIPL LIMITEDITRLIM
FIRMWARE REVISIONSOFR
FLAT LINELIMTFL
FREQUENCY BANDSELBND
HARMONIC OFFHARMOFF
HARMONIC SECONDHARMSEC
HARMONIC THIRDHARMTHIR
LIMIT LINE ON OFFLIMILINE
LIMIT TEST ON OFFLIMITEST
LOWER LIMITLIML
MARKER -> AMP. OFS.LIMIMAOF
MARKER -> CWMARKCW
MARKER -> MIDDLEMARKMIDD
MARKER -> STIMULUSMARKSTIM
MAXIMUM BANDWIDTHBWLIMMA X
MAXIMUM FREQUENCYRLIMSTP
MAXIMUM RIPPLERLIMM
MIDDLE VALUELIMM
MINIMUM BANDWIDTHBWLIMMIN
MINIMUM FREQUENCYRLIMSTR
N DB POINTSBWLI MDB
1-13
Page 18
Alphabetical Command Reference
Keys to Programming Commands
Sets the GPIB address for the following peripherals.
Command Description RangeQuery Response
ADDRCONTController GPIB address. The address
where control is returned after a pass
control.
ADDRDISCExternal disk drive GPIB address.integers 0–30
ADDRPLOTPlotter GPIB address.integers 0–30
ADDRPOWMPower meter GPIB address.integers 0–30
ADDRPRINPrinter GPIB address.integers 0–30
integers 0–30
<num><
<num><
<num><
<num><
<num><
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
ADJB
ADJB
Executes autobiasing of optical modulator. No query response
ALTAB
ALTAB; or ALTAB?;
Command Description RangeQuery Response
ALTABPlaces the analyzer in the alternate inputs
measurement mode, where A and B
measurements are made on alternate
sweeps. See also “CHOPAB.”
N/A
<0|1><
L
>
F
1-15
Page 20
Alphabetical Command Reference
AR
AR
AR; or AR?;
Command Description RangeQuery Response
ARMeasures and displays A/R on the active
channel.
N/A
<0|1><
L
>
F
ASEG
ASEG; or ASEG?;
Command Description RangeQuery Response
ASEGUses all segments for list frequency sweep.
See also “SSEG”
N/A
<0|1><
L
>
F
AUTB;
AUTB<ON|OFF>;
Enable or disable autobiasing of optical modulator.
AUTO
AUTO;
Command Description RangeQuery Response
AUTOAuto scale the active channel. N/AN/A
AUXC
AUXC<ON|OFF>; or AUXC?;
Command Description RangeQuery Response
AUXCEnables and disables auxiliary channels 3
and 4. OPC-compatible.
Example
10 OUTPUT 716;”CHAN1;AU XCON; ”Turns on channel 3
20 OUTPUT 716;”CHAN2;AU XCON; ”Turns on channel 4
1-16
N/A
<0|1><
L
>
F
Page 21
Alphabetical Command Reference
AVER
AVERFACT<num>; or AVERFACT?;
AVERO<ON|OFF>; or AVERO?;
AVERREST;
Command Description RangeQuery Response
AVER
AVERFACTSets the averaging factor on the active channel.integers 0–999
AVEROTurns averaging on and off on the active
channel.
AVERRESTRestarts the averaging on the active channel.N/AN/A
N/A
<num><
<0|1><
BACI
BACI<num>; or BACI?;
Command Description RangeQuery Response
BACISets the background intensity of the
display.
integers 0–100
<num><
L
>
F
L
>
F
L
>
F
1-17
Page 22
Alphabetical Command Reference
BEEP
BEEP
BEEP<DONE|WARN|FAIL><ON|OFF>; or BEEP<DONE|WARN|FAIL>?;
Command Description RangeQuery Response
BEEPDONECauses the analyzer's warning beeper to
sound at the completion of functions such
as save, done with calibration standard,
and data trace saved.
BEEPFAILCauses the analyzer's warning beeper to
sound in the event of a limit test failure.
BEEPWARNCauses the analyzer's warning beeper to
sound when a warning message is
generated.
N/A
N/A
N/A
<0|1><
<0|1><
<0|1><
L
>
F
L
>
F
L
>
F
BR
BR; or BR?;
Command Description RangeQuery Response
BRMeasures and displays B/R on the active
channel.
N/A
<0|1><
L
>
F
BSAMP
BSAMP<ON|OFF>;
Switch B, sampler to : ON = LW, OFF = RF.
BWLIMDB
BWLIMDB<num>; or BWLIMDB?;
Command Description RangeQuery Response
BWLIMDBEnters the N dB Point, the amplitude below
the peak that is used to measure the filter’s
bandwidth.
-500 to 500 dB
<num><
L
>
F
1-18
Page 23
Alphabetical Command Reference
BWLIMDISP
BWLIMDISP<ON|OFF>; or BWLIMDISP?;
Command Description RangeQuery Response
BWLIMDISP
BWLIMDISPTurns the measured bandwidth value in
the upper left corner of the display on and
off. The measured bandwidth value is
displayed near the bandwidth
Pass/Wide/Narrow message.
N/A
<0|1><
L
>
F
BWLIMMKR
BWLIMMKR<ON|OFF>; or BWLIMMKR?;
Command Description RangeQuery Response
BWLIMMKR
Turns the limit bandwidth marker on and
off.
N/A
<0|1><
L
>
F
BWLIMMAX
BWLIMMAX<num>[HZ|KHZ|MHZ|GHZ]; or BWLIMMAX?;
Command Description RangeQuery Response
BWLIMMAXEnters the maximum bandwidth value. If the
measured bandwidth is greater than this
value, the filter fails the bandwidth test.
stimulus range
a
<num><
L
>
F
a. Refer to “Preset State and Memory Allocation” in your analyzer’s reference guide.
BWLIMMIN
BWLIMMIN<num>[HZ|KHZ|MHZ|GHZ]; or BWLIMMIN?;
Command Description RangeQuery Response
BWLIMMINEnters the minimum bandwidth value. If the
measured bandwidth is less than this value,
the filter fails the bandwidth test.
a. Refer to “Preset State and Memory Allocation” in your analyzer’s reference guide.
stimulus range
a
<num><
L
>
F
1-19
Page 24
Alphabetical Command Reference
BWLIMSTAT
BWLIMSTAT
BWLIMSTAT;
Command Description RangeResponse
BWLIMSTATReturns the results of the bandwidth test. A
returned value of 0 indicates that the filter
passed the bandwidth test. A returned
value of −1 indicates that the filter failed
the bandwidth test because it is narrower
than the bandwidth limit. A returned value
of 1 indicates that the filter failed the
bandwidth test because it is wider than the
bandwidth limit.
Begins the sequence for a short, load, open,
thru (SLOT) 2-port calibration.
N/A
<011>
<011>
<0|1><
L
>
F
Page 25
Alphabetical Command Reference
CALK35MM
Command Description RangeQuery Response
CALIRAIBegins the sequence for a response and
isolation calibration.
CALIRESPBegins the sequence for a response
calibration.
CALIS111Begins the sequence for an S11 1-port
calibration (ES models), or a reflection
N/A
N/A
N/A
<0|1><
<0|1><
<0|1><
L
>
F
L
>
F
L
>
F
1-port calibration (ET models).
CALIS221
a
The result of the query command only tells if the particular type of calibration is currently active. It does not
a.
provide information on the status of the cal sequence
Begins the sequence for an S22 1-port
calibration.
.
N/A
<0|1><
L
>
F
CALK35MM
CALK35MM;
Command Description RangeQuery Response
CALK35MMSelects the 3.5mm calibration kit
coefficients.
N/AN/A
CBRI
CBRI<num>; or CBRI?;
Command Description RangeQuery Response
CBRIAdjusts the color brightness of the selected
display feature.
integers 0–100
<num><
L
>
F
CENT
CENT<num>[HZ|DB]; or CENT?;
Command Description RangeQuery Response
CENTSets the center stimulus value. If a list
stimulus range
a
<num><
frequency segment is being edited, sets the
center of the list segment.
a. For frequency or power sweeps, refer to “Preset State and Memory Allocation,” in your analyzer’s reference guide.
For CW time: 0 to 24 hours. For frequency sweep, transform on: ± 1/frequency step. For CW time sweep, transform
on: ±1/time step.
L
>
F
1-21
Page 26
Alphabetical Command Reference
CHAN
CHAN
CHAN<1|2|3|4>;
Makes channel 1, 2, 3, or 4 the active channel. OPC-compatible. No query response.
NOTEThese commands should use OPC? to prevent timing errors with subsequent
commands. Example code written in BASIC:
10 OUTPUT 716;"OPC?;CHAN2;"
20 ENTER 716;OPC
CLAD
CLAD;
Command Description RangeQuery Response
CLADClass done (modify cal kit, specify class).N/AN/A
CLASS
CLASS<11A|11B|11C|22A|22B|22C>;
These commands call reflection standard classes during a calibration sequence. If only one
standard is in the class, it is measured. If there is more than one, the standard being used
must be selected with STAN<A|B|C|D|E|F|G>. If there is only one standard in the class,
EXAMPLETo measure the female open of a type-N cal kit:
OUTPUT 716;"CLASS11A;OPC?;STANB;"
ENTER 716 OPC;
1-22
Page 27
Alphabetical Command Reference
CLEAREG
CLEAREG<num>;
CLEARALL;
Command Description RangeQuery Response
CLEAREG
CLEAREGClears save/recall registers 01 through 31.
CLEAREG01 through CLEAREG05 are the
same as CLEA1 through CLEA5.
OPC-compatible.
CLEARALLClears all the save/recall registers.
OPC-compatible.
two-digit
integers 01–31
N/AN/A
N/A
CLEAL
CLEAL;
Command Description RangeQuery Response
CLEALClears the limit line list. Should be
preceded by EDITLIML.
N/AN/A
CLEL
CLEL;
Clears the currently selected list. This could be a frequency list, power loss list, or limit test
list. Must be preceded by an “EDIT” command. No query response.
CLES
CL[E]S;
Command Description RangeQuery Response
CLESClears the status byte register, the
event-status registers, and the enable
registers.
CLS
Same as
CLES.
N/AN/A
N/AN/A
CLER
CLER;
Clears (or deletes) the all of existing ripple test limits. No query response.
1-23
Page 28
Alphabetical Command Reference
COEFA
COEFA
COEFA<1-4> [value]
Set numerator coefficients of response model.
COEFB
COEFB<1-4> [value]
Set denominator coefficients of response model.
COEFDELA
COEFDELA [value];
Set delay coefficient of response model.
COEFK;
COEFK;
Sets constant coefficient of response model.
These commands display the indicated combinations of data and trace memory on the active
channel.
Command Description Range Query Response
DISPDATAData only.N/A
DISPDATMData and memory.N/A
DISPDDMData divided by memory (linear division,
log subtraction). See also “DIVI.”
DISPDMMData minus memory (linear subtraction).
See also “MINU.”
DISPMEMOMemory only.N/A
DISP
DISP
DISP
DPM
DTM
M1DM
Display data plus memory.N/A
Display data times memory.N/A
Display memory 1 divided by memory 2.N/A
N/A
N/A
<0|1><
<0|1><
<0|1><
<0|1><
<0|1><
<0|1><
<0|1><
<0|1><
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
1-29
Page 34
Alphabetical Command Reference
DONE
Command Description Range Query Response
DISPM1MM
DISP
M1PM
DISP
M1TM
DISP
M2DM
DISP
M2MM
DISP
MATH
DISP
MMD
DISP
MDD
Display memory 1 minus by memory 2N/A
Display memory 1 plus memory 2.N/A
Display memory 1 times memory 2.N/A
Display memory 2 divided by memory 1.N/A
Display memory 2 minus memory 1.N/A
Display math resultsN/A
Display memory minus dataN/A
Display memory divided by dataN/A
<0|1><
<0|1><
<0|1><
<0|1><
<0|1><
<0|1><
<0|1><
<0|1><
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
DONE
DONE;
Done with a class of standards, during a calibration. Only needed when multiple standards
are measured to complete the class. OPC-compatible. No query response.
DONM
DONM;
Done modifying a test sequence. No query response.
DOSEQ
DOSEQ<1-6>;
Start sequence 1-6. No query response.
DOWN
DOWN;
Decrements the value displayed in the active entry area (emulates pressing the down-arrow
key). No query response.
1-30
Page 35
Alphabetical Command Reference
DRIVPORT
DRIVPORT<ON|OFF>;
Drive port; ON = LW, OFF = RF.
DUAC
DUAC<ON|OFF>; or DUAC?;
Command Description RangeQuery Response
DRIVPORT
DUACTurns dual channel display on and off.N/A
<0|1><
L
>
F
EDIT
EDIT<DONE|LIML|LIST>;
Command Description RangeQuery Response
EDITDONEDone editing list frequency, limit table, cal
sensor table, or power loss list.
OPC-compatible.
EDITLIMLBegins editing limit table.N/AN/A
EDITLISTBegins editing list frequency table.N/AN/A
N/AN/A
EDITRLIM
EDITRLIM;
Begins the editing of the ripple limit list. No query response.
ELED
ELED<num>[S]; or ELED?;
Command Description RangeQuery Response
ELED
Sets the electrical delay offset. ±10 seconds
<num><
L
>
F
1-31
Page 36
Alphabetical Command Reference
ENTO
ENTO
ENTO;
Command Description Range Query Response
ENTORemoves displayed information from the
active entry area on the screen.
N/A N/A
EOCAL
EOCAL;
Internal E/O service calibration parameter.
ESE
ESE<num>; or ESE?;
Command Description RangeQuery Response
ESEEnables the selected event-status register
bits to be summarized by bit 5 in the status
byte. An event-status register bit is enabled
when the corresponding bit in the operand
<num> is set.
integers 0–255
<num><
L
>
F
ESNL
ESNL<num>; or ESNL?;
Command Description RangeQuery Response
ESNLEnables the selected event-status register L
bits to be summarized by bit 2 in the status
byte. An event-status register bit is enabled
when the corresponding bit in the operand
<num> is set.
These commands include the indicated information when an instrument state is stored to
the internal floppy disk drive or an external disk.
Command Description Range Query Response
EXTMDATAAdds error corrected data (real and
imaginary pairs) along with the other files.
EXTMFORMFormatted trace data. Uses currently
selected format for data.
EXTMGRAPUser graphics.N/A
EXTMRAWRaw data arrays (real and imaginary pairs).N/A
a. See Figure 6-1 on page 6-3. This error corrected data is the same as that output by the OUTPDATA command.
N/A
a
N/A
<0|1><
<0|1><
<0|1><
<0|1><
L
>
F
L
>
F
L
>
F
L
>
F
EXTT
EXTT<ON|OFF>; or EXTT?;
Command Description Range Query Response
EXTTActivates or deactivates the external
trigger mode. OPC-compatible.
N/A
<0|1><
L
>
F
FORM
FORM<1|2|3|4|5>;
These 5 commands set the data format for array transfers in and out of the instrument:
Command Description Range Query
Response
FORM1The analyzer's internal binary format, 6 bytes-per-data point.
The array is preceded by a four-byte header. The first two
bytes represent the string “#A”, the standard block header.
The second two bytes are an integer representing the number
of bytes in the block to follow. FORM1 is best applied when
rapid data transfers, not to be modified by the computer nor
interpreted by the user, are required.
N/AN/A
1-33
Page 38
Alphabetical Command Reference
FREO
Command Description Range Query
Response
FORM2IEEE 32-bit floating-point format, 4 bytes-per-number,
8 bytes-per-data point. The data is preceded by the same
header as in FORM1. Each number consists of a 1-bit sign, an
8-bit biased exponent, and a 23-bit mantissa. FORM2 is the
format of choice if your computer is not a PC, but supports
single-precision floating-point numbers.
FORM3IEEE 64-bit floating-point format, 8 bytes-per-number,
16 bytes-per-data point. The data is preceded by the same
header as in FORM1. Each number consists of a 1-bit sign, an
11-bit biased exponent, and a 52-bit mantissa. This format
may be used with double-precision floating-point numbers.
No additional precision is available in the analyzer data, but
FORM3 may be a convenient form for transferring data to
your computer.
FORM4ASCII floating-point format. The data is transmitted as ASCII
numbers, as described in “Output Syntax” on page 5-4. There
is no header. The analyzer always uses FORM4 to transfer
data that is not related to array transfers (i.e. marker
responses and instrument settings). Data is comma delimited.
FORM5PC-DOS 32-bit floating-point format with 4 bytes-per-number,
8 bytes-per-data point. The data is preceded by the same
header as in FORM1. The byte order is reversed with respect
to FORM2 to comply with PC-DOS formats. If you are using a
PC-based controller, FORM5 is the most effective format to
use.
N/AN/A
N/AN/A
N/AN/A
N/A
FREO
FREO;
Frequency blank. Turns frequency notation off. Once the frequency notation has been turned
off (blanked), it cannot be turned back on until a preset or recall is initiated. No query
response.
FRER
FRER; or FRER?;
Command Description Range Query Response
FRERPlaces the analyzer in GPIB free run mode.
(Same as continuous sweep trigger mode.)
See “CONT.”
N/A
<0|1><
L
>
F
1-34
Page 39
Alphabetical Command Reference
FWD
FWD
FWD<I|M|T>;
These commands are OPC-compatible if there is only one standard in the class. If there is just
one standard, that standard is measured automatically. If there is more than one standard in
the class, the standard being used must be selected with the STAN command.
Command Description Range Query Response
FWDISelects the forward isolation calibration
class during a 2-port calibration sequence.
FWDMSelects the forward match calibration class
during a 2-port calibration sequence.
FWDTSelects the forward transmission
calibration class during a 2-port calibration
sequence.
N/AN/A
N/AN/A
N/AN/A
HOLD
HOLD; or HOLD?;
Command Description Range Query Response
HOLDPuts the sweep trigger into hold mode.N/A
<0|1><
L
>
F
IDN?
IDN?;
Command Description Range Query Response
IDN?Query only. Outputs the identification string:
where 87NNEX is the model number of the
instrument, xxxxxxxxxx is the serial number of
the instrument, and X.XX is the firmware
revision of the instrument.
N/A See command description
IFBW
IFBW<num>[HZ]; or IFBW?;
Command Description RangeQuery Response
IFBWSets the IF bandwidth.Choose from 10, 30,
100, 300, 1000, 3000
<num><
L
>
F
1-35
Page 40
Alphabetical Command Reference
IMAG
IMAG
IMAG; or IMAG?;
Command Description Range Query Response
IMAGSelects the imaginary display format.N/A
<0|1><
L
>
F
INI
INI<D>;
Initializes the internal disk. All previous information on the disk will be destroyed. No query
response.
INPU
INPUCALC<num><array>;
INPU<CALK|DATA|FORM><array>;
INPULEAS<learnstring>; or INPULEAS?;
INPURAW<1|2|3|4><array>;
All of these commands (with a few noted exceptions) input an array and require that you set
the format for data transfers with the FORM command. All of these commands have an
associated OUTPut command that is used to transfer data from the analyzer. See “OUTP,”
later in this chapter.
Command Description Range Query
Response
INPUCALC
INPUCALK
INPUDATAInputs an error corrected data array, using the current
INPUFORMInputs a formatted data array, using the current setting
INPULEAS
INPURAW1Inputs raw data array 1 (S
b
b
Error coefficient array
Inputs a cal kit array in FORM1 only. Can be read out
with the OUTCALK command. After the transfer, the data
should be saved into the user cal kit area with the
SAVEUSEK command.
setting of the FORM command.
of the FORM command.
Inputs a learn string in FORM1 only. Can be read out
with the OUTPLEAS command, or with INPULEAS?.
received, the analyzer stops sweeping, error-corrects the
data, then formats and displays the data.
a
<num>.
data). After the data is
11
two-digit
integers 01–12
N/AN/A
N/AN/A
N/AN/A
N/A
N/AN/A
N/A
<data><
1-36
L
>
F
Page 41
Alphabetical Command Reference
Command Description Range Query
Response
INPU
INPURAW2Inputs raw data array 2 (S21 data). After the data is
N/AN/A
received, the analyzer stops sweeping, error-corrects the
data, then formats and displays the data.
INPURAW3Inputs raw data array 3 (S
data). After the data is
12
N/AN/A
received, the analyzer stops sweeping, error-corrects the
data, then formats and displays the data.
INPURAW4Inputs raw data array 4 (S
data). After the data is
22
N/AN/A
received, the analyzer stops sweeping, error-corrects the
data, then formats and displays the data.
a. These commands input an individual error coefficient array. Before sending an array, issue a CALIXXXX; command,
where XXXX specifies the calibration type. (See “CALI” earlier in this book.) Then input the array or arrays. Lastly
store the data with the SAVC command. The instrument goes into hold, displaying uncorrected data. Complete the
process by triggering a sweep, with the CONT command (for continuous sweep) or the SING command (for a single
sweep). See Table 1-1 on page 1-38 for the contents of the different arrays.
b. Does not require a preceding “FORM” command.
1-37
Page 42
Alphabetical Command Reference
INT
Table 1-1. Error Coefficient Arrays
Array
Response Response
& Isolation
01E
or E
R
T
EX (ED)
02ET (ER)ESE
03E
04E
05
06E
1-portEnhanced
b
E
D
R
Response
E
D
S
E
R
X
c
E
L
T
07E
08E
09E
10E
11E
12E
2-port
E
DF
E
SF
E
RF
E
XF
E
LF
E
TF
DR
SR
RR
XR
LR
TR
a
TRL/
LRM
E
E
E
E
E
E
E
E
E
E
E
E
DF
SF
RF
XF
LF
TF
DR
SR
RR
XR
LR
TR
O/E
Response
& Match
E
DR
E
SR
E
RR
E
XF
E
LF
E
TF
E
DF
E
SF
E
RF
E/O
Response
& Match
E
DI
E
S
E
R
E
X
E
T
a. One path, 2-port cal duplicates arrays 1 to 6 in arrays 7 to 12.
b. Response and isolation corrects for crosstalk and transmission tracking in transmission measurements, and for
directivity and reflection tracking in reflection measurements.
c. This term is used to generate the calibration coefficients, but is not used during measurement error correction.
Meaning of first subscript:Meaning of second subscript:
D: directivityF: forward
S: source matchR: reverse
R: reflection tracking
X: crosstalk or isolation
L: load match
T: transmission tracking
INT
INT<D>;
Selects the internal disk as the active storage device. No query response.
1-38
Page 43
Alphabetical Command Reference
INTE
INTE<num>; or INTE?;
Command Description RangeQuery Response
INTE
INTESets the display intensity, 50 to 100
percent.
integers 50–100
<num><
L
>
F
ISO
ISO<D|L>;
Command Description Range Query Response
ISODDone with isolation subsequence in a
2-port or enhance response calibration.
OPC-compatible.
ISOLBegins the isolation subsequence step in a
2-port calibration.
N/A N/A
N/AN/A
LIM
LIM<D|L|M|S|U><num>[DB|HZ];
These commands edit a limit test segment. The limit table editing is begun with EDITLIML;,
and a segment is brought up for editing with SEDI<num>; or added using SADD;. The segment
is closed with SDON;, the table is closed with EDITDONE;.
Command Description RangeQuery Response
LIMDSets the limit delta value while editing a
limit line segment.
LIMLSets the lower limit value.
LIMMSets the middle limit value.
LIMSSets the limit stimulus break point.
LIMUSets the upper limit value.
a. For log mag: ± 500 dB. For phase: ± 500 degrees. For Smith chart and Polar: ± 500 units. For linear magnitude: ± 500
units. For SWR: ± 500 units. The scale is always positive, and has minimum values of 0.001 dB, 10e-12 degrees,
10e-15 seconds, and 10 picounits.
b. For frequency or power sweeps, refer to “Preset State and Memory Allocation,” in your analyzer’s reference guide.
For CW time: 0 to 24 hours. For frequency sweep, transform on: ± 1/frequency step. For CW time sweep, transform
on: ±1/time step.
amplitude range
amplitude range
amplitude range
stimulus range
amplitude range
a
see “Note” below
a
see “Note” below
a
see “Note” below
b
see “Note” below
a
see “Note” below
NOTECurrently these commands can be queried by sending the command followed by
1-39
Page 44
Alphabetical Command Reference
LIMI
the OUTPACTI command, as in the following example to query the upper limit
value:
10 OUTPUT 716;”LIMU;OUTPACTI;”
Future revisions of firmware may support the standard query form (which
currently always returns a zero) for these commands.
LIMI
LIMI<AMPO|STIO><num>[HZ|DB]; or LIMI<AMPO|STIO>?;
LIMI<LINE|TEST><ON|OFF>; or LIMI<LINE|TEST>?;
LIMIMAOF;
These commands are used to define and display limit testing.
Command Description RangeQuery Response
LIMIAMPOEnters the limit line amplitude offset.
LIMILINETurns the display of the limit lines on and
off.
LIMIMAOFMarker to limit offset. Centers the limit
lines about the current marker position
using the limit amplitude offset function.
LIMISTIOEnters the stimulus offset of the limit lines.
LIMITESTTurns limit testing on and off.N/A
a. For log mag: ± 500 dB. For phase: ± 500 degrees. For Smith chart and Polar: ± 500 units. For linear magnitude: ± 500
units. For SWR: ± 500 units. The scale is always positive, and has minimum values of 0.001dB, 10e-12 degrees,
10e-15 seconds, and 10 picounits.
b. For frequency or power sweeps, refer to “Preset State and Memory Allocation,” in your analyzer’s reference guide.
For CW time: 0 to 24 hours. For frequency sweep, transform on: ± 1/frequency step. For CW time sweep, transform
on: ±1/time step.
amplitude range
N/A
N/AN/A
stimulus range
a
<num><
<0|1><
b
<num><
<0|1><
L
>
F
L
>
F
L
>
F
L
>
F
LIMT
LIMT<FL|SL|SP>;or LIMT<FL|SL|SP>?;
These commands edit a limit test segment. The limit table editing is begun with EDITLIML;,
and a segment is brought up for editing with SEDI N; or added using SADD;. The segment is
closed with SDON;, the table is closed with EDITDONE;.
Command Description Range Query Response
LIMTFLMakes the segment a flat line.N/A
LIMTSLMakes the segment a sloping line.N/A
<0|1><
<0|1><
L
>
F
L
>
F
1-40
Page 45
Alphabetical Command Reference
LINFREQ
Command Description Range Query Response
LIMTSPMakes the segment a single point.N/A
<0|1><
L
>
F
LINFREQ
LINFREQ; or LINFREQ?;
Command Description Range Query Response
LINFREQSelects a linear frequency sweep.N/A
<0|1><
L
>
F
LINM
LINM; or LINM?;
Command Description Range Query Response
LINMSelects the linear magnitude display
format.
N/A
<0|1><
L
>
F
LINT
LINT<DATA|MEMO><num>;
Command Description RangeQuery Response
LINTDATA
LINTMEMO
Enters the line type for plotting data.integers 0–10 N/A
Enters the line type for plotting memory.integers 0–10 N/A
LIS
LISFREQ; or LISFREQ?;
LIS<IFBWM|PWRM><ON|OFF>; or LIS<IFBWM|PWRM>?;
List frequency functions.
Command Description Range Query Response
LISFREQSelects the list frequency sweep mode.N/A
LISIFBWMEnables/disables the IFBW setting for a
list-frequency table in swept list mode.
N/A
<0|1><
<0|1><
L
>
F
L
>
F
1-41
Page 46
Alphabetical Command Reference
LISTTYPE
Command Description Range Query Response
LISPWRMEnables/disables the power setting for a
list-frequency table in swept list mode.
N/A
<0|1><
L
>
F
LISTTYPE
LISTTYPE<LSTP|LSWP>; or LISTTYPE?;
Command Description Range
LISTTYPELSTPSelects the stepped list mode for use with a
list-frequency table.
LISTTYPELSWPSelects the swept list mode for use with a
list-frequency table.
a. 0 = stepped list mode
1 = swept list mode
N/A
N/A
Query Response
L
<0|1><
<0|1><
>
F
L
>
F
LISV
LISV;
Command Description Range Query Response
a
LISVActivates the list values function. Requesting a
plot (or print) copies only the current page. See
also “NEXP,”“PREP,”“PLOT,”“PRINALL,” and
“PRINTALL.”
N/A N/A
LOAD
LOAD<num>;
Command Description RangeQuery Response
LOADLoads the file from disk using the file name
provided by the preceding TITF<num>;
command. The actual file loaded depends
on the file title in the file position specified
by the TITF<num> command. Requires pass
control mode when using the GPIB port.
integers 1–5N/A
1-42
Page 47
Alphabetical Command Reference
LOGFREQ
LOGFREQ; or LOGFREQ?;
Command Description Range Query Response
LOGFREQ
LOGFREQSelects a log frequency sweep.N/A
<0|1><
L
>
F
LOGM
LOGM; or LOGM?;
Command Description Range Query Response
LOGMSelects the log magnitude display format. N/A
<0|1><
L
>
F
MANTRIG
MANTRIG; or MANTRIG?;
Command Description Range Query Response
MANTRIGSets the trigger mode to manual trigger on
point. OPC-compatible.
N/A
<0|1><
L
>
F
MAN_LASER
MAN_LASER<ON|OFF>; or MAN_LASER?;
Toggles laser on and off (with autobias).
MARK
MARK<1|2|3|4|5><num>; or MARK<1|2|3|4|5>?;
MARK<3DB|BUCK|FAUV|FSTI|FVAL><num>; or MARK<BUCK|FAUV|FSTI|FVAL>?;
MARK<CONT|COUP|DISC|MAXI|MINI|OFF|UNCO>; or
bandpass high-side, using marker 1 as the
reference.
MARKBUCKPlaces the active marker on a specific
sweep point (bucket). <num> is the bucket
number.
MARKCENTSets the center stimulus value to that of the
active marker's stimulus value.
MARKCONTPlaces the markers continuously on the
trace, not on discrete points (interpolates
the marker values between discrete points).
MARKCOUPCouples the markers between the channels,
as opposed to
MARKUNCO.
stimulus range
stimulus range
stimulus range
stimulus range
a
a
a
a
stimulus range
0 to (number-of-points − 1)
See footnote
b
.
<num><
<num><
<num><
<num><
<num><
<num><
N/AN/A
N/A
N/A
<0|1><
<0|1><
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
MARKCWSets the CW frequency to the active
marker's frequency.
MARKDELASets electrical length so group delay is zero
at the active marker's stimulus.
MARKDISCPlaces the markers on the discrete
measurement points.
MARKFAUVSets the auxiliary value of the fixed marker
position. Works in coordination with
MARKFVAL and MARKFSTI.
MARKFSTISets the stimulus position of the fixed
marker.
MARKFVALSets the value of the fixed marker position.
MARKMAXI
MARKMIDDMakes the marker amplitude the limit
MARKMINI
Same as
SEAMAX (search for maximum on
current channel's trace).
segment middle value during a limit
segment edit.
Same as
SEAMIN (search for minimum on
current channel's trace).
N/AN/A
N/AN/A
N/A
amplitude range
stimulus range
amplitude range
N/A
c
a
c
<0|1><
<num><
<num><
<num><
<0|1><
N/AN/A
N/A
<0|1><
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
1-44
Page 49
Alphabetical Command Reference
Command Description RangeQuery
Response
MATI
MARKOFFTurns all markers and marker functions
off.
MARKREFSets the reference value to that of the active
marker's amplitude.
MARKSPANSets the span for the entire trace to that of
the span between the active marker and the
delta reference marker.
MARKSTARSets the start stimulus to that of the active
marker's.
MARKSTIMDuring a limit segment edit, sets the limit
stimulus break point to that of the active
marker's.
MARKSTOPSets the stop stimulus to that of the active
marker's.
MARKUNCOUncouples the markers between channels,
as opposed to
MARKZEROPlaces the fixed marker at the active
marker position and makes it the delta
reference.
a. For frequency or power sweeps, refer to “Preset State and Memory Allocation.” For CW time: 0 to 24 hours. For
frequency sweep, transform on: ±1/frequency step. For CW time sweep, transform on: ±1/time step.
b. For example, on a 201 point sweep, <num> can range from 0 to 200.
c. For log mag: ± 500 dB. For phase: ± 500 degrees. For Smith chart and Polar: ± 500 units.
For linear magnitude: ± 500 units. For SWR: ± 500 units. The scale is always positive, and has minimum
values of 0.001dB, 10e−12 degrees, 10e−15 seconds, and 10 picounits.
MARKCOUP.
N/A
N/AN/A
N/AN/A
N/AN/A
N/AN/A
N/AN/A
N/A
N/AN/A
<0|1><
<0|1><
L
>
F
L
>
F
MATI
MATI;
MATI to current memory.
MAXF
MAXF[<num>[freq suffix]];
Command Description RangeQuery Response
MAXFSets the maximum valid frequency of a
standard being defined during a cal kit
modification.
0–1000 GHz N/A
1-45
Page 50
Alphabetical Command Reference
MEAS
MEAS
MEAS<A|B|R|E01|O1|OE1|OE2|OFF|MEASOO1>; or
MEAS<A|B|RE01|O1|OE1|OE2|OFF|MEASOO1>?;
Command Description RangeQuery Response
MEASAMeasures and displays input A on the
N/A
active channel.
MEASBMeasures and displays input B on the
N/A
active channel.
MEASRMeasures and displays input R on the
N/A
active channel.
MEASEO1Measures and displays electrical-to-optical
N/A
transmission.
MEASO1Measures and displays optical reflection.N/A
MEASOE1Measures and displays optical-to-electrical
N/A
transmission in port 1
MEASOE2Measures and displays optical-to-electrical
N/A
transmission in port 2.
MEASOFFSwitches off marker function
N/A
measurements.
MEASOO1Measures and displays optical
N/A
transmission.
<0|1><
<0|1><
<0|1><
<0|1><
<0|1><
<0|1><
<0|1><
<0|1><
<0|1><
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
L
>
F
MEASTAT
MEASTAT<ON|OFF>; or MEASTAT?;
Command Description Range Query Response
MEASTATTurns trace statistics on and off.N/A
1-46
<0|1><
L
>
F
Page 51
Alphabetical Command Reference
MEM
MEM<O1|O2|1I|2I>;
Command Description RangeQuery Response
MEM
MEMO1
MEMO2
MEM1I
MEM2I
Activate memory 1.
Activate memory 2.
Memory 1 to memory 2.
Memory 2 to memory 1.
MENUOFFBlanks the softkey menu. Use with caution, as this
may give unusual results when setting up an
instrument state. Recommend setting up states
using MENUON (default) and, when setup is complete,
using MENUOFF .
MENUAVGBrings up the menu associated with the
panel key.
Avg front
N/AN/A
N/AN/A
MENUCALBrings up the menu associated with the
panel key.
MENUCOPYBrings up the menu associated with the
panel key.
MENUDISPBrings up the menu associated with the
panel key.
MENUFORMBrings up the menu associated with the
panel key.
MENUMARKBrings up the menu associated with the
panel key.
MENUMEASBrings up the menu associated with the
panel key.
MENUMRKFBrings up the menu associated with the
front panel key.
MENUSRCHBrings up the menu associated with the
front panel key.
Cal front
Copy front
Display front
Format front
Marker front
Meas front
Marker Fctn
Marker Fctn
N/AN/A
N/AN/A
N/AN/A
N/AN/A
N/AN/A
N/AN/A
N/AN/A
N/AN/A
1-47
Page 52
Alphabetical Command Reference
MINMAX
Command Description Range Query
Response
MENUPOWEBrings up the menu associated with the Marker Fctn
front panel key.
MENURECABrings up the menu associated with the
front panel key
MENUSAVEBrings up the menu associated with the
front panel key
MENUSCALBrings up the menu associated with the
front panel key.
MENUSTIMBrings up the menu associated with the
front panel key.
MENUSWEEBrings up the menu associated with the
front panel key.
MENUSYSTBrings up the menu associa ted wit h the
panel key.
Save/Recall
Save/Recall
Scale Ref
Sweep Setup
Sweep Setup
System front
Front Panel Equivalents
Press the associated hardkey listed above.
MINMAX
N/AN/A
N/AN/A
N/AN/A
N/AN/A
N/AN/A
N/AN/A
N/AN/A
MINMAX<ON|OFF>;or MINMAX?;
Command Description Range Query Response
MINMAXEnables/disables min/max recording per
segment. Min and max values are recorded
per limit segment. Limit testing need not be
active.
N/A
<0|1><
L
>
F
For more information refer to “Limit Line and Data Point Special Functions” on page 8-125.
MINU
MINU; or MINU?;
Command Description Range Query Response
MINUData minus memory (linear subtraction).
See also “DISPDMM.”
N/A
<0|1><
L
>
F
1-48
Page 53
Alphabetical Command Reference
MODEI;
MODEI;
Model to memory.
NEXP
NEXP;
Displays the next page of the operating parameters list. (Use OPEP to display the operating
parameters list.) No query response.
NUMG
NUMG<num>;
Command Description RangeQuery Response
NUMGActivates the indicated number of groups
of sweeps. A group is whatever is needed to
update the current parameter once. This
function restarts averaging if it is enabled.
OPC-compatible.
integers 1–999N/A
OMII
OMII;
Omits the isolation step of a calibration sequence. No query response.
OPC
OPC; or OPC?;
Command Description Range
OPCOperation complete. Reports the
completion of the next command received
by setting bit 0 in the event-status register,
or by replying to an interrogation if OPC? is
issued.
N/A
Query Response
L
<0|1><
>
F
a
a. 0 = next command not yet completed
1 = next command completed
1-49
Page 54
Alphabetical Command Reference
OPEP
OPEP
OPEP;
Presents a list of key operating parameters. Requesting a plot (or print) copies only the
current page. See also “NEXP,”“PREP,”“PLOT,”“PRINALL,” and “PRINTALL.” No query
response.
OUTP
In the following “Syntax” section, commands are grouped alphabetically by common syntax
form, not necessarily due to common functionality.
NOTEMost commands that output an array require that you set the format for data
transfers with the FORM command.
Many of these commands have an associated INPUT command that is used to transfer data to
the analyzer. Refer to “Alphabetical Command Reference” on page 1-2 for a list of input
commands.
1-50
Page 55
Alphabetical Command Reference
Command Description RangeResponse
OUTP
OUTPACTIOutputs the value of the active function, or
the last active function if the active entry
area is off. The value is returned in ASCII
format.
OUTPAMAX
a
Outputs the max values for all limit line
segments. This is an ASCII transfer
(FORM4).
OUTPAMIN
a
Outputs the min values for all limit line
segments. This is an ASCII transfer
(FORM4).
OUTPAPEROutputs the smoothing aperture in
stimulus units, rather than as a percentage.
OUTPCALCOutputs the selected error coefficient array
for the active cal on the active channel.
b
OUTPCALKOutputs the currently active calibration kit,
as a string of less than 1000 bytes. The data
is in FORM1.
OUTPFARPLPTOutputs the onscreen failed ripple point
information in the following commaseparated value format: the number of
failed points followed by pairs of numbers
representing the first failed frequency, first
failure value, second failed frequency,
second failure value, and so on.
N/A
N/A
N/A
N/A
two-digit
integers 01–12
N/A
N/A
L
>
<$><
F
L
<array><
<array><
<num><
<array><
<$><
>
F
L
>
F
L
>
F
L
>
F
L
>
F
<num,array><
L
>
F
OUTPCHANOutputs the active channel number: 1, 2, 3,
N/A
or 4.
OUTCNTROutputs the ABUS counter.N/A
OUTPDATAOutputs the error-corrected data from the
N/A
active channel in real/imaginary pairs. See
Figure 6-1 on page 6-3.
OUTPDATPOutputs the trace data indexed by point
N/A
(see “SELPT”).
OUTPDATROutputs the trace data for a range of points
N/A
(see “SELMINPT,”“SELMAXPT”). This is an
ASCII (FORM4) transfer.
OUTPERROOutputs the oldest error message in the
N/A
error queue. Sends the error number first,
and then the error message itself, as an
ASCII (FORM4) string no longer than 50
characters.
<num><
<array><
L
>
F
L
>
F
<num,num><
L
<array><
<num,$><
>
F
L
F
L
>
F
>
1-51
Page 56
Alphabetical Command Reference
OUTP
Command Description RangeResponse
OUTPFAIPThis command is similar to OUTPLIMF
except that it reports the number of
failures first, followed by the stimulus and
trace values for each failed point in the
test. ASCII format.
a
OUTPFORMOutputs the formatted display data array
from the active channel, in current display
units. See Table 1-3 on page 1-79.
OUTPIDENOutputs the identification string for the
analyzer in the form:
Agilent,8703B,xxxxxxxxxx,X.XX where
8703B is the model number of the
instrument, xxxxxxxxxx is the serial
number of the instrument, and X.XX is the
firmware revision of the instrument. (Same
as the “IDN?” command.)
OUTPLEASOutputs the learn string, which contains
the entire front panel state, the limit table,
and the list frequency table. It is always in
binary format not intended for decoding.
OUTPLIMOutputs the status of the limit test for the
a,
channel selected with <num>.
c
OUTPLIMFOutputs the limit test results for each failed
point, followed by the number of failed
a
points. This is an ASCII transfer.
,d
N/A
N/A
N/A
N/A
integers 1–4
N/A
L
<array><
<array><
<$><
>
F
L
>
F
L
>
F
<learnstring><
<0|1|−1><
<array><
L
F
L
>
F
L
>
F
>
OUTPLIMLOutputs the limit test results for each point
in the sweep. This is an ASCII transfer.
a,c,d
OUTPLIMMOutputs the limit test results at the active
marker.
a,c,d
OUTPMARKOutputs the active marker values. The first
two numbers are the marker response
values, and the last is the stimulus value.
See Table 1-3 on page 1-79 for the meaning
of the response values as a function of
display format.
OUTPMAXPOutputs the maximum point value between
selected points.
OUTPMEMOOutputs the memory trace from the active
channel. The data is in real/imaginary
pairs, and can be treated the same as data
read with the OUTPDATA command. See
Figure 6-1 on page 6-3.
N/A
N/A
N/A
N/A
N/A
L
<array><
>
F
<num,num,num,num><
>
F
L
<num,num,num><
<num,num><
L
<array><
>
F
>
F
L
>
F
L
1-52
Page 57
Alphabetical Command Reference
Command Description RangeResponse
OUTP
OUTPMINPOutputs the minimum point value between
N/A
selected points.
OUTPMRISOutputs three values for risetime.N/A
OUTPMSTAOutputs the marker statistics in ASCII
N/A
format: mean, standard deviation, and
peak-to-peak variation in that order. If
statistics is not on, it is turned on to
generate current values and turned off
again. See also “MEASTAT.”
OUTPMWIDOutputs the marker bandwidths search
N/A
results in ASCII format: bandwidth, center,
and Q in that order. If widths is not on, it is
turned on to generate current values and
then turned off again.
OUTPOPTSOutputs an ASCII string of the options
N/A
installed in the analyzer.
OUTPPLOTOutputs the HP-GL plot string in ASCII
N/A
format to the GPIB port. Can be directed to
a plotter, or read into the computer.
OUTPPRINOutputs a PCL raster dump of the display,
N/A
intended for a graphics printer.
L
<num,num><
>
F
<num,num,num><
<num,num,num><
<num,num,num><
L
<$><
>
F
L
>
<$><
F
L
<$><
>
F
L
>
F
L
>
F
L
>
F
OUTPRAWOutputs the selected raw data array. See
Figure 6-1 on page 6-3.
OUTPRIPLOutputs the peak-to-peak ripple between
selected points.
OUTPRPLBNDALLOutputs the measured ripple values for all
active frequency bands in the following
comma-separated value format: the number
of bands followed by pairs of numbers
representing the first band number (1),
ripple value of first band, second band
number (2), ripple value of second band,
and so on.
OUTPRPLBNDPFOutputs the pass/fail status for selected
frequency band (see
“SELBND”) as “1”
(band passes) or as “0” (band fails).
OUTPRPLBNDVALOutputs the ripple value for selected
frequency band (see “SELBND”).
integers 1–4:
1=S11 data
2=S
data
21
3=S
data
12
4=S
data
22
Frequency
range
N/A
N/A
N/A
L
<array><
>
F
<num,num><
<num,array><
L
<0|1><
<num><
>
F
L
>
F
L
>
F
L
>
F
1-53
Page 58
Alphabetical Command Reference
OUTP
Command Description RangeResponse
OUTPSEGAFOutputs the segment number and its limit
N/A
test st atus for a ll act ive segments. Th is is an
ASCII transfer.
OUTPSEGAMOutputs the limit test min/max for all
a,c
N/A
segments. Outputs the segment number,
max stimulus, max value, min stimulus,
min value for all active segments. This is an
ASCII transfer.
OUTPSEGFOutputs the limit test status for a specified
segment. See also “SELSEG.”
OUTPSEGMOutputs limit test min/max for a specified
segment. See also “SELSEG.”
OUTPSERNOutputs a string that contains the serial
a,c
N/A
a,c
N/A
a
N/A
number of the analyzer.
OUTPSTATReturns the status byte as an ASCII integer
N/A
(0–255) that can be interpreted as the 8-bit
status byte. Refer to “The Status Byte” on
page 7-6 for more information about the
status byte. This command is the same as
“STB?.”
OUTPTESSOutputs the test statusN/A
<array><
<array><
<0|1|−1><
L
F
L
F
L
<num,num><
L
>
<$><
F
L
<num><
>
F
>
>
>
F
L
>
F
OUTPTITLOutputs the display title in ASCII format.N/A
a. Refer to “Limit Line and Data Point Special Functions” on page 8-125.
b. See Table 1-1 on page 1-38 for the contents of the different arrays. Each array is output in the currently set form
determined by the FORM command. The data is in real/imaginary pairs, with the same number of pairs as points in the
sweep.
c. Values returned for limit test status are: 0 (fail), 1 (pass), or −1 (no limit).
d. This command outputs t he limit test results. The results consist of four f ields. First is the stimulus value for the point.
Second is an integer indicating test status. Third is the upper limit at that point. Fourth is the lower limit at that
point. If there are no limits at that point, the third and forth fields are zero.
<$><
L
>
F
1-54
Page 59
OUTP Reference Tables
Table 1-2. Error Coefficient Arrays
Alphabetical Command Reference
OUTP
Array
Response Response
& Isolation
01E
or E
R
T
EX (ED)
02ET (ER)ESE
03E
04E
05
06E
1-portEnhanced
b
E
D
R
Response
E
D
S
E
R
X
c
E
L
T
07E
08E
09E
10E
11E
12E
2-port
E
DF
E
SF
E
RF
E
XF
E
LF
E
TF
DR
SR
RR
XR
LR
TR
a
TRL/
LRM
E
E
E
E
E
E
E
E
E
E
E
E
DF
SF
RF
XF
LF
TF
DR
SR
RR
XR
LR
TR
O/E
Response
& Match
E
DR
E
SR
E
RR
E
XF
E
LF
E
TF
E
DF
E
SF
E
RF
E/O
Response
& Match
E
DI
E
S
E
R
E
X
E
T
a. One path, 2-port cal duplicates arrays 1 to 6 in arrays 7 to 12.
b. Response and isolation corrects for crosstalk and transmission tracking in transmission measurements, and for
directivity and reflection tracking in reflection measurements.
c. This term is used to generate the calibration coefficients, but is not used during measurement error correction.
Meaning of first subscript:Meaning of second subscript:
D: directivityF: forward
S: source matchR: reverse
R: reflection tracking
X: crosstalk or isolation
L: load match
T: transmission tracking
1-55
Page 60
Alphabetical Command Reference
PAUS
PAUS
PAUS;
Pauses the sequence; to be followed by CONS to resume the sequence. No query response.
PHAO
PHAO<num>; or PHAO?;
Command Description RangeQuery Response
PHAOSets the phase offset.0–360 degrees
<num><
L
>
F
PHAS
PHAS; or PHAS?;
Command Description Range Query Response
PHASSelects the phase display format. N/A
<0|1><
L
>
F
PLOT
PLOT;
Initiates a plot. Requires pass control mode when using the GPIB port. No query response.
NOTEThis command should be followed by a wait equal to 2 sweeps. Example wait
code written in BASIC:
OUTPUT 716;"POIN801;"
OUTPUT 716;”SWET?;”
ENTER 716;T
1-56
Page 61
Alphabetical Command Reference
WAIT 2*T
POL
POL<A|MLIN|MLOG|MRI>; or POL<A|MLIN|MLOG|MRI>?;
Command Description Range Query Response
POL
POLASelects the polar display format. N/A
POLMLINSelects linear as the marker readout format
for polar display.
POLMLOGSelects log as the marker readout format
for polar display.
POLMRISelects real/imaginary as the marker
readout format for polar display.
N/A
N/A
N/A
<0|1><
<0|1><
<0|1><
<0|1><
L
>
F
L
>
F
L
>
F
L
>
F
PORE
PORE<ON|OFF>; or PORE?;
Command Description Range Query Response
PORETurns port extensions on and off.N/A
<0|1><
L
>
F
PORT
PORT<1|2><num>[S];or PORT<1|2>?;
These commands set the port extension length for the indicated port or input.
Ports 1 and 2 refer to the test set ports.
Command Description RangeQuery Response
PORT1Port 1±10 seconds
PORT2Port 2±10 seconds
<num><
<num><
L
>
F
L
>
F
1-57
Page 62
Alphabetical Command Reference
PORTP
PORTP
PORTP<CPLD|UNCPLD>; or PORTP?;
Command Description Range
PORTPSelects either coupled or uncoupled for the
port powers of a given channel.
a. 0 = uncoupled
1 = coupled
N/A
Query Response
L
<0|1><
>
F
a
1-58
Page 63
Alphabetical Command Reference
POWE
POWE<num>[DB]; or POWE?;
Command Description RangeQuery Response
POWE
POWESets the output power level.output power
range of your
analyzer
a. The output power range of your analyzer depends upon the model and installed options. Refer to your analyzer’s
reference guide to determine the power range of your analyzer.
a
<num><
L
>
F
POWS
POWS; or POWS?;
Command Description Range Query Response
POWSSelects power sweep, from the sweep type
menu.
N/A
<0|1><
L
>
F
PRAN
Syntax
PRAN<num>;
Command Description RangeQuery Response
PRANSets the source power range.
a. PRAN0 through PRAN7 are used for ranges 0 through 7.
b. Use two-digit integers 01 through 12. PRAN01 through PRAN12 are used for ranges 0 through 11.
integers
integers
a
0–7
b
01–12
N/A
PRES
PRES;
Presets the analyzer to the factory preset state. OPC-compatible. No query response.
NOTEPressing the Preset key on the analyzer will either invoke the factory preset
state, or a user-selected state (if one has been set up). Sending the PRES
command will always invoke the factory preset state. This is true even if the
analyzer is currently set up to recall a user preset state when the
pressed. Refer to “Preset State and Memory Allocation” on page 9-1. For more
Preset key is
1-59
Page 64
Alphabetical Command Reference
PWRR
information on user presets, see your analyzer’s user’s guide.
NOTEThis command should use OPC? to prevent timing errors with subsequent
commands. Example code written in BASIC:
10 OUTPUT 716;"OPC?;PRES;"
20 ENTER 716;X
PWRR
PWRR<PMAN|PAUTO>; or PWRR?;
Command Description Range Query Response
L
PWRRSelects whether the power range is in auto
or manual mode.
a. 0 = manual mode
1 = auto mode
N/A
<0|1><
a
>
F
PULV [value];
Set pulse width search value.
PULW<ON|OFF>;
Select pulse width sear ch OF F /ON.
RAI
RAI<D|ISOL|RESP>;
Command Description Range Query Response
RAIDCompletes the response and isolation cal
sequence. OPC-compatible.
RAIISOLCalls the isolation class for the response
and isolation calibration.
N/AN/A
N/AN/A
RAIRESPCalls the response class for the response
and isolation calibration.
1-60
N/AN/A
Page 65
Alphabetical Command Reference
RAMD;
Response and match cal done.
READ
READ<DATE|TIME>;
Command Description Range Query Response
RAMD;
READDATEOutputs the date in the following string
format: DD MMM YYYY.
READTIMEOutputs the time in the following string
format: HH:MM:SS.
N/AN/A
N/AN/A
REAL
REAL; or REAL?;
Command Description RangeQuery Response
REALSets the display format to real.N/A
<0|1><
L
>
F
RECAREG
RECAREG<num>;
Command Description RangeQuery Response
RECAREGRecalls from save/recall registers 01–31.
OPC-compatible.
two-digit
integers 01–31
N/A
RECAREG<1-31>;
Recalls previously saved display colors. No query response.
RECEOUT<ON|OFF>;
Select path to receiver output; ON=CAL, OFF = OPT.
1-61
Page 66
Alphabetical Command Reference
RECO
RECO
RECO;
Recalls previously saved display colors. No query response.
REF
REF<D|L>;
Command Description RangeQuery Response
REFDCompletes the reflection calibration
subsequence of a 2-port calibration.
OPC-compatible.
REFLBegins the reflection calibration
subsequence of a 2-port calibration.
N/AN/A
N/AN/A
REF
REF<P|V><num>; or REF<P|V>?;
Command Description RangeQuery Response
REFPEnters the reference position. 0 is the
bottom, 10 is the top of the graticule.
REFVEnters the reference line value.
a. For log mag: ± 500 dB. For phase: ± 500 degrees. For Smith chart and Polar: ± 500 units. For linear magnitude: ±500
units. For SWR: ± 500 units. The scale is always positive, and has minimum values of 0.001dB, 10e−12 degrees,
10e−15 seconds, and 10 picounits.
integers 0–10
amplitude range
a
<num><
<num><
L
>
F
L
>
F
REFT
REFT;
Recalls file titles from disk. Requires pass control if using an external disk drive on GPIB. No
query response.
RESC
RESC;
Command Description RangeQuery Response
RESCResume a previously started cal sequence.N/AN/A
1-62
Page 67
Alphabetical Command Reference
RESD
RESD;
Command Description Range Query Response
RESD
RESDRestores the measurement display after
viewing the operating parameters or list
values.
N/A N/A
RESM;
Reset model 1.
RESPDONE
RESPDONE;
Command Description Range Query Response
RESPDONECompletes the response calibration
sequence. OPC-compatible.
N/A N/A
REST
REST;
Measurement restart. No query response.
REV
REV<I|M|T>;
These commands are OPC-compatible if there is only one standard in the class. If there is just
one standard, that standard is measured automatically. If there is more than one standard in
the class, the class command only calls another menu.
Command Description Range Query Response
REVICalls the reverse isolation calibration class
during a full 2-port calibration.
REVMCalls the reverse match calibration class
during a full 2-port calibration.
REVTCalls the reverse transmission calibration
class during a full 2-port calibration.
N/A N/A
N/AN/A
N/AN/A
1-63
Page 68
Alphabetical Command Reference
RLIMLINE
RLIMLINE
RLIMLINE<ON|OFF>; or RLIMLINE?;
Command Description RangeQuery Response
RLIMLINETurns the lines that represent the ripple
test limits on and off.
N/A
<0|1><
L
F
RLIMM
RLIMM<num>[DB]; or RLIMM?;
Command Description RangeQuery Response
RLIMMSets the value of the maximum allowable
ripple limit for current frequency band.
0.01 to 100 dB
<num><
L
>
F
RLIMSTP
RLIMSTP<num>[HZ|KHZ|MHZ|GHZ]; or RLIMSTP?;
Command Description RangeQuery Response
RLIMSTPSets the stop frequency of the current
frequency band.
a. Refer to “Preset State and Memory Allocation.”
stimulus range
a
<num><
L
>
F
>
RLIMSTR
RLIMSTR<num>[HZ|KHZ|MHZ|GHZ]; or RLIMSTR?;
Command Description RangeQuery Response
RLIMSTRSets the start frequency of the current
ripple limit.
a. Refer to “Preset State and Memory Allocation.”
stimulus range
a
<num><
L
>
F
RLIMTEST
RLIMTEST<ON|OFF>; or RLIMTEST?;
Command Description RangeQuery Response
RLIMTESTTurns the ripple limit test on and off. N/A
1-64
<0|1><
L
>
F
Page 69
Alphabetical Command Reference
RLIMVAL
RLIMVAL<OFF|ABS|MAR>;
Command Description RangeQuery Response
RLIMVAL
RLIMVALDisplays the ripple limit value of the
selected band (see “SELBND”) in absolute
format (AB S) or margin format (MAR). OFF
turns the displayed ripple limit value off.
N/AN/A
RST
RST;
Presets the analyzer to the factory preset state. OPC-compatible. See Chapter 9, “Preset State
and Memory Allocation” No query response.
NOTEPressing the Preset key on the analyzer will either invoke the factory preset
state, or a user-selected state (if one has been set up). Sending the RST
command will always invoke the factory preset state. This is true even if the
analyzer is currently set up to recall a user preset state when the
Preset key is
pressed. For more information on user presets, see your analyzer’s user’s guide.
S
S<11|12|21|22>; or S<11|12|21|22>?;
Command Description RangeQuery Response
S11Forward reflection measurementN/A
S12Reverse transmission measurementN/A
S21Forward transmission measurement N/A
S22
Reverse reflection measurement
N/A
<0|1><
<0|1><
<0|1><
<0|1><
L
>
F
L
>
F
L
>
F
L
>
F
SADD
SADD;
Adds a new segment to the table during a list-frequency, limit-table, cal sensor table, or
power loss table edit. No query response.
1-65
Page 70
Alphabetical Command Reference
SAV
SAV
SAV<1|2|C>;
Command Description Range Query Response
SAV1Completes the 1-port calibration sequence.
OPC-compatible.
SAV2Completes the 2-port calibration sequence.
OPC-compatible.
SAVCCompletes the transfer of error correction
coefficients back into the instrument.
OPC-compatible.
N/A N/A
N/AN/A
N/AN/A
SAVE
SAVEREG<num>;
Command Description RangeQuery Response
SAVEREGSaves to save/recall registers 01–31.
SAVEREG01 through SAVEREG05 are the
same as SAVE1 through SAVE5.
OPC-compatible.
two-digit
integers 01–31
N/A
SAVECSV
SAVECSV;
Saves the current measurement to the disk drive in the comma-separated value (CSV)
format. No query response.
SAVEJPG
SAVEJPG;
Saves the current display to the disk drive in the JPG format. OPC-compatible. No query
response.
1-66
Page 71
Alphabetical Command Reference
SAVU
SAVU<ASCI|BINA>;
Command Description Range Query Response
SAVU
SAVUASCISelects ASCII format for saving to disk.
Conforms to CITIFile specifications.
SAVUBINASelects binary format for saving to disk.N/AN/A
N/AN/A
SCAL
SCAL<num>; or SCAL?;
Command Description RangeQuery Response
SCALSets the trace scale factor.
a. For log mag: ± 500 dB. For phase: ± 500 degrees. For Smith chart and Polar: ±500 units. For linear magnitude: ± 500
units. For SWR: ± 500 units. The scale is always positive, and has minimum values of 0.001dB, 10e−12 degrees,
10e−15 seconds, and 10 picounits.
amplitude range
a
<num><
L
>
F
SDEL
SDEL;
Deletes the current segment while editing a list frequency, a limit table, or a power loss list. No query
response.
SDON
SDON;
Closes a segment after editing a list frequency, a limit table, or a power loss list.No query response.
SEA
SEA<L|R>;
SEA<MAX|MIN|OFF>; or SEA<MAX|MIN|OFF>?;
SEATARG<num>; or SEATARG?;
These commands control the marker searches. The marker searches place the active marker
according to the indicated search criteria. The search is continuously updated if tracking is
1-67
Page 72
Alphabetical Command Reference
SEDI
ON (see “TRACK”).
Command Description RangeQuery Response
SEALSearch left for next occurrence of the target
N/AN/A
value.
SEAMAXSearch for trace maximum on the current
N/A
channel.
SEAMINSearch for trace minimum on the current
N/A
channel.
SEAOFFTurns the marker search off. N/A
SEARSearch right for next occurrence of the
N/AN/A
<0|1><
<0|1><
<0|1><
L
>
F
L
>
F
L
>
F
target value.
SEATARGSet the search target amplitude.
a. For log mag: ± 500 dB. For phase: ± 500 degrees. For Smith chart and Polar: ±500 units.
For linear magnitude: ± 500 units. For SWR: ± 500 units.
amplitude range
a
<num><
L
>
F
SEDI
SEDI<num>; or SEDI?;
Command Description RangeQuery Response
SEDIDuring either a frequency, limit, or power
loss table edit, selects segment <num> for
editing.
state dependent.
Range for
frequency segment
= 1 to 30. Range for
limit test segment =
1 to 18 . Range for
power loss table
segment = 1 to 12
<num><
L
>
F
SEG
SEG<IFBW|POWER><num>;
Command Description RangeQuery Response
SEGIFBWSets the IFBW for the active segment of a
list-frequency table in swept list mode.
SEGPOWERSets the power for the active segment of a
list-frequency table in swept list mode.
1-68
Choose from 10,
30, 100, 300,
1000, 3000,
3700, 6000
output power
range of your
analyzer
a
see “Note” below
see “Note below
Page 73
Alphabetical Command Reference
SEL
a. The output power range is dependent upon the model and option configuration of your analyzer. Refer to your
analyzer’s reference guide to determine the output power range of your analyzer.
NOTECurrently these commands can be queried by sending the command followed by
the OUTPACTI command, as in the following example to query the upper limit
value:
10 OUTPUT 716;”SEGIFBW;OUTPACTI;”
Future revisions of firmware may support the standard query form (which
currently always returns a zero) for these commands.
SEL
SEL<MAXPT|MINPT|PT|SEG><num>; or SEL<MAXPT|MINPT|PT|SEG>?;
Command Description RangeQuery Response
SELMAXPTSelects the last point number in the range
of points that the
report.
SELMINPTSelects the first point number in the range
of points that the
report.
SELPTSelects the point number that the
OUTPDATR command will
OUTPDATR command will
OUTPDATP command will report.
SELSEGSelects the segment number to report on
for the
OUTPSEGF and OUTPSEGM
commands.
0 to n−1, where
n=number of
points
0 to n−1, where
n=number of
points
0 to n−1, where
n=number of
points
integers 1–18
<num><
<num><
<num><
<num><
L
>
F
L
>
F
L
>
F
L
>
F
NOTEFor the definition of a limit segment, see “Limit Line and Data Point Special
Functions” on page 8-125.
SELBND
SELBND<num>; or SELBND?;
Command Description RangeQuery Response
SELBNDSelects the ripple frequency band for the
following commands: OUTPRPLBNDPF,
OUTPRPLBNDVAL, and RLIMVAL.
integers 1−12
<num><
L
>
F
1-69
Page 74
Alphabetical Command Reference
SET
SET
SET<Z><num>; or SET<BIT|Z>?;
SET<DATE|TIME><$>;
Command Description RangeQuery Response
SETDATESets the date in the following format: DD
MMM YYYY, where DD is the day and must
be 2 digits, MMM is the month and must be
three alpha characters (JAN, FEB, MAR,
APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV,
DEC), and YYYY is the year and must be 4
digits.
SETTIMESets the time in the following format:
HH:MM:SS, where HH is the hour, MM is
minutes, SS is seconds, and each must be 2
digits.
SETZSets the characteristic impedance of the
measurement system.
SING
SING;
Single sweep. OPC-compatible. No query response.
SLI
See “Description .”N/A
See “Description .”N/A
0.1 to 500 Ω
<num><
L
>
F
SLI<D>;
Sliding load done. No query response.
SMI
SMI<C|MGB|MLIN|MLOG|MRI|MRX>; or SMI<C|MGB|MLIN|MLOG|MRI|MRX>?;
Command Description Range Query Response
SMICSelects Smith chart display format. N/A
SMIMGBSelects G+jB (conductance and
susceptance) marker readout on a Smith
chart.
SMIMLINSelects linear magnitude marker readout
on a Smith chart.
N/A
N/A
1-70
<0|1><
<0|1><
<0|1><
L
>
F
L
>
F
L
>
F
Page 75
Alphabetical Command Reference
Command Description Range Query Response
SMOO
SMIMLOGSelects log magnitude marker readout on a
Smith chart.
SMIMRISelects real/imaginary pairs (resistance
and reactance) marker readout on a Smith
chart.
SMIMRXSelects R + jX marker readout on a Smith
chart.
N/A
N/A
N/A
<0|1><
<0|1><
<0|1><
L
>
F
L
>
F
L
>
F
SMOO
SMOOAPER<num>; or SMOOAPER?;
SMOOO<ON|OFF>; or SMOOO?;
Command Description RangeQuery
Response
SMOOAPERSets the smoothing aperture as a percent of the
trace.
SMOOOSelects whether smoothing is on or off. N/A
0.05 to 20%
<num><
<0|1><
L
>
F
L
>
F
SOFR
SOFR;
Displays the firmware revision on the screen. No query response.
SOFT
SOFT<num>;
Command Description RangeQuery Response
SOFTActs as though the indicated softkey was
pressed.
integers 1–8 N/A
SOUP
SOUP<ON|OFF>; or SOUP?;
Command Description Range Query Response
SOUPSelects whether the source power is on or
off.
N/A
<0|1><
L
>
F
1-71
Page 76
Alphabetical Command Reference
SPAN
SPAN
SPAN<num>[HZ|DB]; or SPAN?;
Command Description RangeQuery Response
SPANSets the stimulus span value. If a list
frequency segment is being edited, sets the
span of the list segment.
a. For frequency or power sweeps, refer to “Preset State and Memory Allocation,” in your analyzer’s reference guide.
For CW time: 0 to 24 hours. For frequency sweep, transform on: ± 1/frequency step. For CW time sweep, transform
on: ±1/time step.
stimulus range
a
<num><
L
>
F
SPLD
SPLD<ON|OFF>; or SPLD?;
Command Description RangeQuery Response
SPLDTurns the split display mode on and off. N/A
<0|1><
L
>
F
SPLID
SPLID<1|2|4>; or SPLID<1|2|4>?;
Command Description Range Query Response
SPLID1Puts all displayed channels on one full-size
graticule.
N/A
<0|1><
L
>
F
SPLID2Puts all displayed channels on two
graticules.
SPLID4Puts each displayed channel on a separate
graticule.
N/A
N/A
<0|1><
<0|1><
L
>
F
L
>
F
SRE
SRE<num>; or SRE?;
Command Description RangeQuery Response
SREService request enable. A bit set in <num>
enables the corresponding bit in the status
byte to generate an SRQ.
1-72
integers 0–255
<num><
L
>
F
Page 77
Alphabetical Command Reference
SSEG
SSEG<num>; or SSEG?;
Command Description RangeQuery Response
SSEG
SSEGSelects the desired segment of the
frequency list for a list frequency sweep.
See also “ASEG”.
integers 1–30
<num><
L
>
F
STAN
STAN<A|B|C|D|E|F|G>;
Standards A through G are associated with softkeys 1 through 7, respectively.
Command Description RangeQuery
Response
STANAThese 7 commands (OPC-compatible) select a
STANBN/AN/A
STANCN/AN/A
STANDN/AN/A
STANEN/AN/A
STANFN/AN/A
STANGN/AN/A
standard from a class during a calibration sequence.
If a class is requested, as in CLASS11A (S11 1-port
cal) the analyzer will do one of two things:
• If there is only one standard in the class, it will
measure that standard automatically.
• If there are several standards in the class, then
one of these commands must be used to select
one of these standards, causing it to be
measured.
N/A N/A
STAR
STAR<num>[HZ|DB]; or STAR?;
Command Description RangeQuery Response
STARSets the start stimulus value. If a list
frequency segment is being edited, sets the
start of the list segment.
a. For frequency or power sweeps, refer to “Preset State and Memory Allocation,” in your analyzer’s reference guide.
For CW time: 0 to 24 hours. For frequency sweep, transform on: ± 1/frequency step. For CW time sweep, transform
on: ±1/time step.
stimulus range
a
<num><
L
>
F
1-73
Page 78
Alphabetical Command Reference
STB?
STB?
STB?;
Command Description RangeQuery Response
STB?Query only. Outputs the status byte in
ASCII format (FORM4). Same as
OUTPSTAT.
N/A
<num><
L
>
F
STEPSWP
Syntax
STEPSWP<ON|OFF>; or STEPSWP?;
Command Description RangeQuery Response
STEPSWPTurns step sweep mode on or off.N/A
<0|1><
L
>
F
STOP
STOP<num>[HZ|DB]; or STOP?;
Command Description RangeQuery Response
STOPSets the stop stimulus value. If a list
frequency segment is being edited, sets the
stop of the list segment.
stimulus range
a
<num><
L
>
F
a. For frequency or power sweeps, refer to “Preset State and Memory Allocation,” in your analyzer’s reference guide.
For CW time: 0 to 24 hours. For frequency sweep, transform on: ± 1/frequency step. For CW time sweep, transform
on: ±1/time step.
STPSIZE
STPSIZE<num>[HZ|DB]; or STPSIZE?;
Command Description RangeQuery Response
STPSIZESets the step size while editing a list
frequency segment.
a. For frequency or power sweeps, refer to “Preset State and Memory Allocation,” in your analyzer’s reference guide.
For CW time: 0 to 24 hours. For frequency sweep, transform on: ±1/frequency step. For CW time sweep, transform
on: ±1/time step.
stimulus range
a
<num><
1-74
L
>
F
Page 79
Alphabetical Command Reference
SWE
SWEA;
SWET<num>[S]; or SWET?;
Command Description RangeQuery Response
SWE
SWEAAutomatically selects the fastest sweep
time based on the current analyzer settings
for number of points, IF bandwidth, sweep
mode, averaging condition and frequency
span.
SWETSets the sweep time. (Setting SWET0 is
equivalent to sending the
SWEA command.)
N/A N/A
0–86,400 s
<num><
L
>
F
NOTEThe SWET command should be followed by a wait equal to 2 sweeps. Example
wait code written in BASIC:
10 OUTPUT 716;"SWET.1;"
20 WAIT 2*.1
SWR
SWR; or SWR?;
Command Description RangeQuery Response
SWRSelects the SWR display format.N/A
<0|1><
L
>
F
TESS?
TESS?;
Command Description Range Query Response
TESS?Query only. Queries whether a test set is
connected. Returns a one on the standard
analyzer.
N/A
<0|1><
L
>
F
1-75
Page 80
Alphabetical Command Reference
TINT
TINT
TINT<num>; or TINT?;
Command Description RangeQuery Response
TINTAdjusts the tint for the selected display
feature.
integers 0–100
<num><
L
>
F
TIT
TIT<F|REG><num><$>;
TIT<L><$>;
TITSQ;
Command Description Range Query Response
TITFTitles the indicated file numbers.<num>: 1–5
<$>: 10 char. max.
TITLEnters a new display title.48 characters maxN/A
TITREGTitles save/recall registers 01 through 31.
TITREG01 through TITREG05 are the
same as
TITR1 through TIT R5.
<num>: 01–31
<$>: 10 char. max.
N/A
N/A
TRA
TRA<D|N>;
Command Description RangeQuery Response
TRADCompletes the transmission calibration
subsequence of a 2-port calibration or
enhanced response calibration.
OPC-compatible.
TRANBegins the transmission calibration
subsequence of a 2-port calibration or
enhanced response calibration.
N/A N/A
N/AN/A
TRACK
TRACK<ON|OFF>; or TRACK?;
Command Description Range Query Response
TRACKTurns marker search tracking on and off.N/A
1-76
<0|1><
L
>
F
Page 81
Alphabetical Command Reference
20 ENTER 716;X
TRIG
TRIG;
Wait for sweep trigger.
TST?
TST?;
Command Description RangeQuery Response
TRIG
TST?Query only. Causes a self test and returns a
zero if the test is passed.
N/A
<num><
L
>
F
TSTP
TSTP<P1|P2>;
Selects test port 1 or 2 for non-S-parameter measurements. No query response.
UP
UP;
Increments the value displayed in the active entry area (emulates pressing the up-arrow key).No query response.
USEPASC
USEPASC; or USEPASC?;
Command Description Range Query Response
USEPASCPuts the analyzer in pass control mode.N/A
<0|1><
L
>
F
VELOFACT
VELOFACT<num>; or VELOFACT?;
Command Description RangeQuery Response
VELOFACTEnters the velocity factor of the
transmission medium.
0 to 10
<num><
L
>
F
1-77
Page 82
Alphabetical Command Reference
WID
WID
WIDT<ON|OFF>; or WIDT?;
WIDV<num>; or WIDV?;
Command Description Range Query Response
WIDTTurns the bandwidth search on and off. N/A
WIDVEnters the widths search parameter.
a. For log mag: ± 500 dB. For phase: ± 500 degrees. For Smith chart and Polar: ±500 units.
For linear magnitude: ± 500 units. For SWR: ± 500 units.
amplitude range
a
<0|1><
<num><
L
>
F
L
>
F
WINDUSEM
WINDUSEM;
Uses trace memory as window.
WRSK
WRSK<num><$>;
Command Description Range Query Response
WR SKEnter s new softkey labels in to the indica ted
softkey positions. Initial use of these
commands requires previous commands
MENUFORM; and MENUOFF;.
CLASS22A
CLASS22B
CLASS22C
CLEARALL
CLEAREG
DATI
DONE
EDITDONE
FWDI
FWDM
FWDT
ISOD
MANTRIG
NUMG
PRES
RAID
RECAREG
REFD
RESPDONE
REVI
REVM
REVT
RST
SAV1
SAV2
SAVC
SAVEJPG
SAVEREG
SING
STAN
TRAD
2-4
Page 89
3
Introduction to Instrument Control3-2
Instrument Control using the VXIplug&play Driver3-3
Instrument Control using HP BASIC3-9
Introduction to Instrument Control
Page 90
Introduction to Instrument Control
Introduction to Instrument Control
Introduction to Instrument Control
In this chapter, you can find an introduction to the remote operation of your analyzer using
an external controller. You should be familiar with the operation of the analyzer before
attempting to remotely control the analyzer over the General Purpose Interface Bus (GPIB).
See the analyzer’s user’s guide and reference guide for operating information.
This manual is not intended to teach programming or to discuss GPIB theory except at an
introductory level.
Programming examples that demonstrate the remote operation of the analyzer are
documented in Chapter 8, “Programming Examples” and are also provided on the CD-ROM
that was shipped with this manual. All example programs are provided in HP BASIC, and
most are also provided in Visual C++ and Visual BASIC for use with the VXIplug&play driver.
3-2
Page 91
Introduction to Instrument Control
Instrument Control using the VXIplug&play Driver
Instrument Control using the VXIplug&play Driver
VXIplug&play is a term indicating conformance to a set of system-level standards produced
by the VXIplug&play Systems Alliance. The charter of the alliance was “to improve the
effectiveness of VXI-based solutions by increasing ease-of-use and improving the
interoperability of multi-vendor VXI systems.”
Installing the VXIplug&play driver on your computer will allow you to control the analyzer
via common programming environments without having to learn the instrument-specific
mnemonics.
Requirements
The VXIplug&play driver for your analyzer is designed for a PC operating Windows 95 or
Windows NT version 3.51 or higher. The driver requires a virtual instrument software
architecture (VISA)-compatible GPIB interface, and the VISA I/O Library version 1.1 or
higher. The driver is compatible with the following programming environments:
• Microsoft Visual Basic, version 4.0 or higher
• Microsoft Visual C++, version 4.0 or higher
• Borland C++, version 4.5 or higher
• HP VEE, version 3.2 or higher
• National Instruments LabWindows/CVI, version 4.0.1 or higher
• National Instruments LabVIEW, version 4.0.1 or higher
Installing the VXIplug&play Driver
NOTEThis procedure assumes that you have installed a VISA-compatible GPIB
interface and the VISA I/O library, version 1.1 or higher. It also assumes that
you have installed—and are familiar with—one of the programming
environments listed above.
1. The install program for the VXIplug&play driver for your analyzer is located in the root
directory of the CD-ROM that accompanied this manual. The file is titled “875x.exe”
a. If you need to order a new CD-ROM, contact Agilent Technologies and order part
number 08703-10202.
b. You can also download the file from the Web. Go to http://www.tm.agilent.com and
follow the “Software and Driver” and “Instrument Driver” links.
2. Run “875x.exe” to install the VXIplug&play driver on your computer. The default
directory that is used by the install-shield is vxipnp\winxx\hp875x, where winxx
designates the operating system in use by your computer, such as winnt, win95, etc.
3. If you have difficulty installing the VXIplug&play driver, contact Agilent Technologies by
calling the nearest sales or service office.
3-3
Page 92
Introduction to Instrument Control
Instrument Control using the VXIplug&play Driver
System Setup
1. Use an GPIB interconnect cable (such as 10833A/B/C/D) to connect the analyzer to the
GPIB interface card on your computer.
2. Switch on the computer.
3. Switch on the analyzer.
a. To verify the analyzer's address, press:
Local, SET ADDRESSES, ADDRESS: 8703
The analyzer has only one GPIB interface, though it occupies two addresses: one for
the instrument and one for the display. The display address is equal to the instrument
address with the least-significant bit incremented. The display address is
automatically set each time the instrument address is set.
The default analyzer addresses are:
—16 for the instrument
—17 for the display
CAUTIONOther devices connected to the bus cannot occupy the same address as the
analyzer or the display.
The analyzer should now be displaying the instrument's address in the upper right
section of the display. If the address is not 16, return the address to its default setting
(16) by pressing:
16, x1, Preset
b. Set the system control mode to either “pass-control” or “talker/listener” mode. These
are the only control modes in which the analyzer will accept commands over GPIB. To
set the system-control mode, press:
Local, TALKER/LISTENER
or
Local, USE PASS CONTROL
3-4
Page 93
Introduction to Instrument Control
Instrument Control using the VXIplug&play Driver
Verifying the Bus Connection
Check the interface bus connection and operation by following the appropriate procedure
(for the type of interface card you are using) below.
Interface Bus Verification Procedure (GPIB Interface Card)
1. Check the bus connection by running the VISA Assistant in the I/O Libraries. The VISA
Assistant will automatically report what it finds on the bus. Notice that the VISA
Assistant is reporting instruments at addresses 16 and 17. As mentioned earlier, these
addresses designate the instrument and its display, respectively.
Figure 3-1.VISA Assistant Window
2. To further verify GPIB operation, send a preset command to the analyzer by doing the
following in the VISA Assistant window:
a. Single-click on “GPIB0::16::INSTR” to highlight it.
b. Make sure that the “Formatted I/O” tab is selected.
c. Enter PRES; in the text box.
d. Click on “viPrintf.”
e. This command should preset the analyzer. If an instrument preset does not occur,
there is a problem. Check all GPIB address settings and physical connections. Most
GPIB problems are caused by an incorrect address or faulty/loose GPIB cables.
3-5
Page 94
Introduction to Instrument Control
Instrument Control using the VXIplug&play Driver
Interface Bus Verification Procedure (National Instruments Card)
1. Check the bus connection by running Win32 VISA Interactive Control. When this program
is run, it automatically reports what it finds on the bus. Notice that the program is
reporting instruments at addresses 16 and 17. As mentioned earlier, these addresses
designate the instrument and its display, respectively.
Figure 3-2.Win32 VISA Interactive Control Window: Bus Report
2. To further verify GPIB operation, double click on “GPIB0::16::INSTR” and then perform
the following steps.
a. Make sure that the “Basic I/O” tab is selected.
b. Click on the “Write” tab.
c. Enter PRES; in the “Buffer” text box.
d. Click on “Execute.”
e. This command should preset the analyzer. If an instrument preset does not occur,
there is a problem. Check all GPIB address settings and physical connections. Most
GPIB problems are caused by an incorrect address or faulty/loose GPIB cables.
3-6
Page 95
Instrument Control using the VXIplug&play Driver
Figure 3-3.Win32 VISA Interactive Control: Sending a Command
Introduction to Instrument Control
Controlling the Analyzer with the VXIplug&play Driver
The “Programming Examples” CD-ROM that was shipped with this manual includes many
example programs that can be used to control your analyzer. The following sections provide
some information on using the VXIplug&play driver with the Visual C++ and Visual BASIC
programming environments.
Using Visual BASIC to Control the Analyzer
When using Visual BASIC, you will need to include the two files listed below in your project.
They were installed on your computer in the following directories when you installed the
driver:
• \vxipnp\winxx\hp875x\hp875x.bas
• \vxipnp\winxx\include\visa32.bas
NOTEThe directories shown above are the default locations for these files. (“winxx”
indicates the operating system you are using, such as winnt, win95, etc.) If you
designated a different path during installation, you will need to amend the path
above to include the specific path that you indicated during installation.
3-7
Page 96
Introduction to Instrument Control
Instrument Control using the VXIplug&play Driver
Using Visual C++ to Control the Analyzer
When using Visual C++, you will need to include the file listed below in your project. The file
was installed on your computer in the following directory when you installed the driver:
\vxipnp\winxx\lib\msc\hp875x_32.lib
NOTEThe directory shown above is the default location for this file. (“winxx”
indicates the operating system you are using, such as winnt, win95, etc.) If you
designated a different path during installation, you will need to amend the path
above to include the specific path that you indicated during installation.
3-8
Page 97
Introduction to Instrument Control
Instrument Control using HP BASIC
Instrument Control using HP BASIC
This section describes how to control the analyzer using HP BASIC 6.2 (or higher), or
HP BASIC for Windows 6.3 (or higher) on one of the following computers:
• HP 9000 Series 200/300
• HP 9000 Series 700 with HP BASIC-UX
• PC with a GPIB interface card installed
.
Table 3-1. Additional BASIC 6.2 Programming Information
Description HP/Agilent
Part Number
HP BASIC 6.2 Programming Guide98616-90010
HP BASIC 6.2 Language Reference (2 Volumes)98616-90004
Using HP BASIC for Instrument Control, Volume I82303-90001
Using HP BASIC for Instrument Control, Volume II82303-90002
HP BASIC for Windows Manual SetE2060-90100
Table 3-2. Additional GPIB Information
Description HP/Agilent
Part Number
HP BASIC 6.2 Interface Reference98616-90013
Tutorial Description of the General Purpose Interface Bus5021-1927
Required Equipment
• Computer running HP BASIC 6.2 (or higher) or HP BASIC for Windows 6.3 (or higher)
• Supported GPIB interface card
• GPIB interconnect cables (such as 10833A/B/C/D)
System Setup and GPIB Verification
1. Connect the analyzer to the computer with an GPIB cable.
3-9
Page 98
Introduction to Instrument Control
Instrument Control using HP BASIC
Figure 3-4.The Analyzer System with Controller
2. Switch on the computer, and launch HP BASIC or HP BASIC for Windows.
3. Switch on the analyzer.
a. To verify the analyzer's address, press:
Local, SET ADDRESSES, ADDRESS: 8703
The analyzer has only one GPIB interface, though it occupies two addresses: one for
the instrument and one for the display. The display address is equal to the instrument
address with the least-significant bit incremented. The display address is
automatically set each time the instrument address is set.
The default analyzer addresses are:
—16 for the instrument
—17 for the display
CAUTIONOther devices connected to the bus cannot occupy the same address as the
analyzer.
The analyzer displays the instrument's address in the upper right section of the
display. If the address is not 16, return the address to its default setting (16) by
pressing:
3-10
16, x1, Preset
Page 99
Introduction to Instrument Control
Instrument Control using HP BASIC
b. Set the system control mode to either “pass-control” or “talker/listener” mode. These
are the only control modes in which the analyzer will accept commands over GPIB. To
set the system-control mode, press:
Local, TALKER/LISTENER
or
Local, USE PASS CONTROL
4. Check the interface bus by performing a simple command from the computer controller.
Type the following command on the controller:
OUTPUT 716;”PRES;”
Execute, or Return
NOTEHP 9000 Series 300 computers use the Return key as both execute and enter.
Some other computers may have an
Enter, Execute, or Exec key that performs
the same function. For reasons of simplicity, the notation Return is used
throughout this document.
This command should preset the analyzer. If an instrument preset does not occur, there is
a problem. Check all GPIB addresses and connections. Most GPIB problems are caused by
an incorrect address or faulty/loose GPIB cables.
3-11
Page 100
Introduction to Instrument Control
Instrument Control using HP BASIC
Sending Commands
A remote controller can manipulate the functions of the analyzer by sending commands to
the analyzer via the General Purpose Interface Bus (GPIB). The commands used are specific
to the analyzer. Remote commands executed over the bus take precedence over manual
commands executed from the instrument's front panel. Remote commands are executed as
soon as they are received by the analyzer. A command only applies to the active channel
(except in cases where functions are coupled between channels). Most commands are
equivalent to front-panel hardkeys and softkeys.
Command Structure in BASIC
Consider the following BASIC command for setting the analyzer's start frequency to 50 MHz:
OUTPUT 716;”STAR 50 MHZ;”
The command structure in BASIC has several different elements:
the BASIC command statement OUTPUT - The BASIC data-output statement.
the appendage 716 - The data is directed to interface 7 (GPIB), and
on to the device at address 16 (the analyzer). This
appendage is terminated with a semicolon. The next
appendage is STAR, the instrument mnemonic for
setting the analyzer's start frequency.
data 50 - a single operand used by the root mnemonic STAR
to set the value.
unit MHZ - the units that the operand is expressed in.
terminator ; - indicates the end of a command, enters the data,
and deactivates the active-entry area.
The “STAR 50 MHZ;” command performs the same function as pressing the following keys
on the analyzer's front panel:
Start, 50, M/u
STAR is the root mnemonic for the start key, 50 is the data, and MHZ are the units. Where
possible, the analyzer's root mnemonics are derived from the equivalent key label. Otherwise
they are derived from the common name for the function. Chapter 1, “Alphabetical
Command Reference” lists all the root mnemonics and all the different units accepted.
The semicolon (;) following MHZ terminates the command within the analyzer. It removes
start frequency from the active-entry area, and prepares the analyzer for the next command.
If there is a syntax error in a command, the analyzer will ignore the command and look for
the next terminator. When it finds the next terminator, it starts processing incoming
commands normally. Characters between the syntax error and the next terminator are lost.
A line feed also acts as a terminator. The BASIC OUTPUT statement transmits a carriage
return/line feed following the data. This can be suppressed by putting a semicolon at the end
of the statement.
3-12
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.