How can i run different timelines in Simuink?

2 ビュー (過去 30 日間)
Siavash
Siavash 2014 年 6 月 9 日
編集済み: Rashmil Dahanayake 2014 年 6 月 9 日
Hi Guys. I have modeled a fate and transport system of contaminants in subsurface media with Simulink. This model consists of Subsystem 1 and Subsystem 2. The Problem is when I run the model, both Sub1 and Sub 2 run together but I want that the clock in Sub 2 starts with a delay respect to Sub1. In other words I want Sub 2 starts when sub 1 hit a specific time. I would be grateful if you help me through this.

採用された回答

Rashmil Dahanayake
Rashmil Dahanayake 2014 年 6 月 9 日
編集済み: Rashmil Dahanayake 2014 年 6 月 9 日
Use "Enabled subsytem" block for both Subsytems.
Updated file attached. Sub system 1 tuns from 0-75s. Subsystem 2 runs from 75-100s taking the value from subsystem1 when t=75s. You can edit the trigger point as required.
  3 件のコメント
Siavash
Siavash 2014 年 6 月 9 日
By the way my email is siavash.sedighian@gmail.com
Oh by the way the second compartment would start at t=75. Can I do anything that the 75s in subsystem 1 becomes 0 s in subsystem 2??
Rashmil Dahanayake
Rashmil Dahanayake 2014 年 6 月 9 日
編集済み: Rashmil Dahanayake 2014 年 6 月 9 日
reuploaded.
Subsystem1 starts at t=0, subsystem2 starts at t=75
For display purpose you can time shift the t-axis using an x-y plot instead of the scope.

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

その他の回答 (2 件)

Chandrasekhar
Chandrasekhar 2014 年 6 月 9 日
hi. you need to develop a scheduler where in the subsystem2 gets triggered based on subsystem1
  1 件のコメント
Siavash
Siavash 2014 年 6 月 9 日
As a matter of fact everything would be just fine if I can transport my signal backward. I can not transport backward just forward as long as Transport block does not accept any negative value. Do you have any answer for me? I would be very grateful for your help.

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


Rashmil Dahanayake
Rashmil Dahanayake 2014 年 6 月 9 日
Use an embedded matlab function to create a rule to overwrite negative time values. Attach the mdl file to investigate further
  2 件のコメント
Siavash
Siavash 2014 年 6 月 9 日
Here is my model. I need to eliminate all the zero elements before the "Travel time trough unsaturated zone" and shift my signal from "t=Tunsat" to 0. Would you mind help me?
Siavash
Siavash 2014 年 6 月 9 日
I need to shift the signal to zero and then proceed it to the next subsystem. I don't want them to run simultaneously.

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

カテゴリ

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