How can i run different timelines in Simuink?
조회 수: 3 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
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
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
2014년 6월 9일
hi. you need to develop a scheduler where in the subsystem2 gets triggered based on subsystem1
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Schedule Model Components에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!