Simulink: How to start simulation of a subsystem separately?

Hi guys,
I would like to start simulating an enabled or trigger subsystem separately. Right now when I run the simulation, the subsystem starts simulating as well. To be more specific, I have a step in my subsystem that starts at 1 for 3 seconds and then goes to 0. When I trigger this at t=2, I only get 1 for another second instead of 3 seconds as I intended and then it drops back to 0.
How to I solve this?
Thanks in advance

回答 (2 件)

Kaustubha Govind
Kaustubha Govind 2013 年 1 月 18 日

0 投票

If your subsystem is inside an enabled subsystem, you simply have to disable the Enabled Subsystem until t=2.

2 件のコメント

Yi En
Yi En 2013 年 1 月 18 日
Thanks for the answer, but how do I disable the subsystem? Apart from that, the time at which I want to enable the subsystem is not fixed and it will happen repeatedly but possibly at irregular intervals...thanks in advance
Kaustubha Govind
Kaustubha Govind 2013 年 2 月 1 日
The control signal of the enabled subsystem is used to enable/disable the subsystem. You need to use an appropriate combination of blocks to generate a signal that is 0 when the subsystem needs to be disabled and 1 otherwise.

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

Guy Rouleau
Guy Rouleau 2013 年 1 月 18 日

0 投票

The Step block uses the time from the model, you cannot offset it. Typically, to do what you are looking for you will need to implement your own source using blocks that are not function of the simulation time.
Usually, a combination of Sum, Gain, Switch, Integrator, etc can allow you to build many simple signals.

カテゴリ

ヘルプ センター および File ExchangeSubsystems についてさらに検索

製品

質問済み:

2013 年 1 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by