User manual

Chapter 2 Command System RIGOL
MSO1000Z/DS1000Z Programming Guide 2-211
:TRIGger:SPI:SDA
Syntax :TRIGger:SPI:SDA <source>
:TRIGger:SPI:SDA?
Description
Set or query the channel source of SDA in SPI trigger.
Parameter
Name
Type
Range
Default
<source> Discrete
{D0|D1|D2|D3|D4|D5|D6|D7|D8|
D9|D10|D11|D12|D13|D14|D15|
CHANnel1|CHANnel2|CHANnel3|CHANnel4}
CHANnel2
Explanation When one or more of channels D0 to D7 is turned on, CH4 cannot be selected; when one
or more of D8 to D15 is turned on, CH3 cannot be selected.
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 :TRIGger:SPI:SDA CHANnel2 /*Set the channel source of SDA to CH2*/
:TRIGger:SPI:SDA? /*The query returns CHAN2*/
:TRIGger:SPI:WHEN
Syntax :TRIGger:SPI:WHEN <trig_type>
:TRIGger:SPI:WHEN?
Description
Set or query the trigger condition in SPI trigger.
Parameter
Name
Type
Range
Default
<trig_type> Discrete {CS|TIMeout} CS
Explanation When the trigger condition is set to TIMeout, you can use the :TRIGger:SPI:TIMeout
command to set the timeout value.
Return
Format
The query returns CS or TIM.
Example :TRIGger:SPI:WHEN TIMeout /*Set the trigger condition to TIMeout*/
:TRIGger:SPI:WHEN? /*The query returns TIM*/
:TRIGger:SPI:WIDTh
Syntax :TRIGger:SPI:WIDTh <width>
:TRIGger:SPI:WIDTh?
Description
Set or query the data bits of the SDA channel in SPI trigger.
Parameter
Name
Type
Range
Default
<width>
Integer
4 to 32
8
Return
Format
The query returns an integer.
Example
:TRIGger:SPI:WIDTh 10 /*Set the data bits of the SDA channel to 10*/
:TRIGger:SPI:WIDTh? /*The query returns 10*/
Related
Command
:TRIGger:SPI:DATA