Target Language Compiler    

Using Library Functions to Access model.rtw Contents

There are several library functions that provide access to block inputs, outputs, parameters, sample times, and other information. It is recommended that you use these library functions to access many of the parameter/values pairs in the block record as apposed to accessing the parameter/values directly from your block TLC code.

See Chapter 9, TLC Function Library Reference, for a list of the commonly used library functions.

The library functions simplify block TLC code and provide support for loop rolling, data types, and complex data. The functions also provide a layer to protect against changes that may occur to the contents of the model.rtw file.


 Using Scopes in the model.rtw File Caution Against Directly Accessing Record Fields