Srq On Error - Keithley 2450 Reference Manual

Interactive sourcemeter instrument
Table of Contents

Advertisement

Appendix C: Status model

SRQ on error

This example shows you how to generate an SRQ when an instrument error occurs.
Using SCPI commands:
*RST
SYST:CLE
STAT:CLE
*SRE 4
MAKEERROR
Using TSP commands:
reset()
-- Clear Error Queue so EAV bit can go low.
errorqueue.clear()
-- Clear the status byte
status.clear()
-- Enable SRQ on error available
status.request_enable = status.EAV
-- Send a line of code that will generate an error
smu = 1
SRQ when reading buffer becomes full
This example shows you how to generate an SRQ when the Model 2450 reading buffer is full. This is
useful to notify the controlling computer that it needs to read back the data and empty the buffer. After
configuring the status model, this code configures the default reading buffer 1 to a size of 100, and
then configures the SMU to fill the buffer. After the buffer is full, the instrument generates an SRQ and
returns the data.
Using SCPI commands:
*RST
STAT:CLE
STAT:OPER:MAP 0, 4918, 4917
STAT:OPER:ENAB 1
*SRE 128
TRAC:CLE
TRAC:POIN 100, "defbuffer1"
SOUR:VOLT:RANG 1
SOUR:VOLT 1
SOUR:VOLT:ILIM 10e-3
COUNT 100
OUTP ON
READ? "defbuffer1"
OUTP OFF
TRAC:DATA? 1, 100, "defbuffer1", READ
C-22
Model 2450 Interactive SourceMeter® Instrument Reference Manual
2450-901-01 Rev. B/September 2013

Advertisement

Table of Contents
loading

Table of Contents