Chapter 2 Command System RIGOL
MSO1000Z/DS1000Z Programming Guide 2-53
:DECoder<n>:SPI:MODE
:DECoder<n>:SPI:MODE <CsTmo>
:DECoder<n>:SPI:MODE?
Set or query the frame synchronization mode of SPI decoding.
 CS: it contains a chip select line (CS). You can perform frame synchronization
according to CS. At this point, you need to send the :DECoder<n>:SPI:CS
and :DECoder<n>:SPI:SELect commands to set the CS channel source and polarity.
 TIMeout: you can perform frame synchronization according to the timeout time. At
this point, you need to send the :DECoder<n>:SPI:TIMeout command to set the
timeout time.
The query returns CS or TIM.
:DECoder1:SPI:MODE CS /*Set the frame synchronization mode of SPI decoding to
CS*/
:DECoder1:SPI:MODE? /*The query returns CS*/
:DECoder<n>:SPI:TIMeout
:DECoder<n>:SPI:TIMeout <tmo>
:DECoder<n>:SPI:TIMeout?
Set or query the timeout time in the timeout mode of SPI decoding. The default unit is s.
 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).
The query returns the timeout time in scientific notation.
:DECoder1:SPI:TIMeout 0.000005 /*Set the timeout time to 5us*/
:DECoder1:SPI:TIMeout? /*The query returns 5.000000e-06*/