08-30-2016 05:34 AM
Hello,
I have a number of ODE that I solved in few seconds in Matlab with ODE15s and I am trying to reproduce the result with the available stiff ODE solver and I think they are
According to this help link
https://zone.ni.com/reference/en-XX/help/371894G-01/lvsimconcepts/sim_c_ode/
In my matlab system I have to choose relative and absolueerror tolerance 1E-10 and 1E- 18.
Labview seems to fail or to be too slow to integrate my ODEs.
I attached my code here and how the integration should look like.
08-31-2016 04:17 PM
Hi ziedhosni,
What does LabVIEW failing mean in this case? Are you not able to run the code? Is it returning something unexpected? Any clarification you can provide would be helpful!
Best regards,
08-31-2016 07:20 PM
09-01-2016 06:05 PM
ziedhosni,
I think you’re on the right track; what differences in parameters are you seeing/setting between programs? If the LabVIEW code is working, you might just need to tune the solver itself. Also, can you be sure that both solvers are using the same solver method?
09-02-2016 05:14 AM
09-06-2016 01:38 PM
Hi Zied,
Take a look at this link:
https://zone.ni.com/reference/en-XX/help/371894G-01/lvsim/sim_simulation_loop/
Here you should find helpful resources outlining how the parameters you mention can be configured (Configure Simulation Parameters under the Input Node heading).
Best regards,