07-12-2017 03:26 PM
Hello everyone!
I'm currently working with a USB-6009 that sends voltage data to LabVIEW, and I'm struggling with a large amount of noise in the signal. Unfortunately, I'm new to LabVIEW and am thus struggling with filtering the signal. I've attached my VI file, and I was just wondering if anyone knew how I could install a boxcar filter (aka a moving average filter or a rolling average filter) within this file.
Thank you in advance for your help!
Katie
Solved! Go to Solution.
07-12-2017 04:09 PM
Is it possible for you to do any physical filtering on the signal? Unless you've got a single that is out of your control lots of time you can fix noise by checking for ground loops or applying a simple hi/low pass filter with a capacitor. I'd recommend that over attempting it in software if at all possible. It's not wrong to do it in software per say, but if you can get a better physical signal it would be a good place to start. Is that possible?
07-12-2017 04:30 PM
Something like this?
07-12-2017 04:50 PM
Nevermind what I said ^this is perfect^. Do this^^^^
07-13-2017 10:08 AM
Thank you all so much for your help with this, I'll work to create a boxcar filter with this guidance and keep you posted!
07-13-2017 11:35 AM - edited 07-13-2017 11:55 AM
Of course, you'll probably want to rotate the array to get values before and after.
Or a conditional output on the index to delay for half the number of samples
07-14-2017 07:33 AM
Thank you all for your help! Unfortunately, once I realized how complicated this would be in LabVIEW, I decided to use MATLAB as I have additional experience with this software. I hope that these responses will be helpful for others with more experience that are wishing to use LabVIEW!