NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
neil84
Posts: 96
0 Kudos

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

Active Participant
mehdi.afif
Posts: 855
0 Kudos

Re : Amplifier Design

[ Edited ]

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
Member
neil84
Posts: 96
0 Kudos

Re : Amplifier Design

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

 

Member
nigeltorque
Posts: 38
0 Kudos

Rif.: Re : Amplifier Design

Hi

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

 

filter.jpg

 

 

Nigeltorque
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page