Storing value in simulink
Mostrar comentarios más antiguos
Is it possible to store a value in simulink? Let's say i have a sine wave and a ramp function, i want to store the value of the sine function at the exact moment the ramp function reaches the value 1
when the sine wave reaches back to the same value, i want an action to trigger each time the sine function reaches this value. Is this possible in simulink? If so how do i go about doing it?
For example, when the ramp function reaches the value of 1,
the value of the sine function is -0.05
so whenever the sine function reaches this value i want to trigger a switch block to perform a certain action.
Respuesta aceptada
Más respuestas (1)
Ameer Hamza
el 18 de Jun. de 2020
0 votos
See Triggered Subsystems: https://www.mathworks.com/help/simulink/ug/triggered-subsystems.html. This link shows an example of their usage: https://www.mathworks.com/help/simulink/slref/triggered-subsystems.html
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!
