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

14 views (last 30 days)
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!!

Accepted Answer

Kaustubha Govind
Kaustubha Govind on 9 Sep 2011
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 Comments
Fangjun Jiang
Fangjun Jiang on 9 Sep 2011
Or, put the Integrator block inside an Enabled or Triggered Subsystem block and use the particular condition to enable or trig the integration.

Sign in to comment.

More Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!