changing block parameter during simulation.

조회 수: 9 (최근 30일)
BARAN Özbakr
BARAN Özbakr 2014년 5월 23일
댓글: BARAN Özbakr 2014년 5월 23일
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

채택된 답변

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Electrical Block Libraries에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by