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. OriginalOriginal

 

Formula NodeFormula Node

 

Output (Original)Output (Original)

 

Output (Formula Node)Output (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
(2,680 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
(2,671 Views)

Sorry. I have added two VI snippets now.

Download All
0 Kudos
Message 3 of 6
(2,656 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
(2,627 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
(2,592 Views)

That looks really neat.

 

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

0 Kudos
Message 6 of 6
(2,539 Views)