changing block parameter during simulation.

13 ビュー (過去 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 Center および File ExchangeElectrical Block Libraries についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by