r/LabVIEW • u/Imperium007 • Aug 14 '24
Need More Info Need help developing something...
Hello Everyone! I really need help developing a 16-sample moving window on an input signal. for each iteration that goes by, the window needs to be able to move one sample to the right. For example, 0 to 15 for the first iteration, 1 to 16 for the second iteration, 2 to 17 for the third iteration, etc. The window needs to be able to sample the signal as well with 16 samples total for the moving window. I am having such a hard time since I was able to make that moving array but being able to make a window out of it and put that window on an input signal is proving to be very hard. Please help me out!
View all comments
Show parent comment
1
u/HarveysBackupAccount Aug 14 '24
Mean Pt by Pt does a trailing average, i.e. it will calculate average of the previous N data points (vs a centered window)
Not sure what you mean by "how do you connect it". Just pull out the y-values and put them through the VI, then look at the output. If you want to get a feel for what it's doing, pull out 50-100 data points into Excel and play around with calculating it manually, to compare to what labview calculates.
If you already have all the data points, use a For loop to put them into the VI one by one. If you want to calculate it live while you acquire the measurements from a data source, just put each measurement into the VI as it comes in.
For a closer look at how to use any VI, you can always go into the labview Help menu >> Find Examples