(ongoing...)
As explained in step 2a, when a module is set in an assembly, its sample time is available through the St variable and is used to set its function-call generator :
Then, the generated assembly can run in a Simulink model according to its Solver parameter :
In some cases, user may want to use the assembly in an already triggered SubSystem :
In that case, there are two function-calls, one in the other.
This is accepted by Simulink only if the second one, i.e. the module's one is set to -1, i.e. inhertied sample time.
It means that the function-call must be set to -1 (i.e. inherited), and St parameter must be still set to the requested value (i.e. the explicit sample time) :
though these two values are usually equals.
The inheritSampleTime option set to 1 enables such a difference :
According to the value, configurations are :
Remark : for consistency, with the inheritSampleTime option set to 1, all St values of modules should be equal, and equal to the upper function-call generator. This is not automatically verified.