Simulink: S-function in subsystem: Terminate

I am using a s-function in a (action or enabled) subsystem. I really need to run the s-function's terminate method, but it seems that the subsystems do not terminate the simulation and the terminate method is executed at the end of the simulation by simulink.

Asked:

on 8 Oct 2014

Answered:

on 11 Oct 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!