If Action Subsystem
Subsystem whose execution is enabled by If block
Libraries:
Simulink / Ports & Subsystems
Description
TheIf Action Subsystemblock is aSubsystemblock preconfigured as a starting point for creating a subsystem whose execution is controlled by anIfblock. TheIfblock evaluates a logical expression and then, depending on the result of the evaluation, outputs an action signal. Execution of the subsystem is controlled by anAction Portblock placed inside the subsystem.
金宝app®ignores a priority set on anIf Action Subsystemblock. Instead, set the priority on theIfblock that initiates execution of the subsystem.
Merge Signals from If Action Subsystem Blocks
This example shows how to merge signals controlled by anIfblock. For more information, seeSelect Subsystem Execution.
TheIfblock selects the execution of anIf Action Subsystemblock from a set of subsystems. Regardless of which subsystem theIfblock selects, you can create one output signal with aMergeblock.
All blocks in anIf Action Subsystemblock must execute at the same rate as the driving If block. To satisfy this requirement, set the sample time parameter for each block to either inherited (-1) or the same value as the If block sample time.
Support for Fixed-Point Data Type
TheIf不直接支持定点数据块t金宝appypes. However, you can use theCompare To Constantblock to work around this limitation. For more information,Fixed-Point Data Type Support for If Block.
Ports
Input
Output
Block Characteristics
Extended Capabilities
版本历史
Introduced before R2006a