04-29-2011 05:36 AM
Hello,
after an acquisition I have a 3D array whose dimensions are 1x400x10000, in fact it's a 2D array, but labview sees it as a 3D array.
I need to find the threshold in every row, and sum 1000 elements, after the threshold element, in order to get a 1D array of 400 element.
(I'm using labview 8.2, in case someone can attach some example).
Thank you!
04-29-2011 08:07 AM
What have you tried? You will learn more about LV if you try it and ask for help on specific questions.
Hint: Index array is your friend.
Lynn
04-29-2011 08:44 AM
This is what I tried up to now:
I wanted to see if in this way I could get an array with the threshold elements.
04-29-2011 08:56 AM
@danieleviola wrote:
Hello,
after an acquisition I have a 3D array whose dimensions are 1x400x10000, in fact it's a 2D array, but labview sees it as a 3D array.
I need to find the threshold in every row, and sum 1000 elements, after the threshold element, in order to get a 1D array of 400 element.
(I'm using labview 8.2, in case someone can attach some example).
Thank you!
A 1 x 400 x10000 array is a 3D array. It just so happens that the one particular dimension is only 1 element long. As Lynn hinted, if you want to turn it into a 2-D array, then you need to use Index Array.
04-29-2011 11:34 AM
OK, now I achieved in having an array with the position of the slope of the acquisition matrix,
next step will be summing the elements of that matrix starting from the slope point.
04-29-2011 12:31 PM
What is going on in your True case statement? That looks like a Rube Goldberg to me.
Building a 1-D array into a 2-D, then indexing out the 1st (#0) row leaves you with the same thing you started with.