Is there a way to store large number of transition conditions in a Simulink block?

2 views (last 30 days)
Hello all,
Could anybody suggest a way to store a large number of transition conditions in a Simulink block (or file)? I have a stateflow chart with large number of transition conditions at every state. I want to improve the readability and simplicity of my state chart.
Thanks in advance!
Cheers, Rashmi

Accepted Answer

Ankita Nargundkar
Ankita Nargundkar on 21 Jun 2017
If your transition conditions looks something like [condition1 && condition2 && ..... conditionN] , you can place a MATLAB function block in the chart that evaluates all of those conditions and returns true or false. That function could then be called as the transition condition, simplifying the syntax greatly.
Rashmi Bharadwaja
Rashmi Bharadwaja on 11 Jul 2017
I found another solution to this problem. The tranition conditions can be implemented in a seperate subsystem and the output can be taken out as a flag. These flags from several conditions can be checked as a condition for transition.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!