[SENSe:]DIGital:DATA:{BYTE|WORD}?

From Keysight 34970A/34972A

[SENSe:]DIGital:DATA:{BYTE|WORD}?

Syntax

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

Description

This query configures the specified channels as inputs and reads an 8-bit byte or a 16-bit word digital pattern from the specified digital input channels.

Parameters

Name Type Range of Values Default Value
<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

  • To read both ports simultaneously (WORD), you must send the command to port 01 (LSB) and neither port can be included in the scan list.
  • The digital input channels are numbered "s01" (LSB) and "s02" (MSB), where s is the first digit of the slot number.

Return Format

The output from this command is affected by the FORMat:READing commands.

Examples

The following command reads the value on channel 02 of the module in slot 100.

[SENSe:]DIGital:DATA:BYTE? (@102)

Typical Response: +100

 

The following command reads the value on channels 01 and 02 of the module in slot 200.

[SENSe:]DIGital:DATA:WORD? (@201)

Typical Response: +32103

See Also

SENSe Subsystem Introduction