Using
*WAI
to
This example
RMBASIC
program demonstrates the use of the
*WAI
Synchronize the
HP
command to synchronize commands with the overlapping sweep
~1440~
operation of the
El440
Note that we do NOT synchronize the controller with the
HP
E1440,
for that You need
*OPC
or
*OPC?
The requirement is to set up a sweep with the following parameters:
Start
1.33
MHz
frequency
Stop frequency
4.5
MHz
Sweep time
1
sec
Function SIN
and we want to have the following dynamic operation
:
output is off
rn
switch output on and do one sweep cycle with an amplitude of
3
volts .
do one sweep cycle with an amplitude of
6
volts.
do one sweep cycle with an amplitude of
9
volts and switch output
off.
REAL El440
!
for the instruments
HP-IB
address.
!
Note that an
INTEGER
is
too small to hold
!
a
HP-IB
address with secondary addressing.
!
E1440=70911
!
assumed slot
0
commander
is
connected to
!
HP-IB
interface with select code
7,
!
primary
HP-IB
address of slot
0
commander
is
9
!
and logical address of
El440
is
11
(secondary
!
HP-IB
address
is
logical add, shifted left
3
bits)
!
!
To
start
with, we put instrument into a known state.
CLEAR El440
OUTPUT E1440;"*RST; :STATUS:PRESET; *CLSt'
!
!
Base setting
!
OUTPUT E1440;":FUNC SIN; :FREQ:START 1.33 MHz; STOP 4.5 MHz; :SWEEP:TIME 1"
!
!
Set first amplitude and set instrument into sweep mode (notice
!
that output is
still
off)
!
OUTPUT El440
;
'I :VOLT 3
;
:
FREQ :MODE SWEEP"
I
!
Switch output on
an
init one sweep cycle
!
OUTPUT El440
;
"
:
OUTP ON
;
:
INIT"
!
!
Wait for completion of the sweep cycle, set amplitude and init next cycle
Using
the
HP
E1440A 3-1 1
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com