Documentation

Conditional Subsystems

Model components whose execution depends on other components

Blocks

Enabled Subsystem Represent subsystem whose execution is enabled by external input
Triggered Subsystem Represent subsystem whose execution is triggered by external input
Enabled and Triggered Subsystem Represent subsystem whose execution is enabled and triggered by external input
Resettable Subsystem Represent subsystem whose states reset with external trigger
For Each Subsystem Repeatedly perform algorithm on each element or subarray of input signal and concatenate results
Enable Add enabling port to system
Trigger Add trigger port to model or subsystem
Reset Add reset port to subsystem
For Each Enable blocks inside For Each Subsystem to process elements or subarrays of a mask parameter or input signal independently
Subsystem Represent system within another system
Configurable Subsystem Represent any block selected from user-specified library of blocks
Variant Subsystem Represent multiple implementations of a system via a subsystem
Inport Create input port for subsystem or external input
Outport Create output port for subsystem or external output
Function-Call Subsystem Represent subsystem that can be invoked as function by another block
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
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

Examples and How To

Conditional Subsystems

Create an Enabled Subsystem

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

Create a Triggered Subsystem

Create a subsystem that executes with a trigger event.

Create a Triggered and Enabled Subsystem

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

Conditionally Reset Block States in a Subsystem

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

Create a Function-Call Subsystem

Create a subsystem that executes with a function call.

Create an Action Subsystem

Create a subsystem that executes with a conditional control signal.

Use Control Flow Logic

How to use control flow blocks to model control logic.

Repeat an Algorithm Using a For Each Subsystem

Iterate an algorithm over groups of signals, subsystems, and parameters.

Log Signals in For Each Subsystems

Use signal logging in For Each subsystems.

Output Initialization

Specify or Inherit Conditional Subsystem Initial Values

Specify initial input values for a conditional subsystem.

Set Initialization Mode to Simplified or Classic

Set initialization modes for conditional subsystems.

Address Classic Mode Issues by Using Simplified Mode

Issues to consider with initialization modes.

Convert from Classic to Simplified Initialization Mode

Change the initialization mode.

Event Function Subsystems

Create a Model to Initialize and Terminate State

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

Create a Test Harness to Generate Events

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

Concepts

Conditional Subsystems

Overview of conditionally executed subsystems.

Conditional Execution Behavior

Techniques for optimizing the execution of conditional subsystems.

Conditional Subsystem Output Initialization

Initialize the output of a subsystem.

Export-Function Models

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

Related Information

Was this topic helpful?