User manual
Chapter 2 Command System RIGOL
MSO7000/DS7000 Programming Guide 2-209
:TRIGger:SPI:WHEN
Syntax
:TRIGger:SPI:WHEN <when>
:TRIGger:SPI:WHEN?
Description
Sets or queries the trigger condition of SPI trigger.
Parameter
Name
Type
Range
Default
<when>
Discrete
{CS|TIMeout}
CS
Remarks
When the trigger condition is "TIMeout", you can run the :TRIGger:SPI:TIMeout
command to set the timeout value.
Return
Format
The query returns CS or TIM.
Example
:TRIGger:SPI:WHEN TIMeout /*Sets the trigger condition to TIMeout.*/
:TRIGger:SPI:WHEN? /*The query returns TIM.*/
:TRIGger:SPI:WIDTh
Syntax
:TRIGger:SPI:WIDTh <width>
:TRIGger:SPI:WIDTh?
Description
Sets or queries the data width of data 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 /*Sets the data width to 10.*/
:TRIGger:SPI:WIDTh? /*The query returns 10.*/
:TRIGger:SPI:DATA
Syntax
:TRIGger:SPI:DATA <data>
:TRIGger:SPI:DATA?
Description
Sets or queries the data value of SPI trigger.
Parameter
Name
Type
Range
Default
<data>
Integer
0 to 2
32
- 1
82
Remarks
The range of the parameter <data> is related to the current data width. The available
maximum data width is 32. Therefore, the range of <data> is from 0 to 2
32
- 1.
Return
Format
The query returns an integer.
Example
:TRIGger:SPI:DATA 5 /*Sets the data value to 5.*/
:TRIGger:SPI:DATA? /*The query returns 5.*/