20.01.2015 Views

Programming Guide DS2000 Series Digital Oscilloscope

Programming Guide DS2000 Series Digital Oscilloscope

Programming Guide DS2000 Series Digital Oscilloscope

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Command System RIGOL<br />

*STB<br />

Syntax<br />

*STB<br />

Description<br />

Query the condition register for the state byte register set.<br />

Explanation<br />

Definitions of the bits of SRE register:<br />

Bit Weights Name Enable<br />

7 128 OPER Operation Status Reg<br />

6 64 -- Not used<br />

5 32 ESB Event Status Bit<br />

4 16 MAV Message Available<br />

3 8 -- Not used<br />

2 4 MSG Message<br />

1 2 USR User<br />

0 1 TRG Trigger<br />

Return Format<br />

The query returns an integer between 0 and 255 which equals the sum of the<br />

weights of all the bits that have already been set in the register.<br />

For example, the query returns 144 if bit 4 (16 in decimal) and bit 7 (128 in decimal)<br />

are enabled.<br />

Example<br />

*STB<br />

The query returns 24 (bit 3 and bit 4 are enabled).<br />

<strong>DS2000</strong> <strong>Programming</strong> <strong>Guide</strong> 2-19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!