Borrar filtros
Borrar filtros

In Simulink, how can I add switches which open or close at a certain time?

16 visualizaciones (últimos 30 días)
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

Respuesta aceptada

M.B
M.B el 29 de Mayo de 2023
Editada: M.B el 29 de Mayo de 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;
  1 comentario
Washington
Washington el 1 de Jun. de 2023
I didn't get any error, just i was not getting the answer as expected, i had to change the circuit breaker for a switch and finally worked.

Iniciar sesión para comentar.

Más respuestas (0)

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by