Instructions
RIGOL Chapter 2 Command System
2-172 DS1000Z-E Programming Guide
: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
:TRIGger:SPI:DATA
Syntax :TRIGger:SPI:DATA <data>
:TRIGger:SPI:DATA?
Description
Set or query the data in SPI trigger.
Parameter
Name
Type
Range
Default
<data> Integer 0 to 2
32
-1 82
Explanation The range of <data> is related to the data bits. The maximum data bits is 32. Thus, the
range of <data> is from 0 to 2
32
-1.
Return
Format
The query returns an integer.
Example
:TRIGger:SPI:DATA 5 /*Set the data to 5*/
:TRIGger:SPI:DATA? /*The query returns 5*/
Related
Command
:TRIGger:SPI:WIDTh










