Electrical Switch doesn't work
Show older comments
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 Comments
Walter Roberson
on 30 Aug 2021
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
on 30 Aug 2021
Walter Roberson
on 30 Aug 2021
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
on 30 Aug 2021
Walter Roberson
on 30 Aug 2021
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
on 30 Aug 2021
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with Simscape Electrical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


