Regarding pausing an integration of a integrator block in a simulink model
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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!!
0 commentaires
Réponse acceptée
Kaustubha Govind
le 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 commentaires
Fangjun Jiang
le 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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Schedule Model Components dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!