03-31-2009 09:03 AM
Dear Sir
I'm beginner in labview and I would like to solve the following two differential equations and plot them over time:
dx1/dt= (G-K*x1(t))/V(t)
dV(t)/dt = (1/((1-(((G-x1*(K-U))/(G-x0*(K-U)))^((U/(K-U)))))-1))*U
G=7.8
U=0.166
x0=132
Vo=432
K=2.02
Could anyone please help me and send the block diagram for these two equations.
The graphs of both variables must be decreased over time. The graph of X1 is exponential decay.
Solved! Go to Solution.
04-01-2009 11:00 AM
A good place to start might be here:
http://zone.ni.com/reference/en-XX/help/371361B-01/lvanlsconcepts/solving_odes/
- or -
Go to the Mathematics pallette then theDifferential Eqns sub-pallette and see if what you need is there.
04-01-2009 11:14 AM
Could you please draw the block diagram for it because I'm a beginner in labview?
04-01-2009 11:28 AM
While many people here will post an example of a screenshot of code, they will hardly ever write your entire application for you, especially if that is what you are looking for.
The forums are here for assistance, to get people over hurdles. When that hurdle is just being new to LabVIEW, we will reccomend tutorials and training.
04-01-2009 11:47 AM
I'm now reading and learning the basics of labview. but if you have any simple example using the ODE solver becase all the build in examples are very complex and I can't understand it.
I just need any helping examples about writing differential equation using ODE solver function?
04-01-2009 03:53 PM
Hello Ahmad,
I made a simple example and put it on our community page. This example uses our ODE solver VIs. LabVIEW comes with 8 built in ODE solvers. These are all linear system solvers. It appears that your equations are not linear. I would suggest using LaPlace transforms to solve the equations.
Example Code
04-01-2009 05:00 PM
Thanks very much for your help and your interest. I will try to make it.
Ahmad