changing block parameter during simulation.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
BARAN Özbakr
le 23 Mai 2014
Commenté : BARAN Özbakr
le 23 Mai 2014
I am trying to simulate electrical circuit with matlab, but I have inductor and resistor load, I need change their parameters during simulation. Any idea ?
thanks
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 23 Mai 2014
Modifié(e) : Azzi Abdelmalek
le 23 Mai 2014
Use set_param to modify your block parameters. Use also
set_param(modelName,'SimulationCommand','start'); % to start simulation
set_param(modelName,'SimulationCommand','pause'); % to pause simulation
% Change your parameters with set_param
set_param(modelName,'SimulationCommand','update');
set_param(modelName,'SimulationCommand','continue'); % to continue simulation
4 commentaires
Azzi Abdelmalek
le 23 Mai 2014
Modifié(e) : Azzi Abdelmalek
le 23 Mai 2014
Before changing the parameter use
set_param('igbt_deneme','SimulationCommand','pause')
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Electrical Block Libraries 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!