Simulink: Find all subsystem paths from SLX

In our previous post we learned that Simulink SLX files are just ZIP-compressed XML files.

The following C++ program can be used to parse model/blockdiagram.xml from the pre-extracted ZIP file and find all subsystem paths in the model.

Compile it using

It will print all subsystem paths in the model to the console.


Check out similar posts by category: Matlab/Simulink, C/C++