Technical data
Status Reporting 6
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference 101
The next program prints "0x84" and clears bit 6 (RQS) of the Status Byte
Register. The difference in the decimal value between this example and the
previous one is the value of bit 6 (weight = 64). Bit 6 is set when the first
enabled summary bit is set, and is cleared when the Status Byte Register
is read by the serial poll command.
Example 2 The following example uses the resource session object's ReadSTB method
to read the contents of the oscilloscope's Status Byte Register.
varStbValue = myScope.IO.ReadSTB
Debug.Print "Status Byte Register, Serial Poll: 0x" + Hex(varStbValue)
NOTE
Use Serial Polling to Read the Status Byte Register
Serial polling is the preferred method to read the contents of the Status Byte Register
because it resets bit 6 and allows the next enabled event that occurs to generate a new
SRQ interrupt.