This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

TLC Command-Line Options

TLC command-line options are model options set before code generation to configure the real-time application and the real-time kernel.

To set these options from the Code Generation pane in the Configuration Parameters dialog box, select Advanced Parameters. Type the option in the TLC command line options text box in this form:

-aoption_name1=option_value1 -aoption_nameN=option_valueN

Prefix each option name with -a. Do not leave spaces around the equal sign. Do not place a comma between consecutive value assignments.

To set these options from the Command Window, use the syntax:

set_param(model_name, ...
     'TLCOptions', ...
     '-aoption_name1=option_value1 -aoption_nameN=option_valueN')

For example:

set_param('xpcosc', ...
     'TLCOptions', ...
     '-axPCMaxOverloads=20 -axPCModelStackSizeKB=4096')

To read these options from the Command Window, use the syntax:

get_param(model_name, 'TLCOptions')

For example:

get_param('xpcosc', 'TLCOptions')
ans =

-axPCMaxOverloads=20 -axPCModelStackSizeKB=4096

To remove these options, use the syntax:

set_param(model_name, 'TLCOptions', '')

xPCMaxOverloads

When xPCMaxOverloads is set to a value, the Simulink® Real-Time™ software stops execution with a CPU overload at the next overload within the same application execution. For example, if xPCMaxOverloads is set to 3, the software stops with a CPU overload at the fourth overload in the same application execution.

The default value of 0 means that overloads are registered on the first overload.

Allowing the target computer CPU to overload can cause incorrect results, especially for multirate models. Use these TLC command-line options only for diagnosis. When your diagnosis is complete, turn off these options.

See Also

CPU Overload Options

xPCMaxOverloadLen

When xPCMaxOverloadLen is set to a value, the software stops execution with a CPU overload at the next overload within the same execution step. For example, if xPCMaxOverloadLen is set to 2, the software stops execution with a CPU overload at the third overload within the same execution step.

The default value of 0 means that overloads are registered on the first overload within the same execution step.

Specify a value that is less than or equal to the value for xPCMaxOverloads. If xPCMaxOverload is set to a value, for example 4, and xPCMaxOverloadLen is not defined, the real-time application stops if one of following occurs:

  • The cumulative overloads since execution start is greater than 4.

  • One execution step has two overloads.

Allowing the target computer CPU to overload can cause incorrect results, especially for multirate models. Use these TLC command-line options only for diagnosis. When your diagnosis is complete, turn off these options.

See Also

CPU Overload Options

xPCStartupFlag

xPCStartupFlag temporarily disables CPU overload checking during the first few model execution steps. After the model finishes the first xPCStartupFlag steps, the software reenables CPU overload checking, which takes effect for the next execution of the model.

The default value of 1 means that overloads are ignored on the first step. If xPCMaxOverloads and xPCMaxOverloadLen are not set, their default setting determines the software response to overloads.

See Also

CPU Overload Options

xPCModelStackSizeKB

Sets the number of kilobytes of stack memory that are allocated to real-time threads on the target computer. The default value is 2048.

Target computer memory for the real-time application executable, the kernel, and other uses is limited to a maximum of 4 GB.

See Also

Troubleshoot Target Computer Stack Size

xpcCPUClockPoll

Switches the kernel from interrupt mode to polling mode. When Execution mode is Real-Time, a nonzero value causes the real-time application to perform a busy wait at the target computer CPU clock rate. If the value is 0 (the default) or if the option is not defined, the kernel executes in interrupt mode.

See Also

Polling Mode

SLRTFTZOFF

Configures floating-point processing:

  • 0 (default) — Denormal float processing is not performed. The representation of small numbers is slightly different from the representation when the value is 1. Floating-point operations are faster. The corresponding Microsoft® Visual C++® compiler options are /fp:fast /arch:SSE2.

  • 1 — Floating-point operations meet the IEEE® Standard for Floating Point Arithmetic (IEEE 754-2008). The corresponding Microsoft Visual C++ compiler options are /fp:precise with the default value of /arch.

See Also