LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I have a problem in building transfer function

Hi,
1)I have the transfer function with an equation. H(s) = ((G)/(1+(s/Qw)+((s/w)**2)).
2)Like the VI in this page.
Frequency response using swept sine
 I need to replace the "digital IIR filter
VI" with my own transfer function
So I need to build a block that contains my transfer
function equation. But I don't have any of the
toolkits so I can't write the function directly into
LabVIEW. What I've done so far is converting my
equation into a difference equation(bilinear). then write it in
LabVIEW. My block diagram looks similar to the one at the last example. 
As in the link below

http://zone.ni.com/devzone/cda/tut/p/id/2836

my problem is that how can I deal with this VI that
I've already made(the difference equation)? I need to
pass signal thru this VI(sine) and get an output with
gain and shifted phase. Can you please give me an
example.
I saw somebody post that I can use this with the IIR filter.vi but I don't know what parameter to wire. Please help me with this as it's quite urgent. Thank you
Winn 
0 Kudos
Message 1 of 2
(2,531 Views)
Dear Winn:

     Hope you are doing well. I am not sure if I undersand fully your question. If you do not have the signal processing VI's in your LabVIEW pallette and if You have the difference equation programmed. You will need to generate a sine wave or simulate a signal and handle them as 'array' data structures and then pass them in to your loop which performs the difference equation.  How are you planning on generating your sine wave on which you hope to operate on. You will then program the formula to calculate the gain and offset that you plan on getting out.

http://zone.ni.com/devzone/cda/tut/p/id/3557

Thanks and hope this helps
Regards
Avi Harjani






0 Kudos
Message 2 of 2
(2,498 Views)