How do I refresh "Model" blocks programmatically?
29 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 27 de Jun. de 2009
Editada: MathWorks Support Team
el 5 de Jul. de 2023
I have a Simulink model with many "Model" blocks. I have to frequently refresh each of these blocks by right-clicking on the block, hovering over "Subsystem & Model Reference", and then clicking on "Refresh Selected Model Block". Is there a way I can update "Model" blocks programmatically?
Respuesta aceptada
MathWorks Support Team
el 5 de Jul. de 2023
Editada: MathWorks Support Team
el 5 de Jul. de 2023
MATLAB R2020a and later:
You can use the "Simulink.ModelReference.refresh" function to update a specified "Model" block. Please refer to the following documentation page for more information:
MATLAB R2019b and earlier:
You can save the referenced model by using the "save_system" function. Please refer to the following documentation page for more information:
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!