The Code Generation > Tornado Target pane includes
the following parameters when the Simulink®
Coder™ product is
installed on your system and you specify the tornado.tlc
system
target file.
Control generated code for the Tornado® target.
This tab appears only if you specify tornado.tlc
as
the System target file.
Tornado User's Guide from Wind River Systems
StethoScope User's Guide from Wind River Systems
Specify a standard math library for your model.
Default: C99 (ISO)
C89/C90 (ANSI)
Generates calls to the ISO®/IEC 9899:1990 C standard math library.
C99 (ISO)
Generates calls to the ISO/IEC 9899:1999 C standard math library.
C++03 (ISO)
Generates calls to the ISO/IEC 14882:2003 C++ standard math library.
The build process checks whether the specified standard math library and toolchain are compatible. If they are not compatible, a warning occurs during code generation and the build process continues.
When you change the value of parameter Language, the
standard math library updates to ISO/IEC 9899:1999 C (C99 (ISO)
) for C
and ISO/IEC 14882:2003 C++ (C++03 (ISO)
) for C++.
The C++03 (ISO)
math library is available for use only if you set parameter
Language to C++
.
Parameter: TargetLangStandard |
Type: character vector |
Value: 'C89/C90
(ANSI)' | 'C99 (ISO)' | 'C++03
(ISO)' |
Default: 'C99 (ISO)' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | Valid library |
Safety precaution | No impact |
Specify a code replacement library the code generator uses when producing code for a model.
Default:
None
None
Does not use a code replacement library.
Named code replacement library
Generates calls to a specific platform, compiler, or standards code replacement library. The list of named libraries depends on:
Installed support packages.
System target file, language, standard math library, and device vendor configuration.
Whether you created and registered code replacement libraries, using the Embedded Coder® product.
For more information about selections for this parameter, see Code replacement library.
Before setting this parameter, verify that your compiler supports the library you want to use. If you select a parameter value that your compiler does not support, compiler errors can occur.
Parameter:
CodeReplacementLibrary |
Type: character vector |
Value:
'None' | 'GNU C99 extensions' |
'Intel IPP for x86-64 (Windows)' | 'Intel
IPP/SSE for x86-64 (Windows)' | 'Intel IPP for x86-64
(Windows for MinGW compiler)' |'Intel IPP/SSE for x86-64
(Windows for MinGW compiler)' | 'Intel IPP for
x86/Pentium (Windows)' | 'Intel IPP/SSE x86/Pentium
(Windows)' | 'Intel IPP for x86-64 (Linux)' |
'Intel IPP/SSE with GNU99 extensions for x86-64
(Linux)' |
Default:
'None' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | Valid library |
Safety precaution | No impact |
Specify the location for generating utility functions, exported data type definitions, and declarations of exported data with custom storage class.
Default: Auto
Auto
Operates as follows:
When the model contains Model blocks,
places utility code within the slprj/target/_sharedutils
folder.
When the model does not contain Model blocks,
places utility code in the build folder (generally, in
or model
.c
).model
.cpp
Shared location
Directs code for utilities to be placed within the slprj
folder
in your working folder.
Parameter: UtilityFuncGeneration |
Type: character vector |
Value: 'Auto' | 'Shared
location' |
Default: 'Auto' |
Application | Setting |
---|---|
Debugging | Shared location |
Traceability | Shared location |
Efficiency | No impact
(execution, RAM)Shared location (ROM) |
Safety precaution | No impact |
Specify whether to enable MAT-file logging.
Default: off
Enables MAT-file logging. When you select this option, the generated code saves to MAT-files simulation data specified in one of the following ways:
Configuration Parameters dialog box, Data Import/Export pane (see Model Configuration Parameters: Data Import/Export)
To Workspace blocks
Scope blocks with block parameter Log data to workspace enabled
In simulation, this data would be written to the MATLAB® workspace,
as described in Export Simulation Data and Configure Signal Data for Logging.
Setting MAT-file logging redirects the data to a MAT-file instead.
The file is named
,
where model
.mat
is the name
of your model.model
Disables MAT-file logging. Clearing this option has the following benefits:
Eliminates overhead associated with supporting a file system, which typically is not required for embedded applications
Eliminates extra code and memory usage required to initialize, update, and clean up logging variables
Under certain conditions, eliminates code and storage associated with root output ports
Omits the comparison between the current time and
stop time in the
,
allowing the generated program to run indefinitely, regardless of
the stop time settingmodel
_step
Selecting this parameter enables parameter MAT-file variable name modifier.
MAT-file logging does not support file-scoped data, for example,
data items to which you apply the built-in custom storage class FileScope
.
MAT-file logging does not work in a referenced model, and code is not generated to implement it.
Parameter: MatFileLogging |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Application | Setting |
---|---|
Debugging | On |
Traceability | No impact |
Efficiency | Off |
Safety precaution | Off |
Select the text to add to the MAT-file variable names.
Default: rt_
rt_
Adds prefix text.
_rt
Adds suffix text.
none
Does not add text.
If you have an Embedded Coder license, this parameter is enabled by parameter MAT-file logging.
Parameter: LogVarNameModifier |
Type: character vector |
Value: 'none' | 'rt_' | '_rt' |
Default: 'rt_' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Specify the code format (generated code features).
Default: RealTime
RealTime
Specifies the Real-Time code generation format.
RealTimeMalloc
Specifies the Real-Time Malloc code generation format.
Parameter: CodeFormat |
Type: character vector |
Value: 'RealTime' | 'RealTimeMalloc' |
Default: 'RealTime' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Specify whether to enable StethoScope, an optional data acquisition and data monitoring tool.
Default: off
Enables StethoScope.
Disables StethoScope.
You can optionally monitor and change the parameters of the executing real-time program using either StethoScope or Simulink External mode, but not both with the same compiled image.
Enabling parameter StethoScope disables parameter External mode, and vice versa.
Parameter: StethoScope |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Application | Setting |
---|---|
Debugging | On |
Traceability | No impact |
Efficiency | Off |
Safety precaution | Off |
Tornado User's Guide from Wind River Systems
StethoScope User's Guide from Wind River Systems
Specify whether to automatically download the generated program to the VxWorks® target.
Default: off
Automatically downloads the generated program to VxWorks after each build.
Does not automatically download to VxWorks, you must downloaded generated programs manually.
Automatic download requires specifying the target name and host name in the makefile.
Before every build, reset VxWorks by pressing Ctrl+X on the host console or power-cycling the VxWorks chassis. This clears dangling processes or stale data that exists in VxWorks when the automatic download occurs.
Parameter: DownloadToVxWorks |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | Off |
Tornado User's Guide from Wind River Systems
Specify the priority with which the base rate task for the model is to be spawned.
Default: 30
For a multirate, multitasking model, the code generator increments the priority of each subrate task by one.
The value you specify for this option will be overridden
by a base priority specified in a call to the rt_main()
function
spawned as a task.
Parameter: BasePriority |
Type: integer |
Value: valid value |
Default: 30 |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | Might impact efficiency, depending on other task's priorities |
Safety precaution | No impact |
Tornado User's Guide from Wind River Systems
Stack size in bytes for each task that executes the model.
Default: 16384
Parameter: TaskStackSize |
Type: integer |
Value: valid value |
Default: 16384 |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | Larger stack may waste space |
Safety precaution | Larger stack reduces the possibility of overflow |
Tornado User's Guide from Wind River Systems
Specify whether to enable communication between the Simulink model and an application based on a client/server architecture.
Default: on
Enables External mode. The client (Simulink model) transmits messages requesting the server (application) to accept parameter changes or to upload signal data. The server responds by executing the request.
Disables External mode.
Selecting this parameter enables these parameters:
Transport layer
MEX-file arguments
Static memory allocation
Parameter: ExtMode |
Type: character vector |
Value: 'on' | 'off' |
Default: 'on' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
External Mode Simulations for Parameter Tuning and Signal Monitoring
Specify the transport protocol for External mode communications.
Default: tcpip
tcpip
Applies a TCP/IP transport mechanism. The MEX-file name is ext_comm
.
You cannot edit the value of the MEX-file name parameter displayed next
to parameter Transport layer. For system target files provided
by MathWorks®, the value is specified in
.matlabroot
/toolbox/simulink/simulink/extmode_transports.m
This parameter is enabled by parameter External mode.
Parameter: ExtModeTransport |
Type: integer |
Value: 0 |
Default: 0 |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
External Mode Simulation with TCP/IP or Serial Communication
Specify arguments to pass to an External mode interface MEX-file for communicating with executing targets.
Default: ''
For TCP/IP interfaces, ext_comm
allows three
optional arguments:
Network name of your target (for example, 'myPuter'
or '148.27.151.12'
)
Verbosity level (0
for no information
or 1
for detailed information)
TCP/IP server port number (an integer value between 256
and 65535
,
with a default of 17725
)
This parameter is enabled by parameter External mode.
Parameter: ExtModeMexArgs |
Type: character vector |
Value: valid arguments |
Default: '' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Control the memory buffer for External mode communication.
Default: off
Enables parameter Static memory buffer size for allocating dynamic memory.
Uses a static memory buffer for External mode instead of allocating dynamic memory (calls to malloc).
To determine how much memory you need to allocate, select verbose mode on the target to display the amount of memory it tries to allocate and the amount of memory available.
This parameter is enabled by parameter External mode.
This parameter enables parameter Static memory buffer size.
Parameter: ExtModeStaticAlloc |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Control Memory Allocation for Communication Buffers in Target
Specify the memory buffer size for External mode communication.
Default: 1000000
Enter the number of bytes to preallocate for External mode communications buffers in the target.
If you enter too small a value for your application, External mode issues an out-of-memory error.
To determine how much memory you need to allocate, select verbose mode on the target to display the amount of memory it tries to allocate and the amount of memory available.
This parameter is enabled by parameter Static memory allocation.
Parameter: ExtModeStaticAllocSize |
Type: integer |
Value: valid value |
Default: 1000000 |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Control Memory Allocation for Communication Buffers in Target