フィルターのクリア

How can I dynamically change a value of resistance during SimPowerSystems simulation?

36 ビュー (過去 30 日間)
Diarmaid
Diarmaid 2013 年 2 月 5 日
I'm modelling an uncontrolled three phase rectifier and with the vary the load on the DC bus during simulation but changing the declared variable does not affect the simulation.
I'm using the branch RCL block.
I've tried changing the parameter in the mask to allow it to be tunable but this has not worked, any suggestions?

回答 (1 件)

Ryan G
Ryan G 2013 年 2 月 5 日
You want to use the variable resistor from the base Simscape Eletrical library. You can connect this up to your SimPowersystems model using simpowersystems interface elements
  3 件のコメント
Ryan G
Ryan G 2013 年 2 月 5 日
What version of MATLAB are you using? SimPowersystems is dependent on Simscape in newer versions.
You could also measure the voltage/amplitude and use ohm's law to implement it via Simulink instead. This can cause some issues if the resistor loop causes an algebraic loop, but sometimes the solver can workaround it. In simscape this is resolved with Physical Signals, not sure about simpowersystems.
You can also see this solution which may help.
Diarmaid
Diarmaid 2013 年 2 月 6 日
I'm running 2012b but the computer this will eventually be used on will have 2010a or b, so it won't have simscape as part of the simpowersystems pack.
This was what I was thinking of doing, using a controlled current source to create a varaible resistor. I'll give it a go. Thanks!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSimscape Electrical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by