From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-06-2014 02:41 PM
What I want:
I want to have a numeric control that controls the amount of data that will be averaged.
(ex: numeric control set to 10)
This control results in the 10 data points before and the 10 data points after the current iteration will be averaged
My guess at a solution:
The numeric control will be combined with the iteration in a for loop.
My array of data will enter this for loop and combine with this.
My output of the for loop will be the averaged data.
I will then delete the first 10 lines of the array but I can do that.
An example vi of this would be awesome, I figured it will take someone no time at all to implement this.
Thanks!
Christian
Solved! Go to Solution.
05-06-2014 02:56 PM
05-06-2014 03:06 PM
If only it was homework.....
It's for a senior project that I have been working on, I am novice to many aspects of LV since was just introduced to it a month ago. Right now my mind is running in circles so that's why I need help. But I'll attach the subvi that I have that I will implement this in.
Long story short, I have IMU data that has already been saved to a tdms file. I am pulling the separate waveforms out and I simply want to cancel some noise out and smooth the data. I want to average it as I posted above.
The vi is really a mess right now so dont be shocked.
Thanks!
Christian
05-06-2014 03:13 PM
05-06-2014 03:24 PM - edited 05-06-2014 03:25 PM
Yes I have looked at it.
What it does is take your sample length and use the previous values to find the mean.
I want to use the previous and future values to find the mean.
Thanks,
Christian
05-06-2014 03:26 PM
How is the program supposed to predict the data from the future?
05-06-2014 03:31 PM
I have already collected all the data and now i am running it through post-processing.
Thanks,
Christian
05-06-2014 03:41 PM
05-06-2014 03:51 PM
File attached. Is that what you want?
Thanks,
Christian
05-06-2014 03:56 PM
@cseymour05 wrote:
I have already collected all the data and now i am running it through post-processing.
No, don't flood us with tons of irrelevant data. Just attach the 1D array that contains the data. You also need to decide what to do with the data at the beginning and end, where the averaged subset is truncated.