Keithley 6512 Instruction Manual page 149

Programmable electrometer
Table of Contents

Advertisement

D.8
Status word program
Program 4 below shows how to obtain and display status, er-
ror, and data words. The program loops through three times,
requesting, reading, and displaying each of the three word
strings on the computer screen.
Program 4. Status word program
' Program to obtain status words from Model 6512.
OPEN "IEEE" FOR OUTPUT AS #1
OPEN "IEEE" FOR INPUT AS #2
PRINT #1, "REMOTE 27"
PRINT #1, "CLEAR"
CLS
FOR I = 0 TO 2
PRINT #1, "OUTPUT 27;U"; I; "X"
PRINT #1, "ENTER 27"
INPUT #2, S$
PRINT "U"; I; "word: "; S$
NEXT I
END
' Open IEEE-488 output path.
' Open IEEE-488 input path.
' Put 6512 in remote.
' Send DCL.
' Loop for all 3 status words.
' Send status word command.
' Address 6512 to talk.
' Input status word string.
' Print status string.
Example Programs
D-5

Advertisement

Table of Contents
loading

Table of Contents