LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cRIO FPGA programming

Solved!
Go to solution

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

0 Kudos
Message 1 of 6
(1,312 Views)
Solution
Accepted by win2023

You can add a feedback node to store the data from the previous iteration.

ZYOng_2-1690633908542.png

 

-------------------------------------------------------
Control Lead | Intelline Inc
Message 2 of 6
(1,282 Views)

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.

0 Kudos
Message 3 of 6
(1,275 Views)

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.

-------------------------------------------------------
Control Lead | Intelline Inc
Message 4 of 6
(1,264 Views)

Thank you ZYOng for clearing the confusion, I will implement your suggestion and let you know.

0 Kudos
Message 5 of 6
(1,261 Views)

Thank you ZYOng, your suggestion worked.

0 Kudos
Message 6 of 6
(1,240 Views)