Switches and if blocks wrong behavior?

1 visualización (últimos 30 días)
Lennart
Lennart el 22 de Nov. de 2011
I made a system with a switch but also a if action block. The behavior of both systems should be the same. The switch doesn't work and the if action block doesn't reset. I am expecting the same output as the input.
See the system here. And the output here.
  2 comentarios
Titus Edelhofer
Titus Edelhofer el 22 de Nov. de 2011
Hi Lennart, I can see the system but the link to the output seems not to work ...?
Lennart
Lennart el 22 de Nov. de 2011
Thanks for your response, I fixed the link.
The switch block now seems to work. But I can't make the if action system reset. I should go to zero again but it doesn't..

Iniciar sesión para comentar.

Respuesta aceptada

Titus Edelhofer
Titus Edelhofer el 22 de Nov. de 2011
Hi Lennart,
double click the output port in the if-action subsystem and do the following: (a) set the Initial Output to 0. (b) Set "Output when disabled" to "reset".
Titus
  1 comentario
Lennart
Lennart el 22 de Nov. de 2011
Thanks! Would not have looked there!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink Environment Customization en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by