SOURce:DIGital:DATA[:{BYTE|WORD}]

From Keysight 34970A/34972A

SOURce:DIGital:DATA[:{BYTE|WORD}]

Syntax

SOURce:DIGital:DATA[:{BYTE|WORD}] <data>,(@<ch_list>)

SOURce:DIGital:DATA[:{BYTE|WORD}]? (@<ch_list>)

Description

This command outputs a digital pattern as an 8-bit byte or 16-bit word to the specified digital output channels.

Parameters

Name Type Range of Values Default Value
<data> Numeric An integer from 0 to 255 (:BYTE) or 65,535 (:WORD). This is a required parameter.
<ch_list> Channel List

One or more digital I/O channels, as shown:

(@301) - channel 01 on the module in slot 300.

(@101:102,201,302) - channels 01 and 02 on the modules on slot 100, channel 01 on the module in slot 200, and channel 02 on the module in slot 300.

This is a required parameter.

Remarks

  • Note that you cannot configure a port for output operations if that port is already configured to be part of the scan list (digital input).
  • You must specify an integer value, either as a decimal number (213), a binary number (#b11010101) or a hexadecimal number (#hD5).
  • The digital output channels are numbered "s01" (lower byte) and "s02" (upper byte), where s represents the slot number.
  • If you are going to write to both ports simultaneously (WORD), you must send the command to channel 01.

Return Format

The :BYTE? (or :WORD?) query returns the last byte or word sent to the specified digital output channel as a decimal number in the form +255.

Examples

The following commands all output the number 12345 to channel 01 on the module in slot 200.

SOUR:DIGital:DATA:WORD 12345,(@201)                ! decimal integer 12345
SOUR:DIGital:DATA:WORD #b0011000000111001,(@201)   ! binary equivalent of decimal integer 12345
SOUR:DIGital:DATA:WORD #h3039,(@201)               ! hexadecimal equivalent of decimal integer 12345

 

The following command reads the number on channel 01 on the module in slot 200.

SOUR:DIG:DATA:WORD? (@201)

Typical Response: +12345

See Also

SOURce Subsystem Introduction