Effacer les filtres
Effacer les filtres

Simulink missed some of the time values during simulation?

3 vues (au cours des 30 derniers jours)
Lukasz Wajdzik
Lukasz Wajdzik le 19 Sep 2011
I simulate a performance of standard DC machine model (SimPowerSystems->Machines) and I use a pausing simulation block http://www.mathworks.de/help/toolbox/simulink/ug/f11-31373.html#f11-31548 but it doesn't work properly. For instance for pause value 2.55s the simulation doesn't pause at that time but continuing the simulation to the end.. If I set a pause value to 2.54 or 2.56 it works suitably. Why simulation doesn't pause at the time 2.55 (for any end time of the simulation)?

Réponse acceptée

Guy Rouleau
Guy Rouleau le 19 Sep 2011
See my post here:
For a variable step solver, you can specify additional output times you want the solver to take. In your case, you can add 2.55 and the solver will take a step at that time.

Plus de réponses (2)

Nirmal Gunaseelan
Nirmal Gunaseelan le 19 Sep 2011
The time steps chosen by Simulink depends on the type of solver (and the system that is being solved) that you have chosen. You can use the Data Inport/Outport tab in the Configuration parameters settings of the model to see what are the time steps that Simulink chose for the current simulation. If you are depending on the time step values (what is your use case?), you should be using Fixed-step solver where you can explicitly set the time step jumps.

Lukasz Wajdzik
Lukasz Wajdzik le 20 Sep 2011
I specified additional output times and now it works like I wanted. Thanks a lot!

Catégories

En savoir plus sur General Applications dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by