Getting Started on Programming the HP 4155A/4156A
Creating a Simple Measurement Program
Step 2. Changing the Sweep Setup Parameters
Modify measurement program created in previous step so that you can enter
new sweep start and stop values while program is running:
1. Press IBASIC
4
Display
5
key until the screen display mode is All IBASIC
mode.
2. Select
N
NNNNNNNNNNNNN
EDIT
softkey, then press
4
Enter
5
key to start the IBASIC editor
3. Insert program lines that allow you to enter the sweep start and stop
values from the keyboard during program running.
a. Move the cursor to program line 30.
b.
Select
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
Insert line
primary softkey.
c. Type the following program lines:
21 !
22 INPUT "Sweep Start (V)?",Start_v
23 INPUT "Sweep Stop (V)?",Stop_v
24 !
4. If you do not know the SCPI commands for changing the sweep start and
stop parameters, do as follows:
a. Press IBASIC
4
Display
5
key until screen display mode is All Instrument
mode.
b. Press
4
Meas
5
to change to MEASURE: SWEEP SETUP page.
c. Move the eld pointer to the parameter that you want to change
.
d. Press
4
Help
5
key. The corresponding command is displayed at the
bottom of the help window:
Command Description
:PAGE:MEAS:SWE:VAR1:STAR VAR1 sweep start
:PAGE:MEAS:SWE:VAR1:STOP VAR1 sweep stop
You need to remember the commands, so that you can enter them in
the next step.
e.
Select the
N
NNNNNNNNNNNNNNNNNNNNNNNNNNNN
EXIT HELP
softkey.
3-8