To record a measurement sequence
1
Select the active program.
(See the previous task, “To select the active Instrument BASIC program.”
2 Press [
Basic
] [
INSTRUMNT BASIC
][
UTILITIES
][
SCRATCH
][
SCRATCH
].
Press [
PERFORM SCRATCH
] [
Rtn
][
Rtn
].
3 Press [
ENABLE RECORDING
].
4 Press the keys in your measurement sequence.
5 Press [
Basic
] to end recording.
When you record a measurement sequence with Instrument BASIC, the analyzer
converts key-presses to equivalent GPIB commands. The commands are then inserted
in BASIC program lines in the analyzer’s active program buffer. The second step of
this task clears the program buffer so your measurement sequence will not be inserted
into an existing program. The remaining steps actually record your key-presses.
To produce consistent results, it is important to make [
Preset
] [
DO PRESET
] the first
keys you press in step 4. [
DO PRESET
] eliminates many unknowns by returning most
analyzer parameters to their default states. To learn more, see Using Instrument
BASIC with the Agilent 35670A.
GPIB Commands
equivalent to your key
presses are enclosed in
quotes
Recorded BASIC program
is
displayed when you press
[BASIC] [Instrument
BASIC]
[EDIT PROGRAM]
Agilent 35670A Quick Start Guide Automating Measurements
57