User`s guide

11 Real-Time Workshop Libraries
11-4
Custom Code Library
The Real-Time Workshop also provides a Custom Code library containing
blocks that allow you to place your own code, in C or in Ada, inside the code
generated by the Real-Time Workshop. There are two Custom Code
sublibraries in both the C and Ada Custom Code libraries:
Custom Model Code
Custom Subsystem Code
Both sublibraries contain blocks that target specific files and subsystems
within which you can place your code.
Custom Model Code
The Custom Model Code sublibrary contains 10 blocks that insert custom code
into the generated model files and functions. You can view the blocks either by:
Expanding the Model Code library (under C Custom Code) in the Simulink
Browser
Right clicking your mouse on the Model Code library in the Simulink
browser
The latter method opens this window.
The four blocks on the top row contain texts fields to insert custom code at the
top and bottom of the following files: