Srq On Error; Srq When Reading Buffer Becomes Full - Keithley 2461 Reference Manual

1kw pulse mode interactive sourcemeter instrument
Table of Contents

Advertisement

Model 2461 Interactive SourceMeter® Instrument Reference Manual

SRQ on error

This example shows you how to generate a service request (SRQ) when an instrument error event
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.
eventlog.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 event.
beeper = 1

SRQ when reading buffer becomes full

This example shows you how to generate a service request (SRQ) when the Model 2461 reading
buffer is full. You can use this 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 Model 2461 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, 4917, 4916
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
2461-901-01 A/November 2015
Appendix C: Status model
C-23

Advertisement

Table of Contents
loading

Table of Contents