LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I input a mathematical equation and solve it in Labview?

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

0 Kudos
Message 1 of 3
(2,469 Views)

Hi ,

    Please read This. Ofcourse this is possible.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 2 of 3
(2,457 Views)

@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

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 3
(2,448 Views)