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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2 Command System RIGOL<br />

*SRE<br />

Syntax<br />

*SRE <br />

*SRE<br />

Description<br />

Set the enable register for the state byte register set.<br />

Query the current value of the enable register of the state byte register set.<br />

Parameter<br />

Name Type Range Default<br />

Integer 0 to 255 0<br />

Explanation<br />

is the sum of the weights of all the bits between bit 0 and bit 7 that have<br />

already been set. If the bit has already been set, the corresponding binary bit is 1;<br />

otherwise, it is 0.<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 />

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

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

Saved successfully!

Ooh no, something went wrong!