LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Moving average in real time

Hi, I am new to LabView. I am trying to process the signal obtained from the accelerometer with median filter,butterworth filter and moving average in real time. However, it take longer time to process the data with moving average. My main purpose of using the filtering and moving average is to reduce the noise in the signal. My question is how could I shorter the time to process the signal with moving average and what would be a better suggestion if I want to reduce the noise in signal and obtained a clean signal in frequency domain other than using moving average?

 

Any help will be appreciated. Thank you.

0 Kudos
Message 1 of 6
(5,967 Views)
Can you buffer the signal? Store it continuosly and process it a tad later?
0 Kudos
Message 2 of 6
(5,957 Views)
Putting your data collection in one loop and data processing in another loop would be the best way along with the buffer mentioned above. You nedd to make your data acquisition loop initilize the data acquisition before entring the loop so that you only have to read from the channel and close the references when you exit the program. DAQ assistances are not optimized for the best performance. They are a starting point for you to build on to make the program that you need.
Tim
GHSP
0 Kudos
Message 3 of 6
(5,949 Views)

Thanks for the suggestions. As I am new to LabView may I know is there any examples that related with buffer and store data continuously?

 

 

0 Kudos
Message 4 of 6
(5,886 Views)

There are a few different types of buffered data acquisition. Look in the examples. See below.

 

Buffered Search.png

Tim
GHSP
0 Kudos
Message 5 of 6
(5,875 Views)

Here is a thread that Ben put together on this subject.

 

http://forums.ni.com/ni/board/message?board.id=170&message.id=384496&query.id=312805#M384496

Tim
GHSP
0 Kudos
Message 6 of 6
(5,871 Views)