VXI SM8000 User Manual

Page 65

Advertising
background image

VXI Technology, Inc.

SM8000 Series Programming

65

81h

Command Name

Query Attenuation

Command Format

81h

Description

The Query Attenuation command returns the current attenuation value as a 2-byte (16-
bit) value.

Example

The following example shows how to translate the HIGH_BYTE-LOW_BYTE
returned value into a dB attenuation value:

1.

0Dh & 6Fh = 0D6Fh

HIGH_BYTE and LOW_BYTE value to
hexadecimal value.

2.

0D6Fh = 3439

Convert hexadecimal value to an integer
decimal value.

3.

3439 / 100 = 34.39

Divide by 100 to convert to dB value.




82h

Command Name

Query Minimum Attenuation

Command Format

82h

Description

The Query Minimum Attenuation command returns the minimum attenuation setting
in a 2-byte (16-bit) format.

Example

The following example shows how to translate the HIGH_BYTE-LOW_BYTE
returned value into a dB attenuation value:

1.

0Dh & 6Fh = 0D6Fh

HIGH_BYTE and LOW_BYTE value to
hexadecimal value.

2.

0D6Fh = 3439

Convert hexadecimal value to an integer
decimal value.

3.

3439 / 100 = 34.39

Divide by 100 to convert to dB value.



Advertising