| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Real-Time Workshop |
| Contents | Index |
| Learn more about Real-Time Workshop |
The Real-Time Workshop Tornado Target pane includes the following parameters when the Real-Time Workshop product is installed on your system and you specify the tornado.tlc system target file.

| On this page… |
|---|
Real-Time Workshop: Tornado Target Tab Overview |
Control Real-Time Workshop 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 target-specific math library for your model.
Default: C89/C90 (ANSI)
Generates calls to the ISO/IEC 9899:1990 C standard math library for floating-point functions.
Generates calls to the ISO/IEC 9899:1999 C standard math library.
Generates calls to the GNU gcc math library, which provides C99 extensions as defined by compiler option -std=gnu99.
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: GenFloatMathFcnCalls |
| Type: string |
| Value: 'ANSI_C' | 'C99 (ISO)' | 'GNU99 (GNU)' |
| Default: 'ANSI_C' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | Any valid library |
| Safety precaution | No impact |
Specify the location for generating utility functions.
Default: Auto
Operates as follows:
When the model contains Model blocks, place utilities within the slprj/target/_sharedutils directory.
When the model does not contain Model blocks, place utilities in the build directory (generally, in model.c or model.cpp).
Directs code for utilities to be placed within the slprj directory in your working directory.
| Parameter: UtilityFuncGeneration |
| Type: string |
| Value: 'Auto' | 'Shared location' |
| Default: 'Auto' |
| Application | Setting |
|---|---|
| Debugging | Shared location |
| Traceability | Shared location |
| Efficiency | Shared location |
| 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 any data specified in the Configuration Parameters > Data Import/Export Pane > Save to workspace subpane, and the data specified by any To Workspace blocks. See Data Import/Export Pane and To Workspace. In simulation, this data would be written to the MATLAB workspace, as described in Exporting Data to the MATLAB Workspace, but setting MAT-file logging redirects the data to a MAT-file instead. The file is named model.mat, where model is the name of your model.
Disables MAT-file logging. Clearing this option has the following benefits:
Eliminates overhead associated with supporting a file system, which typically is not needed 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 model_step, allowing the generated program to run indefinitely, regardless of the stop time setting
This parameter only appears for ERT-based targets and the Tornado target.
MAT-file logging does not work in a referenced model, and no code is generated to implement it.
| Parameter: MatFileLogging |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'off' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No impact |
| Efficiency | Off |
| Safety precaution | Off |
Select the string to add to the MAT-file variable names.
Default: rt_
| Parameter: LogVarNameModifier |
| Type: string |
| Value: 'none' | 'rt_' | '_rt' |
| Default: 'rt_' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Specify the code generation format.
Default: RealTime
Specifies the Real-Time code generation format.
Specifies the Real-Time Malloc code generation format.
| Parameter: CodeFormat |
| Type: string |
| Value: 'RealTime' | 'RealTimeMalloc' |
| Default: 'RealTime' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Targeting Tornado for Real-Time Applications
Specify whether to enable StethoScope, an optional data acquisition and data monitoring tool.
Default: off
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 StethoScope automatically disables External mode, and vice versa.
| Parameter: StethoScope |
| Type: string |
| 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, as described in Configuring for Automatic Downloading.
Before every build, reset VxWorks by pressing Ctrl+X on the host console or power-cycling the VxWorks chassis. This ensures that no dangling processes or stale data exist in VxWorks when the automatic download occurs.
| Parameter: DownloadToVxWorks |
| Type: string |
| 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 Real-Time Workshop software 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: any valid value |
| Default: 30 |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | May affect 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: any 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:
Transport layer
MEX-file arguments
Static memory allocation
| Parameter: ExtMode |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'on' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Specify the transport protocol for external mode communications.
Default: tcpip
The MEX-file name displayed next to Transport layer cannot be edited in the Configuration Parameters dialog box. For targets provided by The MathWorks, the value is specified in matlabroot/toolbox/simulink/simulink/extmode_transports.m.
This parameter is enabled by External Mode.
| Parameter: ExtModeTransport |
| Type: integer |
| Value: 0 | 1 |
| Default: 0 |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
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 External Mode.
| Parameter: ExtModeMexArgs |
| Type: string |
| Value: any 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 the Static memory buffer size parameter for allocating allocate 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 External Mode.
This parameter enables Static memory buffer size.
| Parameter: ExtModeStaticAlloc |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'off' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
External Mode Interface Options
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 Static memory allocation.
| Parameter: ExtModeStaticAllocSize |
| Type: integer |
| Value: any valid value |
| Default: 1000000 |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
External Mode Interface Options
![]() | Real-Time Workshop Pane: Real-Time Workshop S-Function Code Generation Options | Parameter Reference | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |