04-11-2012 04:39 PM
Seems like a possible solution, but how to set the limits for a 2D array?
04-11-2012 04:41 PM
I would just put the In Range function inside the same For Loop as the interval calculation and just ditch negative values.
04-11-2012 04:49 PM - edited 04-11-2012 04:49 PM
I don't have some of your subVIs. Let's make it simple:
04-11-2012 04:56 PM
Hoping it will work now.
04-11-2012 05:32 PM - edited 04-11-2012 05:32 PM
04-11-2012 05:51 PM
Worked fined, but I had to increment the number of loop iterations by 1, in order not to cut of the last row of the array! Seems like it is working fine now! Thanks a lot for the help!:D
Greetings
Kristoffer
04-11-2012 06:02 PM
I was just wondering if I could bother you with one last question. I have added some code, in order to interpolate between some datapoints, and then multiplying this with the transposed array that you just helped me with. I then want to find the total sum for each column, but when I do this I end up with an 1D array of only 60 elements. I guess it should have been something like 180 elements (one element for each column). Do you have any idea of where this come from?
Greetings
Kristoffer
04-11-2012 06:59 PM - edited 04-11-2012 06:59 PM
Well, most of your code is overly complicated and a lot of it makes no sense. For example your inner FOR loop on the right repeats the same calculation 200x. Once is enough!
Here's a quick draft, also simplifying the interpolation. If you want to sum in the other dimension, just remove the transpose operation as indicated.
04-12-2012 04:21 AM
Thank you so much! You are truley a master of LabView!:)
Greetings
Kristoffer