LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formula Node returning incorrect output

Solved!
Go to solution

I don't see what is wrong in the equation I have entered. It is returning wrong output compared to my manual calculation. 3.pngOriginal

 

1.pngFormula Node

 

4.pngOutput (Original)

 

2.pngOutput (Formula Node)

Have I entered the formula wrong in the formula node or is there anything else I am doing wrong here?

0 Kudos
Message 1 of 6
(311 Views)

Attach your VI please.  It is a lot easier to debug a VI than it is to debug a bunch of pictures!

0 Kudos
Message 2 of 6
(302 Views)
Highlighted

Sorry. I have added two VI snippets now.

0 Kudos
Message 3 of 6
(287 Views)
Solution
Accepted by topic author girish_jadhav

I see the problem.

 

You are using a comma as a decimal point inside the formula node.  Don't!  Use the proper decimal point of a period.

 

Read the context help for the formula node.  It says, "

  • Formula Nodes accept only the period (.) as a decimal separator. The nodes do not recognize localized decimal separators."
Message 4 of 6
(258 Views)

Although it doesn't answer your question (which appears to be already solved), you might consider using the Polynomial Evaluation VI:

Example_VI.png

GCentral
Message 5 of 6
(223 Views)

That looks really neat.

 

Thanks for the suggestion. I am still a newbie and learning new things everyday Smiley Happy

0 Kudos
Message 6 of 6
(170 Views)