Page 1 of 1

Math Engine Timeout when connecting with Matlab

PostPosted: Mon Mar 12, 2018 7:04 am
by rmartinez@draper.com
Hi,

I have a parametric diagram which is has a Matlab m-file to perform some rather large/intensive (matrix) calculations.
Whenever I launch a simulation from MD it generates a "TimeoutException when connecting to Math Engine" and then MD crashes / closes.

Is there a way to math the Math Engine wait long enough so that the computations are completed ?
(By way of reference when the Matlab code is executed outside of MD the time it takes for the computations to complete is about 6 mins.

Regards,

-Bob

Re: Math Engine Timeout when connecting with Matlab

PostPosted: Mon Mar 12, 2018 10:01 pm
by jirawat.l@nomagic.com
Dear Customer

You can increase the timeout for external solvers (Matlab, for example) by going to MagicDraw main menu > Options > Environment > Simulation > Parametric Evaluator group > External Solver Timeout. The time unit is in seconds.
solveEx.png


Best regards,
No Magic Customer Support

Re: Math Engine Timeout when connecting with Matlab

PostPosted: Mon Jan 13, 2020 2:52 am
by coyotemyflowers@gmail.com
Thanks for the information. It really helped me!