06-01-2010 06:47 PM
Hi,
I need help for converting/design a Transfer Function in Simulink called "Transfer Function with Initial Outputs" into LabVIEW. This transfer function has an option to set Initial input and Initial Output that the normal transfer function in LabVIEW does not have. Really appriciate if someone could help me in this.
I tried few experiment using the normal transfer function thats available in LabVIEW and compare it with the simualtion using Transfer Function with Initial Outputs in Simulink and the results varies. With certain values the result are similar but when I keep changing the values randomly sometimes it produce different results. Was wondering if anyone ever had the same problem before?
Thanks
Ridhwan Ali
06-01-2010 08:30 PM
06-01-2010 09:24 PM
Hi Andy,
What do you mean by IC? I found NI_CD_Time Response.lvlib but could not see d_IC_Conversion VI that you were saying.
The transfer function that I've used is:
TF 1: 1/(0.001s + 1)
TF 2: 1/(0.02s + 1)
at this moment, for both TF, I set the initial input and output to 0.
Btw, is there a tutorial available on how I could contruct the transfer function using NI_CD_Time Response.lvlib?
06-02-2010 01:46 PM
You can find that VI here
C:\Program Files\National Instruments\LabVIEW 2009\vi.lib\addons\Control Design\_Time Response Analysis\Time Response.llb\Time Response subVI\cd_IC Conversion VI
Something like this should do the trick.
06-02-2010 06:58 PM
Hi Andy,
I build the example you gave. I did some testing but I gets a different results when while running both TF in Simulink and LabVIEW. Can you check if I'm doing it right? I posted the image of the both simulation below.
Btw, I was wondering how could I set the initial input in LabVIEW?
Thank you.
06-03-2010 08:55 AM
Here's a screen shot from my result which looks correct.
Could you post your code here?
I have posted an example on TF with Initial Condition, which you can find it here.
http://decibel.ni.com/content/docs/DOC-11082
Cheers
06-03-2010 08:56 AM
06-03-2010 05:53 PM
Hi Andy,
Attached is the VI I created following the first model you post. In Simulink, there are 2 initial conditions. One for the initial input and the second one for initial output. How could I implement that using the model you created?
Thanks.
06-04-2010 07:58 PM
Hello Tebu,
I'm not too familiar with TF with Initial Input. From what I recall, there are TF with initial outputs and TF with initial states/Initial condition. Could you point me to the reference to TF with initial input?