Simulink Model Stuck Initializing
Show older comments
I just compiled a C MEX function and am trying to create an S-Function using it. However, after entering it into the S-Function block and pressing play, the model goes into "Initializing" mode and just stays like that. I have left it on for hours with no progress whatsoever. And I have to close MATLAB in order to get it to stop. What does this mean?
Accepted Answer
More Answers (1)
Joe Murphy
on 16 Aug 2017
1 vote
Hello Benjamin,
There could be a number of different things leading to this issue. In order to determine the cause of the issue, it will be important to get an understanding of whether or not is the S-function alone as a cause, and what inside the S-function code might be the cause. If you are able to, please provide your model, or a reduced example version of your model that still produces the issue, and all files necessary to run it as attachments.
If you cannot provide your model in any capacity, please reduce the components in your model and code in your S-function to their most simple versions that still cause the issue. Afterwards, please describe in as much detail the workflow you are using to generate the C MEX function and build the model, as well as the functions being used in your code and the components involved in your model.
Joe
Categories
Find more on Event Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!