How to control multiple "If Action Subsystem" blocks with one "if" block

I would like to control more than one subsystem using a single condition. My questions are as follows:
1. Is it possible to achieve this using an if block and If Action Subsystem?
2. Is there another method to achieve similar control?

 Accepted Answer

As you have noted, controlling more than one subsystem with an if block and If Action Subsystem is not possible, as indicated by the error message: "Error: Port 1 of 'xxx/If' must directly or indirectly connect to one If Action Subsystem block."
However, you can use the Function-Call Subsystem block as an alternative method to achieve similar control. A simple example model is attached as shown below:
Example:

More Answers (0)

Products

Release

R2023a

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!