LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

missing left parenthesis

Cp=(0.44-0.0167*b)*sin[#{p(l-3)}/(15-0.3*b)]-0.00184*(l-3)*b;

 

according to labview there is a parenthesis missing where the # is.

 

I can't see why this is the case.

If I expand the forumla as shown

 

Cp=(0.44-0.0167*b)   *   sin  {p * (l-3) }  /  (15-0.3*b)  ]   -   0.00184*(l-3)*b;

 

I don't see where there is an unclosed pair of brackets.

When i look up how to use sin it just shows sin(x) will calulate the sin of x. no other missing characters there then.

 

This is in a forumla node. p = pi

 

Am I missing something else when typing this formula in to the node?

0 Kudos
Message 1 of 2
(2,451 Views)

Square brackets are used for array indexing and curly brackets are used to define segment blocks. You have neither. Thus, your brackets should be replaced with parentheses.

 

Please review the Formula Node syntax in the LabVIEW Help.

 

Of course, you could have just done that in LabVIEW.

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