11-27-2012 11:04 PM
I am trying to integrate a formula node into an array, I keep getting errors and don't know why. Any ideas?
Thanks!
Solved! Go to Solution.
11-27-2012 11:11 PM - edited 11-27-2012 11:15 PM
X is a 2D array but you're trying to index it as a 1D array. You're also missing a semi-colon at the end of that statement....and y needs to be indexed since you want a 1D out.
11-27-2012 11:22 PM
That is a better attempt.
The problem is that you only defined your output y array to be a 1-D array. And your math on the input array is also acting like it is a 1-D array.
See the attached modification.
But your formula is simple enough that doing it in real LabVIEW code is easier and you don't have to deal with syntax problems of the formula node.
(Note, since I don't have your data, I couldn't run this, so it is possible there are errors.)