Instructions

Chapter 2 Command System RIGOL
DS1000Z-E Programming Guide 2-47
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2}
--
<tmo>
Real
Refer to Explanation
1.00us
Explanation The timeout time should be greater than the maximum pulse width of the clock and
lower than the idle time between frames.
This command is only valid in the timeout mode (:DECoder<n>:SPI:MODE).
Return
Format
The query returns the timeout time in scientific notation.
Example
:DECoder1:SPI:TIMeout 0.000005 /*Set the timeout time to 5us*/
:DECoder1:SPI:TIMeout? /*The query returns 5.000000e-06*/
:DECoder<n>:SPI:POLarity
Syntax :DECoder<n>:SPI:POLarity <pol>
:DECoder<n>:SPI:POLarity?
Description Set or query the polarity of the SDA data line in SPI decoding.
Parameter
Name Type Range Default
<n> Discrete {1|2} --
<pol> Discrete {NEGative|POSitive} POSitive
Explanation
NEGative:
. The low level is 1.
POSitive: . The high level is 1.
Return
Format
The query returns NEG or POS.
Example
:DECoder1:SPI:POLarity NEG ative /*Set the polarity of the SDA data line in SPI
decoding to negative*/
:DECoder1:SPI:POLarity? /*The query returns NEG*/
:DECoder<n>:SPI:EDGE
Syntax :DECoder<n>:SPI:EDGE <edge>
:DECoder<n>:SPI:EDGE?
Description
Set or query the clock type when the instrument samples the data line in SPI decoding.
Parameter
Name Type Range Default
<n> Discrete {1|2} --
<edge> Discrete {RISE|FALL} RISE
Return
Format
The query returns RISE or FALL.
Example
:DECoder1:SPI:EDGE FALL /*Set the instrument to sample data on the falling edge
of the clock in SPI decoding*/
:DECoder1:SPI:EDGE? /*The query returns FALL*/