Keeping several COM Instances alive

조회 수: 1 (최근 30일)
Norbert Thek
Norbert Thek 2017년 7월 10일
답변: Shashank 2017년 7월 14일
Hello
I would like to run a batch of simulation using matlab/simulink. The problem is, for every calculation Matlab/simulink is closed and reopened. This takes an eternity, especially considering the simulation only runs for 10-20sek but startup takes up to 1min!!!!
I'm considering to use Matlab via COM-Server. meaning it stays alive during my runs and its administrated from an extra program which selects the relevant Model/Data and runs a simulation.
Now the questions:
  • Is it possible to have more then one Matlab COM Server running in parallel
  • Is there another way to dramatic reduce startup time (<< 10s!)
  • has somebody else tried something like this
... administrating the simulation from inside Matlab is currently not an option
Thanks for any comments/ideas

답변 (1개)

Shashank
Shashank 2017년 7월 14일
Hi Nobert,
There are much better ways to run batch simulations:
1. Use parallel computing toolbox to make use of all the cores on your machine or a pool
2. If you want to change the parameter values of the same model and do Monte Carlo Simulations,
3. Use Batch job in Simulink Projects
Hope this helps
- Shashank

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by