Download Real-Time Workshop User's Guide

Transcript
TLC Debugging Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-18
Real-Time Workshop Submenu . . . . . . . . . . . . . . . . . . . . . . . . . 2-20
Simulation Parameters and Code Generation . . . . . . . . . . .
Solver Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Workspace I/O Options and Data Logging . . . . . . . . . . . . . . . .
Diagnostics Pane Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Advanced Options Pane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Tracing Generated Code Back to Your
Simulink Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Other Interactions Between Simulink
and Real-Time Workshop . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-21
2-21
2-22
2-25
2-26
2-33
2-35
Selecting a Target Configuration . . . . . . . . . . . . . . . . . . . . . . 2-40
The System Target File Browser . . . . . . . . . . . . . . . . . . . . . . . . 2-40
Available Targets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-41
Making an Executable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-47
Generated Source Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-47
Compilation and Linking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-49
Choosing and Configuring Your Compiler . . . . . . . . . . . . . . 2-51
Template Makefiles and Make Options . . . . . . . . . . . . . . . . . 2-54
Compiler-Specific Template Makefiles . . . . . . . . . . . . . . . . . . . 2-54
Template Makefile Structure . . . . . . . . . . . . . . . . . . . . . . . . . . 2-58
Configuring the Generated Code via TLC . . . . . . . . . . . . . . 2-59
Target Language Compiler Variables and Options . . . . . . . . . 2-59
Generated Code Formats
3
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
Choosing a Code Format for Your Application . . . . . . . . . . . 3-3
ii
Contents