Is it possible to override the mex32 check during code generation?

1 vue (au cours des 30 derniers jours)
Albert Yam
Albert Yam le 4 Juin 2013
Matlab 2007a, Simulink 6.6.1
I have run into a situation where we have an s-function(mex32) generated from some source code. The code was later updated but the mex32 was not (mistakenly). However, during code generation there were no errors, and no warnings. The code crashes and we traced the problem to the misaligned mex32/source code.
Is there a way during code generation to override the mex32 with the source code, or not use the mex32 in the code generation?
  3 commentaires
Albert Yam
Albert Yam le 14 Juin 2013
This is for a grt target. Yes, the generated executable/library is calling the stale mex32. Are you talking about the [Inline parameters] Optimization? That option has not worked for us, so is unchecked (so non-inlined?).
Kaustubha Govind
Kaustubha Govind le 14 Juin 2013
No, I meant the "Support non-inlined S-functions" checkbox on the Interface pane. I'm confused about how the generated code calls into the MEX-file, could you paste the call to it from the generated code?

Connectez-vous pour commenter.

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