How can I dynamically change a value of resistance during SimPowerSystems simulation?
17 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
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
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Electrical Systems 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!