Keithley 6514 Instruction Manual page 192

System electrometer
Hide thumbs Also See for 6514:
Table of Contents

Advertisement

13-10
Status Structure
Programming example — set MSS (B6) when error occurs
The first command of the following sequence enables EAV (error available). When an invalid
command is sent (line 4), bits B2 (EAV) and B6 (MSS) of the status byte register set to 1. The
last command reads the status byte register using the binary format (which directly indicates
which bits are set). The command to select format (FORMat:SREGister) is documented in Table
13-2. To determine the exact nature of the error, you will have to read the error queue (see
"Queues").
*CLS
*SRE 4
FORM:SREG BIN
BadCommand
*STB?
NOTE
An example program to demonstrate serial polling (Generating SRQ on buffer full) is
provided in Appendix E.
' Clear Error Queue.
' Enable EAV.
' Select binary format.
' Generate error.
' Read Status Byte Register.

Advertisement

Table of Contents
loading

Table of Contents