02-13-2013 04:04 PM
Hello all,
I am having trouble approaching this problem. I have a sub-VI which outputs a 2D-array for each iteration of a while-loop. This is spectroscopic data set where the first column is the time value and the next 32 columns are intensities from the array detector. RIght now I am fine with just figuring out how to solve my problem with only two columns.
Anyways, I want to be able to save the array between iterations ( which I am implementing a shift register for) and then average the next array with the previous saved array. Since all my time points will be equivalent in between iterations (the sub-VI creates a special time axis), I want to do a straight running average where each element is averaged with the previous corresponding element in the array.
What would be the best way to approach this part? Should I just do a build array and at the end somehow iteratively average together all of the appended arrays? I figure that would take way too long compared to a running average though.
Thank you for your help. I can clarify further if anything seems unclear.
02-14-2013 12:13 AM
Try using index array for elemenet by element averaging for both the arrays. You dont need buid array anyways.
One more question, if some points are same then do averaging of those elements which are not equal or expected to be different.
Do you have any sample data. It will be great if i have some data on which operation needs to be performed.