Workspace variable and simout
Mostrar comentarios más antiguos
Hello!
I am trying to define a workspace variable (found in Model explorer) for a simulink block (one parameter for the block), which need to be defined to use the block. However, difficulty is that parameter is not static value, but should change throughout the simulation. It means if the value of another signal changes, then that workspace variable and parameter also needs to change.
I tried to use "simout" block, but it return bunch of data. I need to use only one real value as a block parameter saved to work space. It means I should use very last value of the simulation as the block parameter. When the simout value chnages, then also the block parameter must change.
I tried also to find variable parameters simulink blocks, but those were not suitable.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Sources 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!