Effacer les filtres
Effacer les filtres

Embedding precompiled S-functions in Simulink model

6 vues (au cours des 30 derniers jours)
Jan Sailer
Jan Sailer le 3 Mai 2023
I have a rather large Simunlink model that can select from a variety of configuration Options, which are all currently implemented as unique S-functions. This model is supposed to be used by other people on their own computers, however every time the code is submitted after a change, it recompiles on their device even though we compiled everything before sending it. This consumes a lot of time.
Now to make this process a little faster, we would like to pre-compile the S-functions which we have embedded into the simulation. However previously working with Matlab Coder has revealed that Matlab dlls cannot be used by Matlab itself and mex files computed on one machine are not recognised on another. How can I minimise the compilation effort that users have to go through every time I make an update to the model? Can I integrate a library of already compiled S-functions into my simulation?
Due to the nature of the Simulink model, it cannot be turned into a dll in its entirety and it still requires Matlab/Simulink to initialise and run.

Réponses (0)

Catégories

En savoir plus sur Simulink Coder dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by