Status Reporting Decision Chart - Agilent Technologies InfiniiVision 3000 Programmer's Manual

X-series
Hide thumbs Also See for InfiniiVision 3000:
Table of Contents

Advertisement

Status Reporting Decision Chart

Agilent InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
no
Do you want
to do status
reporting?
yes
Reset the instrument and
clear the status registers:
myScope.WriteString "*RST"
myScope.WriteString "*CLS"
Do you want to
no (Your programs can read the status registers instead.)
send a Service Request
(SRQ) interrupt to the
controller?
yes
Do you want to
report events monitored by
the Standard Event Status
Register?
yes
Use the *ESE common command
to enable the bits you want to
use to generate the ESB summary
bit in the Status Byte Register.
Use the *SRE common command
to enable the bits you want to
generate the RQS/MSS bit to set
bit 6 in the Status Byte Register
and send an SRQ to the computer.
If events are monitored by the
Standard Event Status Register,
also enable ESB with the *SRE
command.
Use the following to read the
Standard Event Status Register:
Activate the instrument function
myScope.WriteString "*ESR?"
that you want to monitor.
varR = myScope.ReadNumber
MsgBox "ESR: 0x" + Hex(varR)
When an interrupt occurs, interrupt
handler should serial poll STB with:
varR = myScope.IO.ReadSTB
Use the following to see if an
operation is complete:
myScope.WriteString "*OPC?"
To read the Status Byte Register,
varR = myScope.ReadNumber
use the following:
MsgBox "OPC: 0x" + Hex(varR)
myScope.WriteString "*STB?"
varR = myScope.ReadNumber
MsgBox "STB: 0x" + Hex(varR)
This displays the hexadecmal value
Use the following to read the
of the Status Byte Register.
contents of the status byte:
myScope.WriteString "*STB?"
varR = myScope.ReadNumber
Determine which bits in the
MsgBox "STB: 0x" + Hex(varR)
Status Byte Register are set.
END
36
Status Reporting
1075

Advertisement

Table of Contents
loading

Table of Contents