ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(3,683 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
(3,674 Views)

Sorry. I have added two VI snippets now.

Download All
0 Kudos
Message 3 of 6
(3,659 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
(3,630 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
(3,595 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
(3,542 Views)