CONFigure:DIGital:WIDTh

34980A

CONFigure:DIGital:WIDTh

Syntax

CONFigure:DIGital:WIDTh <width>, (@<ch_list>)

CONFigure:DIGital:WIDTh? (@<ch_list>)

Description

This command configures the specified digital input or output channels for the desired width.

Used With:

  • 34950A Digital I/O Module (digital input/output channels only)

  • 34952A Multifunction Module (digital input/output channels only)

Parameters

Name

Type

Range of Values

Default Value

<width>

Discrete

{BYTE|1|WORD|2|LWORd|4}

BYTE (or "1" byte):  8 bits
WORD (or "2" bytes):  16 bits
LWORd (or "4" bytes):  32 bits

BYTE (8 bits)

<ch_list>

 

Numeric

 

One or more digital input or output channels in the form (@sccc).

34950A: s101 through s104, s201 through s204
34952A: s001 through s004

This is a required parameter

 

Remarks

  • Depending on the width specified, the channel numbering is modified as shown below. For example, if you specify the width as a 16-bit WORD on the 34950A, channels 101 and 102 are combined and addressed collectively as channel 101.  

34950A

Bank 2

Bank 1

BYTE (8 Bits):

Ch 204

Ch 203

Ch 202

Ch 201

Ch 104

Ch 103

Ch 102

Ch 101

WORD (16 Bits):

Ch 203

Ch 201

Ch 103

Ch 101

LWORd (32 Bits):

Ch 201

Ch 101

 

 

 

34952A

Bank 1

 

BYTE (8 Bits):

Ch 4

Ch 3

Ch 2

Ch1

 

WORD (16 Bits):

Ch 3

Ch 1

 

LWORd (32 Bits):

Ch 1

 

  • The selected width applies to input or output operations on the specified channels. Use the CONFigure:DIGital:DIRection or SOURce:DIGital:STATe command to configure the specified channels for input or output operations.

  • Changing the channel width will disable buffered (memory) operations and clear memory on the specified digital channels (see [SENSe:]DIGital:MEMory:ENABle command).

  • The selected width is stored in volatile memory and will be set to "BYTE" when power is turned off or after a Factory Reset (*RST command).

Return Format

The query command returns the width in bytes for the specified channels: "1" for BYTE (8 bits), "2" for WORD (16 bits), or "4" for LWORd (32 bits). Multiple responses are separated by commas.

Examples

The following program segment configures the 34950A in slot 3 for two 16-bit words and then configures the channels for output operations.

CONF:DIG:WIDTH WORD,(@3101,3103)
CONF:DIG:DIR OUTP,(@3101,3103)

The following query returns the width of channels 101 and 103 on the 34950A in slot 3.

CONF:DIG:WIDTH? (@3101,3103)

Typical Response:  2,2

The following program segment configures the 34952A in slot 5 for one 32-bit word and then configures the channel for output operations.

CONF:DIG:WIDTH LWORD,(@5001)
CONF:DIG:DIR OUTP,(@5001)

The following query returns the width of channel 1 on the 34952A in slot 3.

CONF:DIG:WIDTH? (@5001)

Typical Response:  4

See Also

CONFigure:DIGital

CONFigure:DIGital:DIRection

CONFigure?

SOURce:DIGital:STATe