Effacer les filtres
Effacer les filtres

Code generation from S-Function

4 vues (au cours des 30 derniers jours)
Kaustubh Gandhi
Kaustubh Gandhi le 11 Mai 2015
Commenté : sridhar.s le 17 Août 2017
Hi, I have a S-Function, which is created from C. I have to share this S-Function to other 3rd parties, along with the information of parameters and their order.
I want to block code generation from this S-Function by the 3rd parties, which receive this model. Is it possible to block such a code generation from S-Function.
Thanks in advance,
  1 commentaire
sridhar.s
sridhar.s le 17 Août 2017
Hi I am working on EKF based induction machine on RT-LAB(Real Time System) for that i need s-function which is created from C code for non linear systems so please provide me the code if possible could you please help me in this regard

Connectez-vous pour commenter.

Réponse acceptée

Sainath Varikuti
Sainath Varikuti le 13 Mai 2015
A '.mex' of an S-Function is only good for Simulation. i.e for Model update, Simulating in Normal mode and Accelerator mode (by default). For generating code you would need the following files as discussed here .
1) Noninline S-Function - A source file of your S-Function. However there are certain limitations discussed here .
2) Inline S-Function - It is necessary to have a '.tlc' file for your S-Function in-order to generate Inline code and Simulate in Rapid accelerator mode.
Therefore, If you do not have either the source file or the tlc file you cannot generate code for your S-Function

Plus de réponses (0)

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!

Translated by