How to wrap reusable subsystem (step) functions generated with embedded coder?

2 views (last 30 days)
Good morning,
I want to wrap the files generated thanks to the ERT, with a view to create my own Platform-specific code. To achieve this, I have to treat each subsystem as atomic unit and to configure them as reusable functions, because I need to wrap each subsystem step function individually.
The problem I face is I can't extract the arguments taken by these functions, expecially the inputs. Model.rtw can be very complicated regarding this specific point, and arguments expression can be tediously accessible, expecially when downstream of logical block, multiplexer, bus selector, vector concatenation, etc.
So far, I have tried to focus on how ERT deals with this point and how it generates reusable functions, but all I found is reduced to calls to some generated scripts in model_ert_rtw/tlc and I have no idea how the latter are generated.
Thank you for your support!

Answers (0)

Community Treasure Hunt

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

Start Hunting!