Deploying a standalone application that uses a shared library
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
ZedRedLed
le 20 Déc 2018
Réponse apportée : ZedRedLed
le 21 Déc 2018
Hello,
I am trying to create a standalone Matlab application that uses a Simulink model. For this purpose, I compiled the Simulink model into a .dll file using this french tutorial. This worked pretty well and in Matlab I can use all the functions of the model.
The next step would be to compile the entire Matlab programm into a standalone application. Simply using the application compiler doesn't work and I read that the function loadlibrary is not supported in standalone applications. The GUI works, but when I try to calculate something with the model, nothing happens.
What would the correct way of doing this be? I read something about maybe 'prototype files'.
Thanks in advance!
2 commentaires
Walter Roberson
le 20 Déc 2018
coder.ceval() inside a MATLAB Function Block can be used to add a call to an arbitrary C function, passing in parameters. After that it is just a matter of linking the library to the executable at build time.
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simulink Coder 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!