HP 4084B Operation Manual page 50

Switching matrix
Table of Contents

Advertisement

Mode1 4 0 8 5 M
5 1 0
ON I N T R Hp_l b . 2 GOSUB Se r v i ce
520
ENABLE I N TR Hp_i b : 2
53 0
OUTPUT Dcs : Command$
5 4 0
SEND Hp_ i b : UNT UNL TAL
5 5 0
!
5 6 0
S ta t us_b v t e o O
5 7 0
LOOP
580
E X I T IF B I T ( S ta t us bv te . 2 ) - 1
590
END LOOP
6 0 0
SUBEXI T
6 1 0
6 2 0
Serv i ce :
630
S t atus_by t e - SPOLL ( Dc s )
R E T U R N
6 4 0
SUBEND
6 5 0
!
6 6 0
Line 4 0 :
Lines 6 0 to 90 :
line 1 1 0 :
Lines 1 2 0 to 1 4 0 :
Lines 1 70 to 2 3 0 :
Lines 2 5 0 to 3 0 0 :
Lines 320 to 350 :
Lines 370 to 6 5 0 :
Line 3 8 0 :
Line 4 1 0 :
Lines 420 to 4 9 0 :
Line 5 1 0 :
Line 660 to end :
K
-
!
The Start sub program is executed.
These program lines define the softkeys. When a softkey is pressed,
the specified subprogram is called.
Displays the connection status of the ports and m easurement pins.
See Figure 3-12.
Initiates a loop that continues until a softkey is pressed.
When K E Y 0 (CO N N ECT) is pressed, this subprogram is called. This
subprogram
requests
r
m easu
ement pin number. It then connects them and redisplays the
connection status screen.
When - KE Y
I
(DISCO N NECT) is pressed, this subprogram is' called.
This subprogram requests the user to input a pin number. It then
disconnects the specified pin from
connection status screen.
When K E Y 3 (Swm_clear) is pressed,
This
sub program
disconnects
m easurement pins, and redisplays the connection status screen.
When K E Y 4 (PLOT and P RI N T) is pressed, this subprogram is
called.
This subprogram enables the PLOT and P RI N T capabilities
of the 4 1 4 5 A.
Refer to Section
for details.
Enables the subprogram to use the COM block variables.
paragraph 3-4 6 .
Calculates the HP-IB select code.
handling at lines 5 1 0 and 5 4 0 .
Selects the 4 1 4 5 A's PLOT or P R I N T function, and determines the
proper HP-IB address of the peripheral device.
Sets
a
higher priority
interrupts.
Link
the
required
Connect and Swm _clear subprograms are required in this sample
program .
Figure 3-1 3 . M anual Operation of 4 0 8 5 M (Sheet 2 of 2)
( Dcs HOD 1 0 0 ) L I S TEN A_d ev i ce D A T A
the
user
to
input
the port and redisplays the
this subprogram is called.
all
measurement
1Il
of the 4 1 4 5 A Operation Manual
This is necessary for interrupt
for
H P-IB
interrupts
subprogra ms
from
a
port
number
and
ports
from
the
Refer to
than
for
softkey
this
line.
Swm_status,
Section 1lI
3-23

Advertisement

Table of Contents
loading

This manual is also suitable for:

4085m

Table of Contents