07-29-2023 07:10 AM
Hi,
I am new at FPGA cRIO coding. Please help.
I am able to send a voltage signal (sinusoidal) to a system (traverse).
However, my task is to filter this noisy signal using Butterworth filter and take the difference of the two consecutive filtered data, with time stamp and check if the difference is larger than a threshold value, then only I should send the signal to my system (traverse).
But since Butterworth filter gives one element at a time, I am not able to store the two consecutive data so that I can take the difference and also I am not able to find the time difference between the two consecutive data point, which I need for my application.
Thank you
Solved! Go to Solution.
07-29-2023 07:32 AM
You can add a feedback node to store the data from the previous iteration.
07-29-2023 07:40 AM
Hi ZYOng,
You have shown real time VI. I need help in FPGA target VI. I can't access this block diagram in FPGA.
Thanks for your response though.
07-29-2023 07:51 AM
That's an FPGA VI. My computer does not have the FPGA module installed hence the FIFO Method Node is greyed out.
That VI I shared is the shipping example from <LabVIEW>\examples\CompactRIO\FPGA Fundamentals\FPGA Math and Analysis\Butterworth Filter
The feedback node is available for all the host, RT and FPGA VI.
07-29-2023 07:56 AM
Thank you ZYOng for clearing the confusion, I will implement your suggestion and let you know.
07-29-2023 08:44 AM
Thank you ZYOng, your suggestion worked.