Reload/Update constants in Simulink

2 visualizaciones (últimos 30 días)
Frank
Frank el 28 de Dic. de 2011
Respondida: Slava Shougaev el 26 de Ag. de 2020
Hello,
I know that constants are probably named so by a reason, but is it possible to reload or update them during a running Simulink simulation?
Cheers, Frank

Respuesta aceptada

TAB
TAB el 28 de Dic. de 2011
Your question is little bit unclear. If you want to change the value in a Constant Block, you can change it run time from its dialog box which appears by double click on it.
Also you can change these values from a m-file using set_param() function.

Más respuestas (1)

Slava Shougaev
Slava Shougaev el 26 de Ag. de 2020
I had the same problem. I solved it just by replacing the 'Constant' block with an 'IC' block (Initial Conditions).

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by