フィルターのクリア

Simulink - Disabling - Enabling - Switching Off-On - Blocks - Subsystems

62 ビュー (過去 30 日間)
JOKY JOKE
JOKY JOKE 2012 年 1 月 18 日
回答済み: Benison Jesse Ponticha 2021 年 2 月 20 日
Hi,
I would like to implement systems or blocks, which I can switch off, so that they are no longer part of the simulation (without deleting them). Something like an enabled subsystem. The problem with the enabled subsystem is, that even when I do not activate it during the simulation, Simulink needs the variables and parameters inside it for initialization. In my case, when the subsystem would be switched off, I do not want to give an parameters or variables for initialization. Is there a way to implement something like a switched subsystem oder block?
Thank you
  2 件のコメント
JOKY JOKE
JOKY JOKE 2012 年 1 月 18 日
Subsystem
K E
K E 2012 年 4 月 16 日
This would be useful for "commenting out" blocks in a Simulink model, so thanks for posting.

サインインしてコメントする。

採用された回答

JOKY JOKE
JOKY JOKE 2012 年 1 月 19 日
I found a solution: Inserting the two subsystems in a library combined with a configurable subsystem, which lets me choose one of them and which I then copy into the model solves the problem. Actually, I can not switch the subsystems off, I rather exchange them by doing this.
Now I have another problem, which I will post in another question.

その他の回答 (2 件)

Guy Rouleau
Guy Rouleau 2012 年 4 月 16 日
I would recommend using Variant Subsystem:
The end result is similar to Configurable Subsystem, but the usability is significantly improved.
This makes me realize that I made a blog post using subsystem variants, but I never made a post dedicated to them.
@ KE... your are not the only one asking for the possibility to comment out blocks in Simulink. This is definitely something considered for a future release.
  1 件のコメント
Anne
Anne 2014 年 4 月 2 日
Is there any update on the "comment out" feature? You mention that this is being considered for a future release and this is dated April 2012. Now that it's April 2014... has this feature been added? And if so, in which release? I haven't found any entries newer than yours in the matlab help. Thanks

サインインしてコメントする。


Benison Jesse Ponticha
Benison Jesse Ponticha 2021 年 2 月 20 日
You can right click then select comment out

カテゴリ

Help Center および File ExchangeSubsystems についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by