This is expected behavior. This issue occurs because triggered subsystems do not support continuous sample times, but Fortran Level-1 S-functions support only continuous sample times. Therefore Fortran Level-1 S-functions can not be included inside a triggered subsystem.
There are two ways to work around this issue:
1. Use Level-2 S-functions instead of Level-1 S-functions as explained in the following documentation page:
<http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/sfg/f5-88442.html>
2. Use enabled subsystems in place of triggered subsystems. This is demonstrated in the attached model "Mathworks_Test_Works.mdl"
Best Answer