Appendix 0: Status model
Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
16
DMM7510-901-01 Rev. B / May 2015
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 DMM7510
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 DMM7510 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"
COUNT 100
READ? "defbuffer1"
TRAC:DATA? 1, 100, "defbuffer1", READ