Clear Filters
Clear Filters

Detect if block is part of a feedback loop

4 views (last 30 days)
Vince
Vince on 30 Jun 2020
Answered: Shivam Lahoti on 24 Jun 2024 at 7:41
Is there a smart and maybe even simple way to detect if a given block is part of a feedback loop? I'm trying to implement a check for MAB-Guideline db_0141 which specifies that feedback loops are excempt from the signal flow direction. However I find it very hard to determine if a block which doesn't follow the signal flow direction might be part of a feedback loop.

Answers (1)

Shivam Lahoti
Shivam Lahoti on 24 Jun 2024 at 7:41
Hi Vince,
I understand that it can sometimes be confusing to follow the flow of a model, especially when dealing with large and complex models. Manually ensuring that any block not following the flow is part of a feedback loop can indeed be challenging.
To address this, you can use the Model Advisor check itself. Once you have completed the modeling part and want to increase the readability of the model, you can run this check and click on the specific warnings it generates. This will highlight the blocks causing the violations. You can then ensure that the particular block is following the flow, resolving the warning.
Instead of manually detecting the violations, you can leverage the above-mentioned method. I hope this makes your work easier.
Regards,
Shivam.

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!