MATLAB: How to simulate a model with a different timestep using a model block

'model block'different simulation timesimulink

I'm using a model block in my model. This submodel block should run several times during the execution of the model.
Both models have a different stop time in their solver and both are discrete with a fixed timestep.
When I run the model, it starts to execute both models together while the MODEL block should run totally every timestep in the main model.
Can I imply it using some option of the model block or is it impossible in simuling??

Best Answer

Based on the description it sounds like you want a MODEL BLOCK to run faster than the main model using a fixed time step. This is not possible directly.
However, you can use a for each subsystem that will run the contents of the subsystem multiple times per time step. You may be able to wrap the entire contents of the model block in this type of subsystem to run at a faster rate.
Furthermore, you imply you want the model to run independently (different start/stop times), which is also not possible directly. You could create 2 seperate models and use UDP Send and receive blocks to communicate between the two. This would allow each model to function completely independent of eachother.
Related Question