Variant Event-Based Components
You can activate or deactivate the execution of subsystems on a model initialize, reset, and terminate events depending on the variant control you select. You can also execute Simulink® functions conditionally. For more information, see Variant Condition Propagation with Variant Sources and Sinks.
The code that you generate for event-based variant blocks can contain all the variant choices of a system. You can switch between the choices prior to code compile. For information on generating code with event-based variant blocks, see Represent Subsystem and Variant Models in Generated Code (Embedded Coder).
|Initialize Function||Execute subsystem on model initialize event|
|Reset Function||Execute subsystem on model reset event|
|Terminate Function||Execute subsystem on model terminate event|
|Simulink Function||Graphically define a function with Simulink blocks|
|Create a variant control variable object|
|Store, share, and configure parameter values|
|Specify conditions that control variant selection|
|Class enumeration members and names|