Electrical Switch doesn't work
显示 更早的评论
Hello everyone,
I am trying to use a switch in a simulation of an electrical circuit and I dont know why, but it is not working correctly. I have created a simplifyed system to check the switch function and it also doesn't work. I paste a screenshot of the system so you can check it.
The idea was to activate and desactivate the switch with a pulse generator, so the current of the circuit, which is a constant 1A DC, fluctuates between 0A and 1A. Despite of it, the current is 1A during the whole simulation.

6 个评论
Walter Roberson
2021-8-30
It does not appear that you are using the Circuit Breaker block? https://www.mathworks.com/help/physmod/sps/powersys/ref/breaker.html
I am having difficulty identifying the current source you are using. It is not one of the SPS Electrical Sources https://www.mathworks.com/help/physmod/simscape/electrical-sources.html and it is not a SPICE source https://www.mathworks.com/help/physmod/sps/spice-sources.html ?
Fernando Belda
2021-8-30
Walter Roberson
2021-8-30
Ah, what is the block with the circle'd A ?
Which pulse generator are you using, and what parameters did you configure for it?
Fernando Belda
2021-8-30
Walter Roberson
2021-8-30
The Pulse generator you are using uses an output of 0 when the pulse is not underway, and uses an output according to the given Amplitude when the pulse is underway.
However, the Circuit Breaker https://www.mathworks.com/help/physmod/sps/ref/circuitbreaker.html?s_tid=doc_ta only closes when the voltages crosses below the threshold... so we need to know what threshold you configured... and what you configured the initial state as ?
Fernando Belda
2021-8-30
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with Simscape Electrical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



