VXI SM8000 Multiply dB value by 100 to get integer decimal, Convert to HIGHBYTE and LOWBYTE

Models: SM8000

1 74
Download 74 pages 4.14 Kb
Page 64
Image 64
Multiply dB value by 100 to get integer decimal

VXI Technology, Inc.

6Ch

Command Name

Power Down Motor

Command Format

6Ch

Description

This command functions the same as 35h and 43h.

 

 

 

80h

 

 

 

 

 

 

Command Name

Set Attenuation

 

 

 

 

 

 

 

Command Format

80h HIGH_BYTE LOW_BYTE

 

 

 

 

 

Description

The Set Attenuation command sets the attenuation value using a 2-byte (16-bit)

 

 

format.

 

 

 

 

 

 

Example

The following example translates a decimal attenuation value (dB) into the

 

 

HIGH_BYTE-LOW_BYTE command input format:

 

 

1.

100 x 34.39 = 3439

Multiply dB value by 100 to get integer decimal

 

 

 

 

value.

 

 

2.

3439 = 0D6Fh

Convert integer decimal to hexadecimal.

 

 

3.

HIGH_BYTE = 0Dh

Convert to HIGH_BYTE and LOW_BYTE

 

 

 

LOW_BYTE = 6Fh

format.

64

SM8000 Series Programming

Page 64
Image 64
VXI SM8000 user manual Multiply dB value by 100 to get integer decimal, Convert integer decimal to hexadecimal, format