
Start function of Matlab S-function is called during code generation
12 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi,
I noticed a strange behavior while writing a Matlab S-function: when the model is built (code generation), the simulation "Start" function (in the Matlab file) is called once during the build process, while the Terminate is never called. Is it as expected? I would have expected that no simulation function is ever called during code generation. I'm using Matlab R2013a.
TIA,
- Florent
0 Commenti
Risposte (1)
Kaustubha Govind
il 18 Feb 2014
Are you sure that the Terminate function is never called? If you look under "Calling Structure for Code Generation" on the documentation page for Simulink Engine Interaction with C S-Functions, this is supposed for be the calling order during code-generation.

0 Commenti
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!