Keithley 6512 Instruction Manual page 147

Programmable electrometer
Table of Contents

Advertisement

D.6
Data store program
Program 2 below demonstrates basic data store operation
over the bus. The program sets up the Model 6512 for SRQ
on data store full, and it then enables data store at the conver-
Program 2. Example data store program
' Program to use Model 6512 data store feature.
OPEN "IEEE" FOR OUTPUT AS #1
OPEN "IEEE" FOR INPUT AS #2
PRINT #1, "REMOTE 27"
PRINT #1, "CLEAR"
CLS
PRINT #1, "OUTPUT 27;M2X"
PRINT #1, "OUTPUT 27;Q0C0X"
PRINT "Storing data..."
DO: PRINT #1, "SRQ?"
INPUT #2, S
LOOP UNTIL S
PRINT #1, "SPOLL 27"
INPUT #2, S
PRINT #1, "OUTPUT 27;C1B1G2X"
FOR I = 1 TO 100
PRINT #1, "ENTER 27"
LINE INPUT #2, R$
PRINT R$
NEXT I
END
sion rate. The program then waits in a loop until it detects an
SRQ from the instrument and then reads and displays all 100
readings.
' Open IEEE-488 output path.
' Open IEEE-488 input path.
' Put 6512 in remote.
' Send DCL.
' SRQ on data store full.
' Enable data store, conversion rate.
' Loop until SRQ occurs.
' Serial poll to clear SRQ.
' Set reading mode to data store.
' Loop for all 100 readings.
' Address 6512 to talk.
' Input reading.
' Display reading.
Example Programs
D-3

Advertisement

Table of Contents
loading

Table of Contents