Tektronix VX4101A Drums User Manual


 
Status and Event Reporting System
4–20
VX4101A MultiPaq Instrument User Manual
Status Subsystem Example
The following is an example of using the Status Subsystem to receive a service
request at the end of a DMM array measurement. The DMM sets bit 4 of the
Operational Condition Register while a measurement is in progress and clears
the bit when the measurement has completed (or aborted). The service request
will therefore depend upon a negative transition of this bit.
When using the Status subsystem commands for the
VX4101A, it must be
selected using “INST:NSEL 0” commands. It is unnecessary when using all
other global commands to actually select the
VX4101A.
NOTE. Successful interrupt generation is dependent upon following the sequence
outlined in this example.
Table 4–5: Status Subsystem and Service Requests
Command/Query Response Comments
*RST Reset
*CLS Clear all event status registers and queues
INST:SEL DMM Select DMM
STAT:OPER:PTR 0 Don’t report any positive transitions
STAT:OPER:NTR 16 Report negative transitions of bit 4
STAT:OPER:ENAB 16 Propagate bit 4 into summary
STAT:OPER? 0 Clear event register by reading
CONF:ARR:VOLT:DC
150
Take approximately 30 seconds of measurements
INST:NSEL 0 Select VX4101A
STAT:OPER:PTR 2 Report positive transitions of bit 1
STAT:OPER:NTR 0 Don’t report any negative transitions
STAT:OPER:ENAB 2 propagate bit 1 into summary
STAT:OPER? 0 Clear event register by reading
*SRE 128 Generate SRQ on Bit 8
*STB? 16 Clear status register by reading (except MAV)
INST:SEL DMM Select DMM
INIT Initiate measurement
<WAIT FOR SRQ> Approximately 30 seconds
FETC:COUN? 150 All measurements taken
INST:NSEL 0 Select VX4101A