Matlab Engine API C++ open and run Simulink Project file

5 visualizaciones (últimos 30 días)
Matthias B
Matthias B el 15 de Jun. de 2020
Respondida: Pranav Verma el 19 de Feb. de 2021
Hey,
what is the right way to open and run a simulink project file? I tried evalAsync and load_system. But this cmd needs a slx file.
Do you have some suggestions for me? THX
std::unique_ptr<MATLABEngine> matlabPtr = startMATLAB();
matlabPtr->evalAsync(u"load_system('~/test_project.prj')");

Respuestas (1)

Pranav Verma
Pranav Verma el 19 de Feb. de 2021
Hi Matthias,
You can use openProject to open any .prj file. Simply specify the path to the project as argument to the function.
You can also refer to the link and follow the steps to open the recent projects.
Thanks

Categorías

Más información sobre Deploy to C++ Applications Using MATLAB Data API (C++11) en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by