Filter löschen
Filter löschen

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

9 Ansichten (letzte 30 Tage)
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!!

Akzeptierte Antwort

Kaustubha Govind
Kaustubha Govind am 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 Kommentare
Fangjun Jiang
Fangjun Jiang am 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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Schedule Model Components finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by