Appendix D: Status model
Model 2281S-20-6 DC Power Supply and Battery Simulator Reference Manual
D-22
077114601 / March 2019
Status model programming examples
The following examples illustrate how to generate an SRQ using the status model.
SRQ when reading buffer becomes full
This example shows you how to generate an SRQ when the 2281S 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 reading buffer 1 to a size of 10, and then
configures the instrument to fill the buffer. After the buffer is full, the instrument generates an SRQ
and returns the data.
Using SCPI commands:
*RST
*CLS
STAT:MEAS:INST:ISUM:ENAB 256
STAT:MEAS:INST:ENAB 2
STAT:MEAS:ENAB 8192
*SRE 1
TRAC:CLE
TRAC:POIN 10
SOUR:VOLT 1
TRIG:COUN 10
OUTP ON
INIT
*WAI
OUTP OFF
TRAC:DATA:SEL? 1, 10, "READ"