Stop simulation block effect on aborting generated code execution.
Hello,
I have a SIMULINK model that contains a STOP SIMULATION block which is activated for a certian condition. When I generated the C code for this model by embedded coder and did a SIL, I noticed that the condition was not called in the execution and the code kept running until the simulation time even the condition was true.
The question is: is STOP SIMULATION block affect in the generated code ? I mean that is it generated like interrupt or something that stops the execution and return to the main function? Or it is just useful in the MIL ?Hello,
I have a SIMULINK model that contains a STOP SIMULATION block which is activated for a certian condition. When I generated the C code for this model by embedded coder and did a SIL, I noticed that the condition was not called in the execution and the code kept running until the simulation time even the condition was true.
The question is: is STOP SIMULATION block affect in the generated code ? I mean that is it generated like interrupt or something that stops the execution and return to the main function? Or it is just useful in the MIL ? Hello,
I have a SIMULINK model that contains a STOP SIMULATION block which is activated for a certian condition. When I generated the C code for this model by embedded coder and did a SIL, I noticed that the condition was not called in the execution and the code kept running until the simulation time even the condition was true.
The question is: is STOP SIMULATION block affect in the generated code ? I mean that is it generated like interrupt or something that stops the execution and return to the main function? Or it is just useful in the MIL ? simulink, matlab, embedded coder MATLAB Answers — New Questions