The Reach/Coreach Tool tracks and highlights data flow and control flow in the model. The tool identifies, for some specified Simulink blocks, parts of the model that depend on those blocks (Reach functionality), or parts of the model that the specified blocks depend upon (Coreach functionality). After the dependencies have been identified, the extraneous blocks can be removed via the tool's model slicing function. For installation instructions and instructions on how to use the tool, see doc/ReachCoreach_UserGuide.pdf in the source files.
For more about the capabilities of the tool and how it can be used in model-based development with Simulink, see the two papers:
Vera Pantelic, Steven Postma, Mark Lawford, Alexandre Korobkine, Bennett Mackenzie, Jeff Ong, Marc Bender, "A Toolset for Simulink: Improving Software Engineering Practices in Development with Simulink," Proceedings of 3rd International Conference on Model-Driven Engineering and Software Development (MODELSWARD 2015), SCITEPRESS, 2015, 50-61. (Best Paper Award)
Vera Pantelic, Steven Postma, Mark Lawford, Monika Jaskolka, Bennett Mackenzie, Alexandre Korobkine, Marc Bender, Jeff Ong, Gordon Marks, Alan Wassyng, “Software engineering practices and Simulink: bridging the gap,” International Journal on Software Tools for Technology Transfer (STTT), 2017, 1-23.
@Bibigul Shektybayeva: Thank you for bringing these points to our attention! Creating a new model when slicing is not currently supported, but we will look into adding support for this.
Thanks for sharing this toolbox. I tried using it, and found a small mistake. When you catch an error you have a typo(ex. in ReachCoreach.m, line 208):
if ~strcmp(E.identifier, 'Simulink:Commands:InvSimulinkObjHandle')
You need to use error(E.message) instead of error(E), then it gives the actual error message.
I also have a question, is it possible to create anew sliced model rather than deleting the un-highlighted blocks? I get an error that the block cannot be deleted while the simulation is running. I would appreciate any suggestions :)
Fixed a minor bug.
Fixed bug involving coreaching from selected lines.
Updating "Other Requirements" field to reflect that the tool has been testing with R2017a.
Updating tool name.
Fixed recursion bugs. Optimized highlighting operation.
Formatted description text.
Fixed bugs regarding highlighting for data stores, if blocks, and use with 2016b.
– Improved usability, handling of buses
– The accuracy of tracking through If and Switch Case blocks has been increased.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.