C/C++ wrapper to invoke SIMULINK model/libraries in external software designs
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Is it possible to use C/C++ wrapper functions to call SIMULINK models in an external environment such as Visual Studio or eclipse C++ software project?
The reason is that any modification to the original model doesn't need to be visitble outside. The updated model can still be accessible via wrapper function.
Could someone help me?
0 Commenti
Risposte (1)
Kaustubha Govind
il 28 Giu 2013
It is possible to generate a standalone C/C++ shared library from your Simulink model if you have an Embedded Coder license, which you can then invoke from any C/C++ application.
However, it looks like what you want is to continue to run the model within the MATLAB environment, correct? If so, you can write MATLAB code to run the model using the Simulink command-line API, or more specifically, the sim command if you want to execute the model without any additional operations. You can then call the MATLAB code from a C/C++ application running on the same machine by using the MATLAB Engine interface.
2 Commenti
Kaustubha Govind
il 23 Lug 2013
Mohammed: Could you please provide examples of the model functionality that you're looking to use?
Vedere anche
Categorie
Scopri di più su Simulink Coder in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!