02-14-2013 01:40 AM
Hi everyone,
How can I input a mathematical equation of this form e.g. [ x(t) = e^(A*Ts)*x(t-Ts) + e^(A*Ts)*integral{e^(-A*tau)*d(tau)}*B*u(t-Ts)]?
How can I evaluate/solve for x(t), which is a vector, in a simulation loop?
Appreciate anyone who would help me. Thanks.
Regards,
Student
02-14-2013 02:38 AM
Hi ,
Please read This. Ofcourse this is possible.
02-14-2013
03:30 AM
- last edited on
01-28-2025
12:55 PM
by
Content Cleaner
@Nemesiss5 wrote:
Hi everyone,
How can I input a mathematical equation of this form e.g. [ x(t) = e^(A*Ts)*x(t-Ts) + e^(A*Ts)*integral{e^(-A*tau)*d(tau)}*B*u(t-Ts)]?
How can I evaluate/solve for x(t), which is a vector, in a simulation loop?
Appreciate anyone who would help me. Thanks.
Regards,
Student
Well, LabVIEW is a graphical programming language which is not to be confused by a numerical computing software like e.g. MatLab.
So LabVIEW prefers code in "generic" ways, which is no equation like you wrote but a bunch of mathematical nodes wired together. Still, LabVIEW can understand equations....if you have the correct version and/or toolkit. You could for instance use the MathScript RT module to include equations written in m-file style (afaik m-files have been defined my MathWorks, the company providing MatLab).
But since you ask for "simulation loop" in specific, you may want to look for the Control and Simulation module.
Obviously, you are a student. So ask your supervisor if you have any of those modules already available ("academic" license?).
To get further information rather than some general links, you should elaborate on your task. And keep in mind: breaking down the equation to basic mathematical functions will always work in LV.
Norbert