changing block parameter during simulation.

9 Ansichten (letzte 30 Tage)
BARAN Özbakr
BARAN Özbakr am 23 Mai 2014
Kommentiert: BARAN Özbakr am 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

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 23 Mai 2014
Bearbeitet: Azzi Abdelmalek am 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 Kommentare
Azzi Abdelmalek
Azzi Abdelmalek am 23 Mai 2014
Bearbeitet: Azzi Abdelmalek am 23 Mai 2014
Before changing the parameter use
set_param('igbt_deneme','SimulationCommand','pause')
BARAN Özbakr
BARAN Özbakr am 23 Mai 2014
I am using set_param('igbt_deneme','SimulationCommand','pause'), but it is stll giving an error .

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Electrical Block Libraries 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