08-29-2012 03:18 AM
Hello,
I read through the oscilloscope waveform data is 8x150000 array
I want each catch 8x15, 8x15 .....
do process
A total of 10,000 times
Diagram is as follows
how can i do? ,thanks~
10-12-2012 05:05 AM
Thank you for your post.
I took a look at your problem, and here is my solution to manipulate the array you described.
If you take the sample code uploaded, I initialise an 8x150000 Array with a random number (every element is the same) and I display this in the indicator of the same name. I feed this into the for loop which iterates 10000 times. Using the increment counter I am able to pull each 8x15 Array Subset to which I add another random number, for demonstration purposes. As I pass this out of the for loop, I use Tunnel Mode -> Indexing to build up a 3-Dimensional array to represent the data as an 10000x8x15 Array in the corresponding indicator.
I also put in some timing just incase you need to synchronise your scope with the code in some way. You might also want to be aware that a 8x150000 Array of doubles takes up 9.6MB of data so processing data inside the for loop may become more efficient.
I hope this helps,
Regards,