필터 지우기
필터 지우기

Regarding pausing an integration of a integrator block in a simulink model

조회 수: 9 (최근 30일)
Hi, I am running simulation using simulink. I wanted to know how can I delay an integration in a integrator block in my simulink model from happening for few seconds based on a particular condition? Simulation time should be running but integration in the integrator block shouldn't start for a specified time.
How can I do it?
I tried using pause command..but it didn't work..It would be great if you could help me in this regard..
Thanks!!

채택된 답변

Kaustubha Govind
Kaustubha Govind 2011년 9월 9일
This is not directly possible, but you should be able to implement your model such that you receive the desired result. However, from your question it is not exactly clear what you mean by "integrator block shouldn't start for a specified time" - should the input signal be a) ignored before that specified time, or, b) should it be delayed until that specified time and then be integrated?
For (a), you can use a Switch block where the control signal is the output of a comparison between the output of the Clock block and the desired delay time (in a Constant block). The Switch block will output zero for t<=desiredT and output the input signal for t>desiredT. The output of the Switch block can be connected to the integrator.
For (b), you can first use a Variable Delay block to delay the sinal by desiredT and connect it to the integrator block.
  댓글 수: 2
Fangjun Jiang
Fangjun Jiang 2011년 9월 9일
Or, put the Integrator block inside an Enabled or Triggered Subsystem block and use the particular condition to enable or trig the integration.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by