User manual

Chapter 2 Command System RIGOL
MSO5000 Programming Guide 2-13
Example
:BUS1:PARallel:SLOPe BOTH /*Sets the Parallel decoding to sample on any edge
of the clock channel.*/
:BUS1:PARallel:SLOPe? /*The query returns BOTH.*/
:BUS<n>:PARallel:WIDTh
Syntax
:BUS<n>:PARallel:WIDTh <wid>
:BUS<n>:PARallel:WIDTh?
Description
Sets or queries the data width of the parallel bus, i.g. the number of bits per frame.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<wid>
Integer
0 to 20
1
Remarks
After you send this command to set the data width of the bus, send
the :BUS<n>:PARallel:BITX and :BUS<n>:PARallel:SOURce command to select
the bit respectively and set the channel source for the bit.
Only when the bus source is set to User, can this command be valid.
Return
Format
The query returns an integer ranging from 0 to 20.
Example
:BUS1:PARallel:WIDTh 16 /*Sets the data width of Parallel decoding to 16.*/
:BUS1:PARallel:WIDTh? /*The query returns 16.*/
:BUS<n>:PARallel:BITX
Syntax
:BUS<n>:PARallel:BITX <bit>
:BUS<n>:PARallel:BITX?
Description
Sets or queries the data bit that the parallel bus requires to set for the channel source.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<bit>
Integer
0 to (data width - 1)
0
Remarks
The data width is set by the :BUS<n>:PARallel:WIDTh command.
After selecting the desired bit, send the :BUS<n>:PARallel:SOURce command to
set the channel source for the bit.
The data bit should be smaller than or equal to the data width.
Return
Format
The query returns the current data bits in integer. Its unit is Hz.
Example
:BUS1:PARallel:BITX 2 /*Sets the current bit to 2.*/
:BUS1:PARallel:BITX? /*The query returns 2.*/