10-26-2009 07:24 AM
Good morning!
I have on question, How can I plus some fractions in LabVIEW?
Example:
(40/100*s+1) + (50/200*s^2+102*s+1)
How can I make this operation in LabVIEW??
Thanks!
Solved! Go to Solution.
10-26-2009 07:59 AM
Hey,
Think in dataflow!
And see attached jpg.
Christian
10-26-2009 08:50 AM
10-26-2009 09:03 AM
Hey Tim,
I just used the calculations to show the possible implementation in LV. Though you are right to use constants instead of the 40/100 and so on.
Christian
10-26-2009 09:12 AM
Thanks for the help!
I thought have an easier way to make it.
and this isn't constant guys
it's because I only make an example to learn how do it
I will try here
10-26-2009 09:16 AM
Christian_M wrote:I just used the calculations to show the possible implementation in LV. Though you are right to use constants instead of the 40/100 and so on.
I figured as much. I was saying it for the OP, because he seems to be new at LV. I know I've wasted a lot of time starting to code the division before I realized it was just a constant.
10-26-2009 09:39 AM
10-26-2009 11:56 AM
Hi EduU,
I believe that the best way to implement your formula is using the "Expression Node" in the Numeric Palette since you have only one variable (s).
By the way, the Christian_M implementation has a little mistake, see the attached snapshot.
Hecuba
10-27-2009 02:20 AM
10-27-2009 08:09 AM - edited 10-27-2009 08:12 AM
Edu,
It those equation are Transfer Function in the "s" domain, you should consider using the Control Design and Simulation Module. Once you created the transfer function, you can see the result and do other operations like obtaining the Frequency Response or simulate its result. Here is the code for adding the two transfer functions you described above
Let me know if this answer your question!