Error Meassage Simulation of model '....' is not allowed because it is a 'subsystem' block diagram
44 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
Réponses (1)
Fangjun Jiang
le 16 Nov 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.
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!