LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running Average 2D(or more) Array Graphed

I am really confused on how to plot the running average for my data. I allow the user to say how many data points they want averaged. The user can also collect up to 32 channels of data @ 1000hz.

I understand averaging a 1D array, but how do I simultaneously plot averages when its a 2D,3D,etc array? By that I mean plot the average value for channel 0 at the same time as channel 1 at the same time as channel 2...

Any help is appreciated, thanks!

Lauren
0 Kudos
Message 1 of 2
(2,621 Views)
Lauren,

It sounds like you would like to extract each channel from the 2D data array so that you can average them simultaniuosly. The best way to do this is by wiring the 2D array to the input of index array function. The funtion will morph to have an input for index(row) and index(col). You can extract one channel of the 2D array by wiring a constant to the column input. The output of this function is then a 1D array that you are used to averaging. Becasue using 32 of these may become cumbersome the function could be placed inside of a loop and the loop iteration could control the row to extract each iteration of the loop. I hope this resource helps!

Regards,

Shea C
Applications Engineering
NI
0 Kudos
Message 2 of 2
(2,621 Views)