How to get all possible _sharedutils files generated from Simulink model using ert.tlc?
5 views (last 30 days)
Show older comments
When I generate code from model using ert.tlc, I see there are certain utility files which are generated under "slprj\ert\_sharedutils". I am trying to get all the possible files which Simulink code generation will create.
One way would be create a model which has all the necessary blocks with all possible settings and then generate code. But this is not practical and this does not guarantee that all possible combinations are covered.
I tried looking under Matlab installation folder to see if these files are static. Unfortunately, they are generated everytime code generation is executed.
Is there an easy way to get all the _sharedutils files? I am using R2023b version of Matlab.
2 Comments
Vidip
on 24 Jul 2025
I undertstand that you want an exhaustive list '_sharedutils' files but there is no direct or documented way to obtain a complete list of all possible '_sharedutils' files generated by Simulink’s ERT code generation in MATLAB R2023b.
These utility files are created dynamically based on the specific blocks and settings used in your model, and their set can change with different models or MATLAB versions. Because the code generator only creates utility files for functions actually needed by your model.
Answers (0)
See Also
Categories
Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!