Simulink logging intervals with discrete and continuous blocks
Mostrar comentarios más antiguos
Hi all,
In my Simulink Model are some Discrete Blocks (implemented as Level-2 Matlab S-Function) with period time T and also some continuous blocks.
Is it possible to log the output only when the discrete blocks change their output?
Thanks in advance, I really appreciate your answer.
1 comentario
Paul
el 7 de Jul. de 2024
By "change their output" do you mean a) when the value of the ouput changes, or do you mean b) when the block is updated at every T seconds, regardless of the value of the output?
It sounds like the model has multiple,discrete-time blocks. If the answer is (a), does the ouput of a specific block have to change, or a specific subset of them, or any of them, or all of them?
Do you want to log the ouput of the continuous time blocks as well only at the time determined by (a) or (b) above?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Prepare Model Inputs and Outputs 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!