From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

Amplifier Design

Hi,

I need to design an amplifier to conteract a low pass filter, so I need simply to build a "filter" where i can define a transfer function (I will simply invert numerator an denominator).

For simulation I used TF Construction an TF interconnection to simulate the filter and the  amplifier however these VIs dont process waveform and signal variables.

So i'd like to know if there is a way to apply a waveform to tranfert function or to buid a filter with aspecific tranfer function?

thanks

0 Kudos
Message 1 of 4
(6,468 Views)

Hello.

 

To be able to apply your own transfer function, you can use special VIs available in the NI LabVIEW Control and Simulation Module.

 

Another solution would be to use a Mathscript node.

 

Regards

Message Edité par mehdi.afif le 10-14-2009 04:16 AM
0 Kudos
Message 2 of 4
(6,444 Views)

Hi,

I did the below processing,  it seams to be correct. i'd like to verify if my way of thinkung is correct.

processing.png

I need to apply this transfer function  to sound acquiredwith microphone and resend it speaker:


(2.56e-14*s^4+2.56e-10*s^3+9.6e-7*s^2+0.0016*s+1)/(6.561e-17*s^4+5.2488e-12*s^3+1.57464e-7*s^2+0.00209952*s+10.4976)

It corresponds to:


(-0.1919999949e-5*pi*f+(0.3199999488e-2*I)*pi*f+1)/(-3.149279999*10^(-7)*Pi*f+(0.4199039990e-2*I)*pi*f+10.4976)
in the frequency domain.

 

 

First, I indexe the sound stream with for loop. sencond, I computes FFT.Next, I indexe the FFT. In Math Sript I calculate the response of the TF. the argument of the function is the index of the FFT array (this is the main point that embarrasses me). I multiply the result by the FFT elements, and finally I reconstruct the sound stream.

Is this the right way to do that?

ie is the result of this processing the output of the obove_cited transfer function?

thank you

 

0 Kudos
Message 3 of 4
(6,420 Views)

Hi

what do you think about this solution to filter a waveform using a TF ??

 

filter.jpg

 

 

Nigeltorque
0 Kudos
Message 4 of 4
(5,652 Views)