30 Chapter 2
Remote Control, Overview
The Basics of Writing/Running Programs
The Basics of Writing/Running Programs
An easy way to write a program
The following describes a procedure for writing an Instrument BASIC program as an
example of simple programming. For more on how to use Instrument BASIC, see
Chapter
11 , “Using HP Instrument BASIC.”
This example sets the Agilent 4294A as shown below.
In this example, the program can be input by only using the keys located on the front panel
without having to touch the keyboard. You can also enter the program with the keyboard.
Step 1. Turn on the Agilent 4294A.
Step 2. Press the following key and soft keys.
[System] - IBASIC - Edit
The system goes into system edit mode. The cursor appears on line 10.
10 _
Step 3. Press the following soft keys.
ASSIGN @Hp4294
The command automatically appears at the cursor position.
10 ASSIGN @Hp4294 TO 800_
Step 4. Press the entry following key.
[×1]
The command is entered into the System, and the cursor moves to the next line.
10 ASSIGN @Hp4294 TO 800
20 _
Step 5. Press the following soft keys.
OUTPUT @Hp4294
Character strings appear as shown below.
10 ASSIGN @Hp4294 TO 800
20 OUTPUT @Hp4294;""
ACTIVE TRACE block Trace A (default setting)
MEASUREMENT block Cs-Rs
Linear Y-axis format (default setting)
Display scale: automatic
SWEEP block Center frequency: 70 MHz
Span frequency: 100 kHz