Specifications
RIGOL Chapter 2 Command System
2-186 M300 Programming Guide
SOURce:DIGital:DATA[:BYTE]
SOURce:DIGital:DATA:DWORd
SOURce:DIGital:DATA:WORD
Syntax SOURce:DIGital:DATA[:BYTE] <data>,(@<ch_list>)
SOURce:DIGital:DATA[:BYTE]? (@<ch_list>)
SOURce:DIGital:DATA:DWORd <data>,(@<ch_list>)
SOURce:DIGital:DATA:DWORd? (@<ch_list>)
SOURce:DIGital:DATA:WORD <data>,(@<ch_list>)
SOURce:DIGital:DATA:WORD? (@<ch_list>)
Description Set the specified DIO channels to output the specified values in 8-bit (BYTE), 16-bit
(WORD) or 32-bit (DWORD).
Parameters
Name
Type
Range
Default
<data> Integer
8-bit: 0 to 255
16-bit: 0 to 65535
32-bit: 0 to 42,9496,7295
None
<ch_list>
Channel
List
One or more channels (only for channel 01 to
channel 04 of the multifunction module), the rules
are as follows:
(@101): channel 01 on the module in Slot1;
(@101:103): channel 01 through 03 on the module
in Slot1;
(@101:103,301): channel 01 through 03 on the
module in Slot1 and channel 01 on the module in
Slot3.
None
Explanation Only DIO channels that have not been added into the scan list can be used as the
digital output terminal (DOUT).
<data> can be a decimal number (216), a binary number (#b11011000) or a
hexadecimal number (#hD8).
The SOURce:DIGital:DATA[:BYTE] <data>,(@<ch_list>) command is applicable to
S01 to S04.
The SOURce:DIGital:DATA:WORD <data>,(@<ch_list>) command is only applicable
to S01 and S03. At this point, S01 (LSB) and S02 (MSB) as well as S03 (LSB) and S04
(MSB) are configured as two 16-bit digital output terminals.
The SOURce:DIGital:DATA:DWORd <data>,(@<ch_list>) command is only applicable
to S01. At this point, S01 (LSB), S02, S03 and S04 (MSB) are configured as a 32-bit
digital output terminal.
If (@<ch_list>) does not match the above conditions, an error will be generated.
Return
Format
The query returns the singed decimal numbers. Multiple return values are separated by
commas.
Example
SOUR:DIG:DATA:BYTE 219,(@101:104)
SOUR:DIG:DATA:WORD #b0101010110101010,(@101,103)
SOUR:DIG:DATA:DWORD #h55aa,(@101)
SOUR:DIG:DATA:DWORD? (@101)
The query returns +21930.
Related
command
SOURce Command Subsystem