06-29-2008 05:16 AM
06-29-2008 05:56 AM
06-29-2008 06:04 AM
Thanks for an answer,
I just need a 3D array.Some processing may be done on 2D slices,but at
the end, there is 3D FFT, so the whole 3D array needed.
Thanks.
06-29-2008 06:31 AM
06-29-2008 06:56 AM
Hi Andre,
What about getting rid of the Flush queue as you suggested by doing the appropriate producer / consumer loops? That would mean changing the For Loop to a While Loop and de-queueing the elements within the 2nd While Loop. If you enable the indexing out of the While Loop you'll end up with a 3D array.
See attached example.
RayR
06-29-2008 11:28 AM - edited 06-29-2008 11:30 AM
mishklyar wrote:
It is LV 8.2, so there is no "in-place" structure.
06-29-2008 03:08 PM
06-29-2008 03:37 PM
I just "popped in" and probably don't understand something.
However, one thing I didn't indertand is why the 2nd queue was needed. As I mentionned in my previous post, the while loop of the consumenr loop can create the 3D array without the additional queue.
I attach your code modified without the 2nd queue.
RayR
06-29-2008 04:19 PM
Hi JoeLabView ,
I run your VI,and look at the size of the 3D array at the end.Every time it was different.
However I understand your idea.Just need to decide tomorrow wich way is more efficient:
1) Of preallocated 3D array, and substituting 2D arrays at apropriate index.
2) Your way, with carefull timing and/or stop condition.
Buy the way,may be it is better to realize the queue after the consumer loop at your VI?
Thanks,
Michael
06-29-2008 04:22 PM - edited 06-29-2008 04:23 PM