12-05-2016 10:16 AM - edited 12-05-2016 10:18 AM
Hello;
I'm developing an application where the user can change the coefficients of a notch filter (frequency and width). I want to plot a Bode diagram with the actual notch filter parameters, as when you change it during the developement.
Does anyone how to do it?
Thanks
Solved! Go to Solution.
12-09-2016 03:41 PM
It depends on what parameters or processing code you have access to.
If I understand your situation right you are designing your filter at run time (on your Win target I assume) and you get a filter VI. If you have access to your zeros directly you can create the corresponding response.
If you have an instance of the filtering VI itself (so time domain filtering VI) you can calculate the magnitude spectrum of your filter impulse response as shown on the attached VI.
If your situation is different please give us more details and preferably some code to look at.
12-12-2016 01:34 AM
12-12-2016 02:39 AM
Here it is!
12-13-2016 05:29 AM
Hello;
I think that I didn't explained well what I want.
I'm using the Notch Coefficients function to generate the scaled coefficients to pass them to the Notch Filter.
So, when I change the coefficients (frequency or width) I want to see the response of the filter as if I do double clicking in the Notch Coefficients function
Thanks
12-13-2016 07:40 AM
Try the attached VI. It requires LabVIEW 2014 FPGA.
Also the VI is password protected since it uses NI internal tools that are password protected, but you should be able to use it as a subVI in your application.
12-13-2016 07:52 AM
Disclaimer
I forgot to mention that the VI I provided above is by no means officially supported by NI and may break if you upgrade to future LabVIEW versions.
12-13-2016 07:59 AM