Technical data

3
Writing Target Language Files
3-10
inside the library file, it should start with Fcn and the function should be
placed at the bottom of
funclib.tlc.
%%
%% Global TLC Functions (start with Lib)
%%
%function LibGlobalTLCFunction(...)
%%
%% Local TLC Functions (start with Fcn)
%%
%function FcnLocalTLCFunction(...)
5
Functions declared inside a block.tlc file start with Fcn. For example,
%function FcnMyBlockFunc(...)
Note: Functions declared inside a system file are global; functions declared
inside a block file are local.
6
Do not hard code the variables defined in mdlwide.tlc. All RTW global
variables start with
rt and all RTW global functions start with rt_.
Avoid naming global variables in your run-time interface modules that start
with
rt or rt_ since they may conflict with RTW global variables and
functions. These TLC variables are declared in
mdlwide.tlc.