Info

此问题已关闭。 请重新打开它进行编辑或回答。

Using Ideal Switch in Simpower Systems

1 次查看(过去 30 天)
Obinna
Obinna 2014-12-5
关闭: Sabin 2023-2-11
Hello, I tried using the "ideal Switch" block in Simpowersystems. I conneceted it to a battery I coded a matlab function block with if commands to give instructions to the switch via the gate(which is a simulink in put signal) to toggel between off and on. But it does not work.
so see what I did.
in the matlab function block
i did if command as follows,
if u==1 y=0; else y=1; end
but when i pass "1" through it still outputs the voltage in the battery. I have the voltage measurement between the switch and the negative port of the battery. so I have a display attached to the voltage measurement.
Please assist me with this issue.
thanks.

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by