Matlab Engine API C++ open and run Simulink Project file
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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')");
0 commentaires
Réponses (1)
Pranav Verma
le 19 Fév 2021
Hi Matthias,
You can use openProject to open any .prj file. Simply specify the path to the project as argument to the function.
Thanks
0 commentaires
Voir également
Catégories
En savoir plus sur Deploy to C++ Applications Using MATLAB Data API (C++11) dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!