Keithley 3930A Operator's Manual page 100

Hide thumbs Also See for 3930A:
Table of Contents

Advertisement

SECTION 4
GPIB
Interface
Sample Program 1 Description
Sample Program 2
Line
100to170
100
110
120
130
140,150
160
170
190to270
190
200,210
220
230
240
250,260
270
290to680
300
310,320
330,340
350to390
400to670
700,710
730to750
Description
Initializes
controller
and Model 3930A.
Specifies CRT display.
Defines C$ variable for 80 characters.
Sets interrupt
time to 20 seconds.
Sends IFC.
Sets REN true and sends DCL.
Sends MSK 31 to unit to enable SRQ on error.
Enables SRQ branching
to line 280 on inter-
rupt.
Loop
to send program
codes to Model
3930A.
Enables controller
SRQ interrupt.
Inputs program code into C$
Displays input program code.
Sends program code to Model 3930A.
Executes specified
subroutine
when
pro-
gram code contains '?".
Wait loop to ensure SRQ detection.
Returns to line 190.
Subroutine
for generating SRQ interrupt.
Performs serial poll.
Reads error code into E$.
Reads information
on whether
or not in-
quiry message has header (H$).
Obtains error number (E).
Display error corresponding
to error nun-
ber E.
Subroutine
for displaying
timeout.
Subroutine
for reading and displaying
unit
settings.
1000 !
1010 !
it*
I IT
1020 ABOH 1
I030
RETL;R\
1040 !
1050 !
t*t
DC1
1060
CLEAR 7
lU7D
RETURN
1080 !
1090 !
Ml: SDC
1100
CLEAR 702
1110
RETCR\;
1120
!
1130
!
ttx
LLll
1140
LOCAL LOCKOUT
1
1150
RETIJRlv
1160
!
1170
!
WX
CTI.
1180
LOCAL 702
1190
RETCH
1200
!
1210
!
tti:
REN True
1220
REMOTE 7
1230
RETURN
1240
!
1250
!
itt
REN False
1260
LOCAL 7
1210
RETURN
4-44

Advertisement

Table of Contents
loading

Table of Contents