Error Meassage Simulation of model '....' is not allowed because it is a 'subsystem' block diagram

44 visualizaciones (últimos 30 días)
Hello,
I want so simulate a simulink block with subsystems automatically with Matlab script ( sim() function..).
I got the mesassage: "Simulation of model '....' is not allowed because it is a 'subsystem' block diagram"
Is it not possible to simulate a simulink model with subsystem automatically with sim() command from Matlab?
What can I do to enable this? Is there another (newer) command for this?
I use Matlab 2021
Kind Regards
Samuel

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 16 de Nov. de 2022
sim() starts the simulation of a "model", not a "block" inside it.
To simulate that subsystem block, you have to copy that subsystem block to create a new model and then simulate it.

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by