LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Missing right parenthesis help (they all seem to be there)

I am using a formula node for the quadratic equation.  I can not find where the parenthesis is missing. Every time I add one where it says the error is it doesn't do away.  Any suggestions?

Labview help.png

 

0 Kudos
Message 1 of 7
(3,068 Views)

(Next time, please attach a VI instead of a picture.)

 

Shouldn't there be a multiply between the ")("?

(There are quite a few more multiply operations missing. Find them!)

 

(... besides, you would not have this problem if you would use normal graphical programming instead of text nodes 😄 Try it!)

Message 2 of 7
(3,046 Views)

Try replacing the ** with something else.

0 Kudos
Message 3 of 7
(2,994 Views)

@natasftw wrote:

Try replacing the ** with something else.


The ** is one of the very few things that is correct here. 😄

(you might be thinking of the formula parser VIs, see here.)

 

Message 4 of 7
(2,990 Views)

@altenbach wrote:

The ** is one of the very few things that is correct here. 😄


Very true.  I just got super confused by the parenthesis in the OP's formula node.  There is such a thing as too many as it will start to cause confusion.  My advice here would be to remove all of the parenthesis and reexamine your groupings.

 

This is one of the places I, personally, actually find the formula a little easier to understand.  Any more than a few nodes for the math and I start losing track of the formula being built up.  Documentation becomes essential.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 5 of 7
(2,979 Views)

The only thing missing seems to be the sign between the paranthesis pairs. Since it's so normal to imply multiplication by just writing paranthesis together, just like stacking variables you'd assume/hope that'd work.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 7
(2,965 Views)

@Yamaeda wrote:

The only thing missing seems to be the sign between the paranthesis pairs..


Also have a look at e.g. "4ac" or "1/2a" 😮

0 Kudos
Message 7 of 7
(2,961 Views)