LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formula Node is missing a left parathesis?

Solved!
Go to solution

I've just completed the distance formula in a formula node, and the only problem I'm having now is the fact that the only error is that the formula node is missing a left parathesis. Can someone help me with this? The vi file is attached. Thanks in advanced!

0 Kudos
Message 1 of 9
(4,454 Views)
Solution
Accepted by topic author c.okolo

You need sqrt(pow(x1-x2,2)+ etc...

Glad to answer questions. Thanks for any KUDOS or marked solutions 😉
0 Kudos
Message 2 of 9
(4,433 Views)

Thank you very much, this did fix my missing left parathesis problem, but now the program is stating I have "too few arguments"? File is attached once again.

0 Kudos
Message 3 of 9
(4,428 Views)

Try right clicking the formula node, adding the correct inputs (x1, x2, y1, and y2), and then wiring them. You only need the sqrt... line to make this work.

Glad to answer questions. Thanks for any KUDOS or marked solutions 😉
Message 4 of 9
(4,422 Views)

Here is a youtube video on formula nodes. Assign and wire the inputs and outputs.

 

https://www.youtube.com/watch?v=6sxDkAOGQ7w

 

Glad to answer questions. Thanks for any KUDOS or marked solutions 😉
Message 5 of 9
(4,402 Views)

I actually did something a little different..

I made the x2-x1 and y2-y1 2 different equations, then made the output= (Eq1+Eq2);

Thank you for your help!

File is attached to see what I did differently.

0 Kudos
Message 6 of 9
(4,400 Views)

May I ask why you are trying the formula node, since you already have a working pure g solution?

 

The formula node is really not that useful and can be difficult to debug. It is pretty pointless and typically just complicates things.

 

Back to the problem at hand, why not use complex math instead?

 

 

Message 7 of 9
(4,397 Views)

In my computer programming class, we're required to be knowledgable on both using operators as well as using the formula node, so I was just practicing for my final exam. 

0 Kudos
Message 8 of 9
(4,384 Views)
That seems pretty pointless. If you want to learn text based code, use a text based programming language.
0 Kudos
Message 9 of 9
(4,357 Views)