VXI SM8000 decimal value for wavelength nm, HIGHBYTE and LOWBYTE value to, hexadecimal value

Models: SM8000

1 74
Download 74 pages 4.14 Kb
Page 66
Image 66
decimal value for wavelength (nm).

 

 

 

 

VXI Technology, Inc.

 

 

 

83h

 

 

 

 

 

 

Command Name

Query Maximum Attenuation

 

 

 

 

 

 

 

Command Format

83h

 

 

 

 

 

 

Description

The Query Maximum Attenuation command returns the maximum 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.

 

 

 

 

 

 

 

 

89h

 

 

 

 

 

 

Command Name

Query Calibration Wavelength

 

 

 

 

 

 

 

Command Format

89h

 

 

 

 

 

 

Description

The Query Calibration Wavelength command returns the calibration wavelength value

 

 

in a 2-byte (16-bit) format. The calibration wavelength is an integer value that

 

 

represents the wavelength at which the attenuator was calibrated.

 

 

 

 

Example

The following example translates the HIGH_BYTE-LOW_BYTE returned value into

 

 

a decimal integer value:

HIGH_BYTE and LOW_BYTE value to

 

 

1.

05h & DCh = 05DCh

 

 

 

 

hexadecimal value.

 

 

2.

05DCh = 1500nm

Convert hexadecimal value to an integer

 

 

 

 

decimal value for wavelength (nm).

66

SM8000 Series Programming

Page 66
Image 66
VXI SM8000 user manual decimal value for wavelength nm, HIGHBYTE and LOWBYTE value to, hexadecimal value