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)
!
!
At
the start we put instrument into a known state.
CLEAR El440
OUTPUT El440
;
I1*RST
;
:
STATUS
:
PRESET
;
*CLS1'
!
!
Base setting
I
OUTPUT E1440;I1:FUNC SIN; :FREQ 11
MHz;
:OUTP ON"
!
!
Setup
1
!
OUTPUT El440
;
"
:VOLT :AWL 0.1
V;
OFFSET 0.2 V"
!
!
Do measurement
1
I
OUTPUT El440
;
I'
:VOLT :AWL
2.0
V
;
OFFSET 3.0 V"
!
!
Do measurement
2
!
OUTPUT El440;":VOLT:AMPL 0.1
V;
OFFSET 0.2 V"
!
!
Do measurement
3
!
END
Using
*OPC?
to
This example program demonstrates the use of the "OPC? to
Synchronize the
HP
synchronize the controller with the
E1440.
It also shows how one
~1440~
can deal with the
LIST
subsystem which can sometimes be slightly
unwieldy.
The requirement is to set up a list sweep comprising:
rn
one lin interval
1
MHz to 13 MHz
,
1
second
one equi interval 13 MHz to 13 MHz
,
2
seconds
rn
one lin interval 13 MHz to
1
MHz
,
1
second
one log interval
1
MHz to
13
MHz
,
3 seconds
Output function is
SIN,
amplitude is
5
V.
When the sweep stops we will print the message
List
sweep finished
on the computer screen
Using
the
HP
E1440A
3-7
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com