I'm developing an embedded system in MATLAB Simulink which contains some Stateflow charts. I successfully generate C-code out of it. Unfortunately, building the model throws up some warnings. One of them is:
Warning: Junction #1277 does not have an unconditional path
to a state or a terminal junction AND it has multiple paths
leading to it. This might lead to confusing run-time behavior
because of the backtracking semantics of Stateflow.
This warning has no other link or information how to find that junction inside my model (there are plenty of junctions so it's not trivial) than its number.
Is there a way to find/highlight a junction by its number?
I found a solution myself: Starting the build process from the "Build" button inside Simulink, rather than doing it via the MATLAB command line, creates working links in the Diagnostic Viewer.