![background image](http://html1.mh-extra.com/html/keithley/6512/6512_instruction-manual_4063439147.webp)
Example Programs
D-3
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-488 output path.
OPEN "IEEE" FOR INPUT AS #2
' Open IEEE-488 input path.
PRINT #1, "REMOTE 27"
' Put 6512 in remote.
PRINT #1, "CLEAR"
' Send DCL.
CLS
PRINT #1, "OUTPUT 27;M2X"
' SRQ on data store full.
PRINT #1, "OUTPUT 27;Q0C0X"
' Enable data store, conversion rate.
PRINT "Storing data..."
DO: PRINT #1, "SRQ?"
' Loop until SRQ occurs.
INPUT #2, S
LOOP UNTIL S
PRINT #1, "SPOLL 27"
' Serial poll to clear SRQ.
INPUT #2, S
PRINT #1, "OUTPUT 27;C1B1G2X"
' Set reading mode to data store.
FOR I = 1 TO 100
' Loop for all 100 readings.
PRINT #1, "ENTER 27"
' Address 6512 to talk.
LINE INPUT #2, R$
' Input reading.
PRINT R$
' Display reading.
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.
Summary of Contents for 6512
Page 119: ...Maintenance 7 10 Figure 7 5 Exploded view...
Page 131: ......