NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is the exponential not working in TestStand?

Solved!
Go to solution

Hi,

I am hoping this is a simple question to get answered... I have a values in dBm and I am trying to convert it into mW so I am using this equation in a statement line

"Parameters.value_mW = 10^(Parameters.vaule_dBm / 10)" but the vaule it keeps giving me is 10.... ?_? So for debugging purposes I tried setting the equation to "Parameters.value_mW = 5^(Parameters.vaule_dBm / 10)" and behold it gives me a 5 instead of 10. It seems that TestStand is completly ignoring the exponential my number is being raised to. 

 

Thanks for your help,

Dustin

0 Kudos
Message 1 of 3
(3,102 Views)
Solution
Accepted by topic author dlovell

Hi Dustin,

 

To do exponential in TestStand, you will need to use Pow(). ^ is actually bitwise exclusive-OR.

Hope this helps.

Rohama K.
Message 2 of 3
(3,096 Views)

Thanks!!! Can't believe I didn't think of that...

0 Kudos
Message 3 of 3
(3,085 Views)