Borrar filtros
Borrar filtros

apply initial conditions to a subsystem

1 visualización (últimos 30 días)
ariel bintang
ariel bintang el 4 de Nov. de 2019
Editada: Fangjun Jiang el 5 de Nov. de 2019
I want to apply an external initial condition to my resettable system, just like how it is possible with a integrator block. Anyone know how to do that?
  2 comentarios
Fangjun Jiang
Fangjun Jiang el 4 de Nov. de 2019
What MATLAB release?
ariel bintang
ariel bintang el 4 de Nov. de 2019
2018b

Iniciar sesión para comentar.

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 4 de Nov. de 2019
Use "Initialize Function" in library Simulink\User-Defined Functions.
  4 comentarios
ariel bintang
ariel bintang el 4 de Nov. de 2019
Editada: ariel bintang el 4 de Nov. de 2019
would this be the correct way to implement it? The state space will reset when the resettable subsystem experiences a reset event (its "either" input becomes true)
Fangjun Jiang
Fangjun Jiang el 5 de Nov. de 2019
Editada: Fangjun Jiang el 5 de Nov. de 2019
No longer need to use "Resettable Subsyhstem"
  1. Construct your regular Subsystem with states
  2. Construct your reset logic to send a "reset" event, which trigs the "Reset Function"
  3. Inside your "Reset Function", construct those reset values and write to the states.
Take a look at the built-in demo models.

Iniciar sesión para comentar.

Categorías

Más información sobre Event Functions 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