The flag of the S-function module is a variable defined in the system. The flag of one S-function affects the flag of another S-function, resulting in a running error. I would like to ask if there is any way to run multiple S-function modules in one MATLAB/Simulink model, as shown in the figure.Multiple S-function modules in a model
I am trying to run a MATLAB/Simulink model which includes multiple S-function modules.