How can i order a clock block (or other linea block) to start at a specified time in simulink?

Hi guys I have a model with two different timelines. I defined these timelines with two clock blocks. Both blocks would start at simulation start time. I want one of them to start at a different time. What can I do?
I tried both enable and trigger subsystems both nothing happened.

 採用された回答

A Jenkins
A Jenkins 2014 年 7 月 1 日

0 投票

Do you just want a "clock" block that starts at a non-zero time? Use a ramp block.

2 件のコメント

Siavash
Siavash 2014 年 7 月 1 日
Thanks for the answer but I need to calculate the desired t time during simulation. I can not give an external value to ramp block as an initial value. Can I do this for any other kind of block?
A Jenkins
A Jenkins 2014 年 7 月 1 日
編集済み: A Jenkins 2014 年 7 月 1 日
Build your own Ramp with an Integrator Block? This gives the same answer as above. It uses the external reset = 'level' for the integrator to hold it off until the condition becomes true.
(Another option is to recreate the ramp block. Just right-click on it and select "Mask->Look Under Mask" to see how it works.)

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

その他の回答 (0 件)

カテゴリ

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

質問済み:

2014 年 7 月 1 日

編集済み:

2014 年 7 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by