Download Target Language Compiler Reference Guide

Transcript
Inlining an S-Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
An Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Comparison of Noninlined and
Inlined Versions of model.c . . . . . . . . . . . . . . . . . . . . . . . .
Comparison of Noninlined and
Inlined Versions of model.reg . . . . . . . . . . . . . . . . . . . . . . .
TLC File to Inline S-Function foogain . . . . . . . . . . . . . . . . .
Useful Library Functions Grouped by Purpose . . . . . . . . . . . .
Input Signals to a Block: . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Output Signals from a Block: . . . . . . . . . . . . . . . . . . . . . . . .
Sources Signals of a Block: . . . . . . . . . . . . . . . . . . . . . . . . . .
Parameters of a Block: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Other Block-Related Functions: . . . . . . . . . . . . . . . . . . . . . .
Functions to Add Custom Code to the Generated Code: . . .
Utility Functions Related to Sample Times: . . . . . . . . . . . .
Miscellaneous Utility Functions: . . . . . . . . . . . . . . . . . . . . .
4-11
4-12
4-14
4-18
4-22
4-22
4-22
4-22
4-22
4-23
4-23
4-23
4-24
4-24
Loop Rolling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-26
Miscellaneous Topics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-31
Configurable Target Language Compiler Options . . . . . . . . . . 4-31
Matrix Parameters in Real-Time Workshop . . . . . . . . . . . . . . 4-31
Target Language Compiler
Function Library Reference
5
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Reference Page Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Arguments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Note . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
See Also . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
iv
Contents
5-2
5-2
5-2
5-2
5-2
5-2
5-2
5-3
5-3
5-3
5-3