11-16-2011 06:35 AM
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?
11-16-2011 07:57 AM
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.