How to use the Assignment block?
Mostrar comentarios más antiguos
Hi guys,
I have been trying to replace the blocks used in the right half part of the snip shown below with the Assignment block. But I am not sure of how to use the initialisation input signal(Y0) to this block, as my input and the initialisation in this case seem to be the same.
Thanks in advance for your response.

2 comentarios
madhan ravi
el 12 de Abr. de 2019
Editada: madhan ravi
el 12 de Abr. de 2019
Which is y0 ? What are you trying to do? More description needed.
Vinayak Kamat
el 12 de Abr. de 2019
Respuestas (1)
Mark McBroom
el 15 de Abr. de 2019
0 votos
I thing the proper modeling pattern for this case would be an "If Subsystem" connected to two "If-Action" subsystems. If condition is true, one subsystem will be activated which will write to CW port, else other subsystem will write to ACW port. Note that for subsystem that is not active, you can configure it to either hold last value or reset.
Categorías
Más información sobre Modeling en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!