LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formula Node error: left brace required ???

I can't figure out the error:
Error on line 2 is marked by a '#' character:
" X =( pl4*# (T**4) + pl3*(T**3) + pl"

please help, thank you!!
0 Kudos
Message 1 of 3
(2,765 Views)
Hi,

Your problem is that the variables you are passing into the formula node are arrays and you are trying to access them as if they were simple scalar values. So, pl1..pl4, T and C all require you to specify the element you're using after the variable name, e.g. X=(pl4[1]*(T[1]**4)... etc. rather than just X=(pl4*(T**4)... In this way you are specifying which element of the array to use in your calculation.

Hope this helps,
Neil
0 Kudos
Message 2 of 3
(2,765 Views)
Hi,
how do I get the values of certain elements in an array (i.e. pl4[1], pl3[1], pl2[1]..etc)?
I also want to retrieve the first set of the values in cluster 49 when I execute the for loop first time, then the second set of cluster 49 the second time and so on. Am I doing the right thing using auto-indexing in the for loop?

Thank you very much
0 Kudos
Message 3 of 3
(2,765 Views)