Main Content

Event Functions

Customize default model Initialize and terminate methods

Model dynamic start up and shut down behavior by adding custom routines to the default model initialize and terminate methods. During simulation, control when the methods execute with events. Create functions to reinitialize blocks with initial values.

Blocks

expand all

Initialize Function 执行子系统模型初始化事件
Reinitalize Function Execute subsystem on model or subsystem reinitialize event
Reset Function Execute subsystem on model reset event
Terminate Function Execute subsystem on model terminate event
State Reader Read a block state
State Writer Write to a block state
Parameter Writer Write to block parameter or model workspace variable
Data Store Read Read data from data store
Data Store Write Write data to data store

Topics