User`s guide
Table Of Contents
- Agilent E5061A/E5062A ENA Series ENA Series RF Network Analyzers
- 1 Making Effective Use of This Manual
- 2 Overview of Remote Control
- 3 Setting Up the Analyzer
- 4 Performing a Calibration
- 5 Making a Measurement
- 6 Analyzing Data
- 7 Reading/Writing Measurement Data
- 8 Limit Test
- 9 Saving and Recalling (File Management)
- 10 Communication with External Instruments Using Handler I/O Port
- 11 Working with Automatic Test Systems
- 12 Sample Application Programs
- 13 SCPI Command Reference
- Notational conventions in this command reference
- IEEE Common Commands
- E5061A/E5062A commands
- :ABOR
- :CALC{1-4}:BLIM
- :CALC{1-4}:BLIM:DB
- :CALC{1-4}:BLIM:DISP:MARK
- :CALC{1-4}:BLIM:DISP:VAL
- :CALC{1-4}:BLIM:FAIL?
- :CALC{1-4}:BLIM:MAX
- :CALC{1-4}:BLIM:MIN
- :CALC{1-4}:BLIM:REP?
- :CALC{1-4}:CONV
- :CALC{1-4}:CONV:FUNC
- :CALC{1-4}:CORR:EDEL:TIME
- :CALC{1-4}:CORR:OFFS:PHAS
- :CALC{1-4}:DATA:FDAT
- :CALC{1-4}:DATA:FMEM
- :CALC{1-4}:DATA:SDAT
- :CALC{1-4}:DATA:SMEM
- :CALC{1-4}:FORM
- :CALC{1-4}:FUNC:DATA?
- :CALC{1-4}:FUNC:DOM
- :CALC{1-4}:FUNC:DOM:COUP
- :CALC{1-4}:FUNC:DOM:STAR
- :CALC{1-4}:FUNC:DOM:STOP
- :CALC{1-4}:FUNC:EXEC
- :CALC{1-4}:FUNC:PEXC
- :CALC{1-4}:FUNC:POIN?
- :CALC{1-4}:FUNC:PPOL
- :CALC{1-4}:FUNC:TARG
- :CALC{1-4}:FUNC:TTR
- :CALC{1-4}:FUNC:TYPE
- :CALC{1-4}:LIM
- :CALC{1-4}:LIM:DATA
- :CALC{1-4}:LIM:DISP
- :CALC{1-4}:LIM:DISP:CLIP
- :CALC{1-4}:LIM:FAIL?
- :CALC{1-4}:LIM:OFFS:AMPL
- :CALC{1-4}:LIM:OFFS:MARK
- :CALC{1-4}:LIM:OFFS:STIM
- :CALC{1-4}:LIM:REP:ALL?
- :CALC{1-4}:LIM:REP?
- :CALC{1-4}:LIM:REP:POIN?
- :CALC{1-4}:MARK:BWID
- :CALC{1-4}:MARK:COUP
- :CALC{1-4}:MARK:FUNC:DOM
- :CALC{1-4}:MARK:FUNC:DOM:COUP
- :CALC{1-4}:MARK:FUNC:DOM:STAR
- :CALC{1-4}:MARK:FUNC:DOM:STOP
- :CALC{1-4}:MARK:FUNC:MULT:PEXC
- :CALC{1-4}:MARK:FUNC:MULT:PPOL
- :CALC{1-4}:MARK:FUNC:MULT:TARG
- :CALC{1-4}:MARK:FUNC:MULT:TRAC
- :CALC{1-4}:MARK:FUNC:MULT:TTR
- :CALC{1-4}:MARK:FUNC:MULT:TYPE
- :CALC{1-4}:MARK:MATH:FLAT
- :CALC{1-4}:MARK:MATH:FLAT:DATA?
- :CALC{1-4}:MARK:MATH:FST
- :CALC{1-4}:MARK:MATH:FST:DATA?
- :CALC{1-4}:MARK:MATH:STAT
- :CALC{1-4}:MARK:MATH:STAT:DATA?
- :CALC{1-4}:MARK:NOTC
- :CALC{1-4}:MARK:REF
- :CALC{1-4}:MARK{1-10}
- :CALC{1-4}:MARK{1-10}:ACT
- :CALC{1-4}:MARK{1-10}:BWID:DATA?
- :CALC{1-4}:MARK{1-10}:BWID:THR
- :CALC{1-4}:MARK{1-10}:DISC
- :CALC{1-4}:MARK{1-10}:FUNC:EXEC
- :CALC{1-4}:MARK{1-10}:FUNC:PEXC
- :CALC{1-4}:MARK{1-10}:FUNC:PPOL
- :CALC{1-4}:MARK{1-10}:FUNC:TARG
- :CALC{1-4}:MARK{1-10}:FUNC:TRAC
- :CALC{1-4}:MARK{1-10}:FUNC:TTR
- :CALC{1-4}:MARK{1-10}:FUNC:TYPE
- :CALC{1-4}:MARK{1-10}:NOTC:DATA?
- :CALC{1-4}:MARK{1-10}:NOTC:THR
- :CALC{1-4}:MARK{1-10}:SET
- :CALC{1-4}:MARK{1-10}:X
- :CALC{1-4}:MARK{1-10}:Y?
- :CALC{1-4}:MATH:FUNC
- :CALC{1-4}:MATH:MEM
- :CALC{1-4}:MST
- :CALC{1-4}:MST:DATA?
- :CALC{1-4}:PAR:COUN
- :CALC{1-4}:PAR{1-4}:DEF
- :CALC{1-4}:PAR{1-4}:SEL
- :CALC{1-4}:RLIM
- :CALC{1-4}:RLIM:DATA
- :CALC{1-4}:RLIM:DISP:LINE
- :CALC{1-4}:RLIM:DISP:SEL
- :CALC{1-4}:RLIM:DISP:VAL
- :CALC{1-4}:RLIM:FAIL?
- :CALC{1-4}:RLIM:REP?
- :CALC{1-4}:SMO
- :CALC{1-4}:SMO:APER
- :CONT:HAND:A
- :CONT:HAND:B
- :CONT:HAND:C
- :CONT:HAND:C:MODE
- :CONT:HAND:D
- :CONT:HAND:D:MODE
- :CONT:HAND:E
- :CONT:HAND:F
- :CONT:HAND:IND:STAT
- :CONT:HAND:OUTP{1-2}
- :CONT:HAND:RTR:STAT
- :DISP:ANN:FREQ
- :DISP:CCL
- :DISP:CLOC
- :DISP:COL{1-2}:BACK
- :DISP:COL{1-2}:GRAT{1-2}
- :DISP:COL{1-2}:LIM{1-2}
- :DISP:COL{1-2}:RES
- :DISP:COL{1-2}:TRAC{1-4}:DATA
- :DISP:COL{1-2}:TRAC{1-4}:MEM
- :DISP:ECHO
- :DISP:ECHO:CLE
- :DISP:ENAB
- :DISP:FSIG
- :DISP:IMAG
- :DISP:MAX
- :DISP:SKEY
- :DISP:SPL
- :DISP:TABL
- :DISP:TABL:TYPE
- :DISP:UPD
- :DISP:WIND{1-4}:ACT
- :DISP:WIND{1-4}:ANN:MARK:ALIG
- :DISP:WIND{1-4}:ANN:MARK:SING
- :DISP:WIND{1-4}:LAB
- :DISP:WIND{1-4}:MAX
- :DISP:WIND{1-4}:SPL
- :DISP:WIND{1-4}:TITL
- :DISP:WIND{1-4}:TITL:DATA
- :DISP:WIND{1-4}:TRAC{1-4}:ANN:MARK:POS:X
- :DISP:WIND{1-4}:TRAC{1-4}:ANN:MARK:POS:Y
- :DISP:WIND{1-4}:TRAC{1-4}:ANN:YAX:MODE
- :DISP:WIND{1-4}:TRAC{1-4}:MEM
- :DISP:WIND{1-4}:TRAC{1-4}:STAT
- :DISP:WIND{1-4}:TRAC{1-4}:Y:AUTO
- :DISP:WIND{1-4}:TRAC{1-4}:Y:PDIV
- :DISP:WIND{1-4}:TRAC{1-4}:Y:RLEV
- :DISP:WIND{1-4}:TRAC{1-4}:Y:RPOS
- :DISP:WIND{1-4}:TRAC{1-4}:Y:TRAC:FREQ
- :DISP:WIND{1-4}:TRAC{1-4}:Y:TRAC:MODE
- :DISP:WIND{1-4}:X:SPAC
- :DISP:WIND{1-4}:Y:DIV
- :FORM:BORD
- :FORM:DATA
- :HCOP
- :HCOP:ABOR
- :HCOP:IMAG
- :INIT{1-4}
- :INIT{1-4}:CONT
- :MMEM:CAT?
- :MMEM:COPY
- :MMEM:DEL
- :MMEM:LOAD
- :MMEM:LOAD:CHAN
- :MMEM:LOAD:CHAN:COEF
- :MMEM:LOAD:LIM
- :MMEM:LOAD:PROG
- :MMEM:LOAD:RLIM
- :MMEM:LOAD:SEGM
- :MMEM:MDIR
- :MMEM:STOR
- :MMEM:STOR:CHAN
- :MMEM:STOR:CHAN:CLE
- :MMEM:STOR:CHAN:COEF
- :MMEM:STOR:FDAT
- :MMEM:STOR:IMAG
- :MMEM:STOR:LIM
- :MMEM:STOR:PROG
- :MMEM:STOR:RLIM
- :MMEM:STOR:SALL
- :MMEM:STOR:SEGM
- :MMEM:STOR:STYP
- :MMEM:TRAN
- :OUTP
- :PROG:CAT?
- :PROG:NAME
- :PROG:STAT
- :SENS:CORR:COLL:ECAL:PATH?
- :SENS:CORR:IMP
- :SENS{1-4}:AVER:CLE
- :SENS{1-4}:AVER
- :SENS{1-4}:AVER:COUN
- :SENS{1-4}:BAND
- :SENS{1-4}:BWID
- :SENS{1-4}:CORR:CLE
- :SENS{1-4}:CORR:COEF?
- :SENS{1-4}:CORR:COLL:CKIT
- :SENS{1-4}:CORR:COLL:CKIT:LAB
- :SENS{1-4}:CORR:COLL:CKIT:ORD:LOAD
- :SENS{1-4}:CORR:COLL:CKIT:ORD:OPEN
- :SENS{1-4}:CORR:COLL:CKIT:ORD:SHOR
- :SENS{1-4}:CORR:COLL:CKIT:ORD:THRU
- :SENS{1-4}:CORR:COLL:CKIT:RES
- :SENS{1-4}:CORR:COLL:CKIT:STAN{1-21}:ARB
- :SENS{1-4}:CORR:COLL:CKIT:STAN{1-21}:C0
- :SENS{1-4}:CORR:COLL:CKIT:STAN{1-21}:C1
- :SENS{1-4}:CORR:COLL:CKIT:STAN{1-21}:C2
- :SENS{1-4}:CORR:COLL:CKIT:STAN{1-21}:C3
- :SENS{1-4}:CORR:COLL:CKIT:STAN{1-21}:DEL
- :SENS{1-4}:CORR:COLL:CKIT:STAN{1-21}:L0
- :SENS{1-4}:CORR:COLL:CKIT:STAN{1-21}:L1
- :SENS{1-4}:CORR:COLL:CKIT:STAN{1-21}:L2
- :SENS{1-4}:CORR:COLL:CKIT:STAN{1-21}:L3
- :SENS{1-4}:CORR:COLL:CKIT:STAN{1-21}:LAB
- :SENS{1-4}:CORR:COLL:CKIT:STAN{1-21}:LOSS
- :SENS{1-4}:CORR:COLL:CKIT:STAN{1-21}:TYPE
- :SENS{1-4}:CORR:COLL:CKIT:STAN{1-21}:Z0
- :SENS{1-4}:CORR:COLL:ECAL:ERES
- :SENS{1-4}:CORR:COLL:ECAL:ISOL
- :SENS{1-4}:CORR:COLL:ECAL:SOLT1
- :SENS{1-4}:CORR:COLL:ECAL:SOLT2
- :SENS{1-4}:CORR:COLL:ECAL:THRU
- :SENS{1-4}:CORR:COLL:ISOL
- :SENS{1-4}:CORR:COLL:METH:ERES
- :SENS{1-4}:CORR:COLL:LOAD
- :SENS{1-4}:CORR:COLL:METH:OPEN
- :SENS{1-4}:CORR:COLL:METH:SHOR
- :SENS{1-4}:CORR:COLL:METH:SOLT1
- :SENS{1-4}:CORR:COLL:METH:SOLT2
- :SENS{1-4}:CORR:COLL:METH:THRU
- :SENS{1-4}:CORR:COLL:METH:TYPE?
- :SENS{1-4}:CORR:COLL:OPEN
- :SENS{1-4}:CORR:COLL:SAVE
- :SENS{1-4}:CORR:COLL:SHOR
- :SENS{1-4}:CORR:COLL:THRU
- :SENS{1-4}:CORR:EXT
- :SENS{1-4}:CORR:EXT:PORT{1-2}
- :SENS{1-4}:CORR:PROP
- :SENS{1-4}:CORR:RVEL:COAX
- :SENS{1-4}:CORR:STAT
- :SENS{1-4}:CORR:TYPE{1-4}?
- :SENS{1-4}:FREQ
- :SENS{1-4}:FREQ:CENT
- :SENS{1-4}:FREQ:DATA?
- :SENS{1-4}:FREQ:SPAN
- :SENS{1-4}:FREQ:STAR
- :SENS{1-4}:FREQ:STOP
- :SENS{1-4}:ROSC:SOUR?
- :SENS{1-4}:SEGM:DATA
- :SENS{1-4}:SEGM:SWE:POIN?
- :SENS{1-4}:SEGM:SWE:TIME?
- :SENS{1-4}:SWE:DEL
- :SENS{1-4}:SWE:POIN
- :SENS{1-4}:SWE:TIME
- :SENS{1-4}:SWE:TIME:AUTO
- :SENS{1-4}:SWE:TYPE
- :SERV:CHAN:ACT?
- :SERV:CHAN:COUN?
- :SERV:CHAN{1-4}:TRAC:ACT?
- :SERV:CHAN:TRAC:COUN?
- :SERV:PORT:COUN?
- :SOUR{1-4}:POW
- :SOUR{1-4}:POW:ATT
- :SOUR{1-4}:POW:CENT
- :SOUR{1-4}:POW:PORT:COUP
- :SOUR{1-4}:POW:PORT{1-2}
- :SOUR{1-4}:POW:SLOP
- :SOUR{1-4}:POW:SLOP:STAT
- :SOUR{1-4}:POW:SPAN
- :SOUR{1-4}:POW:STAR
- :SOUR{1-4}:POW:STOP
- :STAT:OPER?
- :STAT:OPER:COND?
- :STAT:OPER:ENAB
- :STAT:OPER:NTR
- :STAT:OPER:PTR
- :STAT:PRES
- :STAT:QUES?
- :STAT:QUES:BLIM?
- :STAT:QUES:BLIM:CHAN{1-4}?
- :STAT:QUES:BLIM:CHAN{1-4}:COND?
- :STAT:QUES:BLIM:CHAN{1-4}:ENAB
- :STAT:QUES:BLIM:CHAN{1-4}:NTR
- :STAT:QUES:BLIM:CHAN{1-4}:PTR
- :STAT:QUES:BLIM:COND?
- :STAT:QUES:BLIM:ENAB
- :STAT:QUES:BLIM:NTR
- :STAT:QUES:BLIM:PTR
- :STAT:QUES:COND?
- :STAT:QUES:ENAB
- :STAT:QUES:LIM?
- :STAT:QUES:LIM:CHAN{1-4}?
- :STAT:QUES:LIM:CHAN{1-4}:COND?
- :STAT:QUES:LIM:CHAN{1-4}:ENAB
- :STAT:QUES:LIM:CHAN{1-4}:NTR
- :STAT:QUES:LIM:CHAN{1-4}:PTR
- :STAT:QUES:LIM:COND?
- :STAT:QUES:LIM:ENAB
- :STAT:QUES:LIM:NTR
- :STAT:QUES:LIM:PTR
- :STAT:QUES:NTR
- :STAT:QUES:PTR
- :STAT:QUES:RLIM?
- :STAT:QUES:RLIM:CHAN{1-4}?
- :STAT:QUES:RLIM:CHAN{1-4}:COND?
- :STAT:QUES:RLIM:CHAN{1-4}:ENAB
- :STAT:QUES:RLIM:CHAN{1-4}:NTR
- :STAT:QUES:RLIM:CHAN{1-4}:PTR
- :STAT:QUES:RLIM:COND?
- :STAT:QUES:RLIM:ENAB
- :STAT:QUES:RLIM:NTR
- :STAT:QUES:RLIM:PTR
- :SYST:BACK
- :SYST:BEEP:COMP:IMM
- :SYST:BEEP:COMP:STAT
- :SYST:BEEP:WARN:IMM
- :SYST:BEEP:WARN:STAT
- :SYST:DATE
- :SYST:ERR?
- :SYST:KLOC:KBD
- :SYST:KLOC:MOUS
- :SYST:POFF
- :SYST:PRES
- :SYST:SEC:LEV
- :SYST:SERV?
- :SYST:TIME
- :SYST:UPR
- :TRIG
- :TRIG:SING
- :TRIG:SOUR
- Command list
- A Manual Changes
- B Status Reporting System
- C Error Messages
- Index
184 Chapter 12
Sample Application Programs
Controlling Using Telnet Server
Controlling Using Telnet Server
This section describes how to control the E5061A/E5062A using WinSock API in the
Windows environment, with a sample program written in Visual Basic (VBA macro). You
can find the source file of this program, named ctrl_lan.xls (Microsoft Excel file), on the
sample program disk.
Using VBA macro
Opening ctrl_lan.xls in Microsoft Excel display a screen as shown in Figure 12-5.
Figure 12-5 ctrl_lan.xls
For how to use each element in Figure 12-5, refer to the following description.
We begin describing the part 1. Enter the version number of WinSock API in the cell right
side of “Winsock Version.” The version number is obtained by multiplying 256 by the
major version then adding the minor version. For example, when the version of your
Winsock API is 1.1, the version number is obtained as follows: 256×1+1=257. Enter the IP
address of the E5061A/E5062A in the cell right side of “IP Address.” This VBA macro
will not work properly without appropriate values in the two cells.
In the part 2, sweep range (start and stop points) and number of measurement points are set.
Clicking the button labeled as “Set” executes setting operation as specified with the setting
table, while clicking the button labeled as “Query” retrieves the current settings of the
E5061A/E5062A.