User manual

RIGOL Chapter 2 Command System
2-52 MSO1000Z/DS1000Z Programming Guide
:DECoder<n>:SPI:CS
Syntax :DECoder<n>:SPI:CS <cs>
:DECoder<n>:SPI:CS?
Description Set or query the CS channel source in SPI decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2}
--
<cs> Discrete
{D0|D1|D2|D3|D4|D5|D6|D7|D8|
D9|D10|D11|D12|D13|D14|D15|
CHANnel1|CHANnel2|CHANnel3|CHANnel4}
CHANnel3
Explanation This command is only valid in the CS mode (:DECoder<n>:SPI:MODE).
Return
Format
The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14,
D15, CHAN1, CHAN2, CHAN3, or CHAN4.
Example
:DECoder1:SPI:CS CHANnel4 /*Set the CS channel source in SPI decoding to CH4*/
:DECoder1:SPI:CS? /*The query returns CHAN4*/
:DECoder<n>:SPI:SELect
Syntax :DECoder<n>:SPI:SELect <CsNcs>
:DECoder<n>:SPI:SELect?
Description Set or query the CS polarity in SPI decoding.
Parameter
Name
Type
Range
Default
<n> Discrete {1|2} --
<CsNcs> Discrete {NCS|CS} NCS
Explanation
NCS: low level is valid (
). The instrument starts transmitting data when the
CS is low.
CS: high level is valid (
). The instrument starts transmitting data when the
CS is high.
This command is only valid in the CS mode (:DECoder<n>:SPI:MODE).
Return
Format
The query returns NCS or CS.
Example
:DECoder1:SPI:SELect CS /*Set the CS polarity to high level is valid*/
:DECoder1:SPI:SELect? /*The query returns CS*/