01-09-2011 08:11 AM
I do simultaneous data acquisition on four channels and I need to store the acquired data into a 16x16 large 2D array. To save memory I decided to use the In Place Element structure, I extended it with four Index Array functions however I am struggling with what I can put on the right hand side of the structure.
It is clear that I wire the 2D array to all the Index Array functions, the row and column addresses are constantly changing and that I have to use shift registers. But how do I tell the LabVIEW that I want to modify the same array on multiple channels and not modifying 4 different arrays?
VI is attached.
Thanks,
Krivan
Solved! Go to Solution.
01-09-2011 09:14 AM
In place modifies just that, in the same memory place. The same array you send in is what you'll get out, modified, even at the same memory addresses.
Is the 16x16 meant to hold all 4 channels, or one for each? In the former you can just expand the index array to 4 inputs and you'll get 1 output to put to your shift register.
In the latter you'll need 4 arrays, either as 4 individual arrays, add a 3rd dimension for array or make a array of clusters (one for each channel) containing this small 16x16 array.
/Y
01-09-2011 09:32 AM
Thanks, the first one was the solution. I expanded the Index Array function, wired the respective analog input channels to the right side of the In Place and now hopefully it will substitute the initial zeros with the measurement results on the fly...