LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read into the array do processing individually

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

0829.png

 

how can i do? ,thanks~

0 Kudos
Message 1 of 2
(2,534 Views)

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,

Robert Ward
Applications Engineer, NI
0 Kudos
Message 2 of 2
(2,427 Views)