In Simulink, how can I add switches which open or close at a certain time?
23 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Washington
am 28 Mai 2023
Kommentiert: Washington
am 1 Jun. 2023
I have the next circuit and I want that the first switch(starting from left to right) closes at t=0s, the second one opens at t=0s and the last one closes at t=0.1s
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1396994/image.png)
0 Kommentare
Akzeptierte Antwort
M.B
am 29 Mai 2023
Bearbeitet: M.B
am 29 Mai 2023
What did you try? Did you get any errors?
You will need to set threashold to 0.5 in the switches and modify the values in the step blocks.
First switch: step time = 0; Initial value = 0; final value = 1;
Second switch: step time = 0; Initial value = 1; final value = 0;
Third switch: step time = 0.1; Initial value = 0; final value = 1;
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simscape Electrical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!