10-11-2010 11:40 PM
Hi guys,
I am currently encountering a problem in my Final Year Project at Nanyang Technological University, Singapore.
Basically, currently, I am developing a Comb Filter in Lab View 2009 (attachment: correct comb filter2.vi)
The input to the comb filter comes by batch of 1000 samples.
However, I am supposed to process the data in continuous manner.
My comb filter basically takes the difference between current sample (sample number t) and sample number (t-40) and divides the result by sqrt 2.
The problem is that for the second batch onward, I have to take the difference between each first 40 sample of current batch with each last 40 sample of previous batch. My program currently cannot deal with this problem since it cannot pass the last 40 sample of current batch into the next batch so that we can perform this task. I have tested it using test comb filter.vi (attached).
Could anyone help with a suggestion?
I would really appreciate it since the deadline of project is nearing.
Thanks before.
Regards,
Agus Herryanto
School of Mechanical and Aerospace Engineering
Nanyang Technological University
Solved! Go to Solution.
10-12-2010 02:54 AM
Send Current last 40 samples to a shift register. When you next read from it it'll be the previous last 40.
Then subtract previous last 40 from current first 40 and divide. Done.
Basically as attached vi implies.
/Y
10-14-2010 08:24 AM
Dear Mr Yamaeda,
Thanks for your help.
Actually, I am supposed to subtract every element with the past 40 element not just the first 40, however the crucial part could be done because of your help.
Once again, thank you.
Regards,
Agus