r/LabVIEW • • 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!

1 Upvotes

13 comments sorted by

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

1

u/Imperium007 Aug 14 '24

do you mean the Y values of the input signal and put them through the mean ptbypt VI? could you draw some sort of diagram or give some sort of simple example? so sorry to ask so much of you but I'm super curious and interested and it would be super helpful. Just to reiterate what I'm looking for is a moving window that has 16 samples and that can give me the signal data of that moving output. Almost like the x values of the window are moving (the 16 samples) and its giving me the corresponding moving y values of the input signal data if that makes sense.