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

140 Chapter 9 
Saving and Recalling (File Management)
Managing Files
Sample program
Example 9-1 shows a sample program for transferring files between the external controller 
and the E5061A/E5062A. You can find the source file of this program, named file_xfr.bas, 
on the sample program disk.
This program reads out data from a specified file on the external controller (or the 
E5061A/E5062A), then write them to a specified file on the E5061A/E5062A(or the 
external controller).
The program is described in detail below:
Line 40  Assigns a GPIB address to the I/O pass.
Lines 60 to 130  These line allow the user to return to the entry start line and re-enter 
the data if an error (such as an invalid entry) occurs while entering the 
number that indicates the transfer direction. Then, these line display 
the list of transfer directions and prompt the user to input a selected 
number.
Lines 80 to 130  These lines display the list of transfer directions, and prompt the user 
to choose one of the items by typing in the appropriate number.
Lines 140 to 150  Converts the entered value into an integer and stores it into the 
Direction variable. Returns to the entry start line if an invalid value is 
contained in Direction.
Lines 180 to 210  These lines obtain the name of the source file for copying from the 
user input, store it into the Src_file$ variable, and display the value of 
Src_file$.
Lines 180 to 210  These lines obtain the name of the source file for copying from the 
user input, store it into the Src_file$ variable, and display the value of 
Src_file$.
Lines 230 to 270  If Direction is equal to 2 (from the external controller to the 
E5061A/E5062A), these lines obtain the size of the source file for 
copying, store it into the Src_size_char$, and display the value of 
Src_size_char$.
Lines 290 to 320   These lines obtain the name of the destination file for copying from the 
user input, store it into the Dst_file$ variable, and display the value of 
Dst_file$.
Line 350  If Direction is equal to 1 (from the E5061A/E5062A to the external 
controller), these lines use the subprogram Copy_to_contr to transfer 
(copy) a file with the name Src_file$ on the E5061A/E5062A to a file 
with the name Dst_file$ on the external controller.
Line 370  If Direction is equal to 2, these lines use the subprogram 
Copy_to_e507x to transfer (copy) a file with the name Src_file$ on the 
external controller to a file with the name Dst_file$ on the 
E5061A/E5062A.
Copy_to_contr, a subprogram for transferring files from the E5061A/E5062A to the 
external controller that appears in lines 440 to 1000, is described below.
Lines 490 to 520  If any file with the name File$ already exists, these lines delete the file 
and newly create a file with the name File$.
Line 530  Assigns a destination file for copying to the I/O pass.










