LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA butterworth 3rd order

Solved!
Go to solution

Hi,

I want to implement butterworth filter 3rd order in FPGA. It must be possible to change the type (HP,LP,BP,BS) and the parameters (cuttof freq) during FPGA run. I found that there is Butterwort VI in FPGA Palette but it is not possible to change type from my host during the run.

 

I want to ask what are the other options to implement butterworth 3rd order in FPGA ?

 

Now my idea is to use Digital filter design toolkit in host to get coef. according the parameters and implement the filters polynom from multiply and add block in FPGA. But I am not sure about this... 

0 Kudos
Message 1 of 8
(3,255 Views)

Hi Charlie,

 

Have you tried "Using Multichannel Butterworth Filter - R-series" example? I think that's exactly what are you looking for.

CLA, CTA, CLED
0 Kudos
Message 2 of 8
(3,234 Views)

Yes I have seen this vi, but it is not what I want. I want to change the type during the run. When I opet this multichannel butterworth vi I cannot set the type (lowpass or highpass) from the host front panel. Only in block properties. Maybe it can be done somehow, but I do not know how. Please explain if it is possible...

0 Kudos
Message 3 of 8
(3,229 Views)

Hi Charlie,

 

basically you can open the FPGA VI "Using multichannel Butterworth filter (FPGA)". Inside is a express VI called "Butterworth filter" - if you create a SubVI from this express VI (rightclick->convert to subVI), go inside and then rightclick the Butterworth filter and select "Open front panel", you'll see, how the Butterworth is implemented. What more, you can see, where the LP/HP is being changed and bound this to a network shared variable.

 

Hope this helps.

Best regards,
Jano
0 Kudos
Message 4 of 8
(3,207 Views)

I tried what you advised me. Everything works but there is no option to change type of the filter in the sub VI. Please check it if you can and if it is possible please put a picture here or something if it is possible...

0 Kudos
Message 5 of 8
(3,197 Views)
Solution
Accepted by topic author charlie87

Hi,

 

you need to change the "lowpass" constant  at the lowest level to a control. See attached picture - I highlited the constant in question.

 

Hope this helps

Best regards,
Jano
Message 6 of 8
(3,187 Views)

thanks...now its working. Do you think that it can be possible to change the behaviour of this Butterworth block in multichannel mod ? Multichannel mod does not support 4th order and I would like it

0 Kudos
Message 7 of 8
(3,178 Views)

In that case you will probably have to rewrite the Butterworth filter VI. I would suggest trying to configure a multichannel filter and a 4th order filter, check their block diagrams and afterwards creating your own Butterworth that will support multiple channels and 4th order filter.

Best regards,
Jano
0 Kudos
Message 8 of 8
(3,161 Views)