LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

log10 used in a formula node

I am trying to create a formula using log10(X) in a formula node.  I can enter log(X) with no errors, but when I enter log10(X) I get an error.  How do I use log10 in a formula node?  Is log(X) actually log10?

 

Alan

0 Kudos
Message 1 of 4
(7,094 Views)

Hi Alan,

 

by reading the context help of the formula node ("click for more help" Smiley Wink ) I found: log(x) is base10, otherwise you may use ln(x) or log2(x).

Message Edited by GerdW on 12-17-2008 08:26 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(7,088 Views)

Log is typically base 10, test it in some code to find out.

 

 

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 3 of 4
(7,083 Views)

I ran into this a while ago. There are two different contexts in LabVIEW that give different meanings to the logarithm functions, re what the base is. I think maybe one context is mathscript and the other is formula nodes. If you get the documentation for one when you are doing the other things make little sense.

 

I think maybe they just change which base "log" refers to and how to specify the other base.

0 Kudos
Message 4 of 4
(7,057 Views)