Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69682

ODE Solver providing result in MATLAB but not in LabVIEW

$
0
0

Hello everyone,

 

I'm trying to simulate a system of non-linear ODEs in LabVIEW. I have tested the code in MATLAB and got a very fast result (within seconds), and I am trying to simulate the same thing in LabVIEW but having some major issues. Certain things I noticed right away is that when the time step goes below 1 E -9, the variable step size solvers never converge (ie never stops executing). If I bring it down, then I get error 2324.

 

I'm pretty confident that the code in MATLAB and the code in LabVIEW are identical with regards to the state equations. Does anyone have any idea or faced this before? In MATLAB I am using the following command:

options=odeset('RelTol',1e-6,'Stats','on');
[Tt,y] = ode15s(@Diff_Eq5_core,[0 5],zeros(1,16),options);

It also works with the solver ODE23, which is what I tried to use with LabVIEW. I am attaching my LabVIEW code (very sorry for the messy wiring, I usually write code better then this but I was in a major hurry).


Viewing all articles
Browse latest Browse all 69682

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>