Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Conditionally Executed Subsystems

Control when a model component is executed

A conditionally executed subsystem runs when an external signal (control signal) enables or triggers its execution. For subsystems that run after evaluating a condition, see Logically Executed Subsystems.

Blocks

Enabled Subsystem Subsystem whose execution is enabled by external input
Triggered Subsystem Subsystem whose execution is triggered by external input
Enabled and Triggered Subsystem Subsystem whose execution is enabled and triggered by external input
Enable Add enable port to model or system
Trigger Add trigger port to model or subsystem
Function-Call Subsystem Subsystem whose execution is triggered by external function call input
Function-Call Generator Execute function-call subsystem specified number of times at specified rate
Function-Call Split Provide junction for splitting function-call signal
Function-Call Feedback Latch Break feedback loop involving data signals between function-call blocks
Trigger Add trigger port to model or subsystem
Initialize Function Executes contents on a model initialize event
Reset Function Executes contents on a model reset event
Terminate Function Execute contents on a model terminate event
Event Listener Add event port to subsystem
State Reader Read a block state
State Writer Write to a block state
Resettable Subsystem Represent subsystem whose states reset with external trigger
Reset Add reset port to subsystem

Topics

Introduction to Conditionally Executed Subsystems

Conditional Subsystems

Overview of conditionally executed subsystems.

Enabled and Triggered Subsystems

Enabled Subsystems

Create a subsystem that executes when a control signal has a positive value.

Triggered Subsystems

Create a subsystem that executes with a trigger event.

Enabled and Triggered Subsystems

Create a subsystem that executes with a trigger event or control signal with a positive value.

Function-Call Subsystems

Function-Call Subsystems

Create a subsystem that executes with a function call.

Initialize, Reset, and Terminate Functions

Create Model to Initialize, Reset, and Terminate State

Set the state of a block with an initialize event. Save the state of a block with a terminate event.

Create Test Harness to Generate Function Calls

Schedule initialize and terminate event signals to test a model component.

Initialize, Reset, and Terminate Function Limitations

Initialize, Reset and Terminate Function Limitations

Resettable Subsystems

Create a subsystem that resets all block states with a trigger event.

Subsystem Output Initialization

Conditional Subsystem Initial Output Values

Specify initial output values for a conditional subsystem.

Conditional Subsystem Output Values When Disabled

Specify output behavior when conditional subsystem is disabled.

Simplified Initialization Mode

Control initial values for conditional subsystems.

Classic Initialization Mode

Control initial values for conditional subsystems.

Convert from Classic to Simplified Initialization Mode

Change the initialization mode.

Export Function Models

Export-Function Models

Overview of export-function models and requirements for building models.

Featured Examples

Was this topic helpful?