Borrar filtros
Borrar filtros

Setting default initial temperature as variable in simulink

6 visualizaciones (últimos 30 días)
Ender Wiggin
Ender Wiggin el 6 de Abr. de 2017
Respondida: Ankitha Kollegal Arjun el 17 de Abr. de 2017
How to define a default initial temperature as a value like "T_start" in simulink (not Matlab)? so I can change all my initial temperatures in different block parameters at once by just changing the value of T-start in Simulink.

Respuestas (1)

Ankitha Kollegal Arjun
Ankitha Kollegal Arjun el 17 de Abr. de 2017
The PostLoadFcn callback in the Model Explorer can be used to initialize a parameter when the model is opened.
In Simulink, go to View->Model Explorer.
In the Callbacks tab of Model Properties, select PostLoadFcn and define the variable there.

Categorías

Más información sobre Model, Block, and Port Callbacks 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!

Translated by