Code Generation Pane: Real-Time Windows Target

Real-Time Windows Target Tab Overview

Control the code created by Simulink® Coder™ code generation software for a Real-Time Windows Target™ application.

Configuration

To enable the Simulink Real-Time™ options pane, select rtwin.tlc for the System target file parameter on the code generation pane.

Standard math library

Specify a standard floating-point math library

Settings

Default: C89/C90 (ANSI)

C89/C90 (ANSI)

Generates calls to the ISO®/IEC 9899:1990 C standard math library for floating-point functions.

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. This setting is visible only if you selected C++ for the Language parameter on the Code Generation pane of the Configuration Parameters dialog box.

Tips

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.

Command-Line Information

Parameter: TargetLangStandard
Type: string
Value: 'C89/C90 (ANSI)' | 'C99 (ISO)' |'C++03 (ISO)'
Default: 'C89/C90 (ANSI)'

Code replacement library

Specify a target-specific floating-point math library extension

Settings

Default: None

None

Does not use a code replacement library.

GNU C99 extensions

Generates calls to the GNU® gcc math library, which provides C99 extensions as defined by compiler option -std=gnu99.

Tips

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.

Command-Line Information

Parameter: CodeReplacementLibrary
Type: string
Value: 'None' | 'GNU99 (GNU)'
Default: 'None'

Shared code placement

Specify the location for generating shared utility code

Settings

Default: Auto

Auto

Operates as follows:

  • When the model contains Model blocks, place utility code within the slprj/target/_sharedutils folder.

  • When the model does not contain Model blocks, place utility code in the build folder (generally, in model.c or model.cpp).

Shared location

Directs code for utilities to be placed within the slprj folder in your working folder.

Command-Line Information

Parameter: UtilityFuncGeneration
Type: string
Value: 'Auto' | 'Shared location'
Default: 'Auto'

Generate assembly listings

Instruct the C compiler to generate assembly listings for the generated code.

Settings

Default: off

On

Generates assembly listings.

Off

Suppresses assembly listings.

Command-Line Information

Parameter: CCListing
Type: Boolean
Value: on | off
Default: off

Rebuild all

Force the object files to be rebuilt regardless of their time stamps.

Settings

Default: off

On

Rebuilds the object files at every build.

Off

Rebuilds object files whose time stamps show they are outdated.

Command-Line Information

Parameter: RebuildAll
Type: Boolean
Value: on | off
Default: off

External mode

Enable client/server communication between Simulink software and an application.

Settings

Default: on

On

Enables external mode.

Off

Disables external mode

Tip

  • This check box is selected by default and grayed out.

  • Code generation is only supported in external mode.

Dependencies

Selecting External mode enables:

  • Transport layer

  • MEX-file arguments

  • Static memory allocation

Command-Line Information

Parameter: ExtMode
Type: string
Value: 'on' | 'off'
Default: 'on'

See Also

Create a Transport Layer for External Communication

Transport layer

Specify the transport protocol for external mode communication.

Settings

Default: sharedmem

sharedmem

Uses a shared memory transport mechanism. The MEX-file name is rtwinext.

Tips

  • The MEX-file name displayed next to Transport layer cannot be edited in the Configuration Parameters dialog box.

  • For targets provided by MathWorks®, like Real-Time Windows Target, the MEX-file name is specified in:

    matlabroot/toolbox/simulink/simulink/extmode_transports.m

Dependency

This parameter is enabled by checking External mode.

Command-Line Information

Parameter: ExtModeTransport
Type: integer
Value: 0
Default: 0

See Also

MEX-file arguments

Specify external mode MEX arguments.

Settings

Default: ''

For a shared memory transport, rtwinext allows two optional arguments. The arguments are positional, so the first argument must appear if the second appears.

  • An argument that is currently unused. Specify '' for this argument.

  • An argument that specifies verbosity. Specify 0 for Nonverbose, or 1 for Verbose.

The default is Nonverbose mode (0). To specify Verbose mode, set MEX-file arguments to:

'' 1

where '' is the empty string and 1 specifies Verbose mode.

Dependency

This parameter is enabled by checking External mode.

Command-Line Information

Parameter: ExtModeMexArgs
Type: string followed by integer
Value: '' | '' 0 | '' 1
Default: ''

See Also

Was this topic helpful?