## Question

How can I display the remote power readout of a

How can I display the remote power readout of a

The NRP and NRP2 base unit has a "dBm" and a "Watt" readout. Conversion to "dBm" takes place in the NRP or NRP2. A remote command always returns the measured power values in "Watt". The sensors cannot internally convert the power values to "dBm".

However, a computer and a program are always needed for remote operation. In the computer program, it is easy to convert the unit from "Watt" to "dBm" using equation [1]:

a = 10 * (log_{10}(P / 1 mW)) dB [1]

Sometimes compilers only provide a base 2 logarithm function. In this case, you can calculate the base 10 logarithm function with equation [2]:

log_{10}(x) = log_{2}(x) / log_{2}(10) [2]

Using the base 2 logarithm function, equation [2] and equation [1] give you equation [3]:

a = 10 * (log_{2}(P / 1 mW) / log_{2}(10)) [3]

Equation (4) is the general way to calculate the base 10 logarithm from other logarithm bases (note the subscripts b and c):

log_{c}(x) = log_{b}(x) / log_{b}(c) [4]

Where:

a -> power level in "dBm"

P -> power returned from the sensor

log_{2 }-> base 2 logarithm function

log_{10} -> base 10 logarithm function

log_{b} -> base b logarithm function

log_{c} -> base c logarithm function