55
*STB?
Status Byte Query
Syntax:
*STB?
Parameters:
None
Function:
This query returns the contents of the Status Byte which records current
system conditions. Appendix C describes the Status Byte in detail.
If a bit is set in the Status Byte Register and it’s corresponding bit is set in the
Service Request Enable Register, then a service request will be generated once
for the given event. When service is being requested, bit 6 is set in the byte
returned by a serial poll of the 2835-C.
The Status Byte Register is an 8-bit, bit mapped register, with each bit signify-
ing a different condition. When a bit is set, or has a value of one, then the
condition is true. The bits are listed below, most significant bit first:
New Data Available CH A
New Valid Data Available CH A
New Data Available CH B
New Valid Data Available CH B
Message Available Bit
Event Status Byte Bit
Master Status Summary Bit
Error Queue Bit
0
1
2
3
4
5
6
7
Status Byte Register.
Note that the *CLS common command clears most of the bits in the Status
Byte.
Returns:
<value>
<value> is an integer in the range 0 to 255 inclusive.
Related Commands:
*CLS, *SRE, *SRE?
*TST?
Self Test Query
Syntax:
*TST?
Parameters:
None
Function:
As defined in the IEEE 488.2 standard, the *TST? command causes the device
to return a result of a self-test, indicating whether or not the unit completed
the self-test without any errors. The self test is only administered upon reset
or power up. The query does not initiate the self test and only returns a 0
indicating that the system passed its earlier self test.
Returns:
0
Related Commands:
None
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com