How to locate all the continuous blocks in a Simulink/Simscape model?

8 views (last 30 days)
We are working with a Simulink/Simscape model that we now need to use a discrete solver. However, I get an error that there are continuous blocks in the model. How do I find these blocks (there are masked subsystems in the model, so the Discretizer is not working).
Thank you Spencer

Answers (1)

Steve Miller
Steve Miller on 29 Oct 2021
Hi Spencer,
Normally this diagnostic will indicate that the model must have no continuous states to use the discrete solver. Given that your model has Simscape content in it, there will be continuous states in the Simscape model.
You can enable the Simscape Local Solver and that will let the Simscape Local Solver handle the continuous states. Simulink will see the network as a discrete-time only model.
--Steve

Community Treasure Hunt

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

Start Hunting!