LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Firmula Node Missing Right Parenthesis

Solved!
Go to solution

The following Formula Node code

 

if ( Res == "Full" )
{
  MS1 = 0;
  MS2 = 0;
  mcstep = 1;
}

 

Produces this error.

 

Error on line 1 is marked by a '#' character: "if ( Res == "Full"# ) {    MS1 = 0;   M"

 

Res comes from a Numeric Cntrol with Enum Properties.

 

It isn't obvious to me why this code produces a miiising right parenthesis error. What needs to be done to eliminate this error?

 

Howard

0 Kudos
Message 1 of 2
(2,176 Views)
Solution
Accepted by topic author hrh1818

It's not complaining about the parenthesis, it's complaing about "Full".  You need to compare the number.  Of course, you could code it in LabVIEW instead of a forumla node as well.

0 Kudos
Message 2 of 2
(2,174 Views)