| Real-Time Workshop® | ![]() |

| On this page… |
|---|
Start TLC debugger when generating code |
Select build process and Target Language Compiler (TLC) process options.
Troubleshooting the Build Process
Display code generation progress.
Default: on
The MATLAB® Command Window displays progress information indicating code generation stages and compiler output during code generation.
Does not display progress information.
| Parameter: RTWVerbose |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'on' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | On |
Specify model.rtw file retention.
Default: off
Retains the model.rtw file in the current build directory. This parameter is useful if you are modifying the target files and need to look at the file.
Deletes the model.rtw from the build directory at the end of the build process.
| Parameter: RetainRTWFile |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'off' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Profile the execution time of TLC files.
Default: off
The TLC profiler analyzes the performance of TLC code executed during code generation, and generates an HTML report.
Does not profile the performance.
| Parameter: ProfileTLC |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'off' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Specify use of the TLC debugger
Default: off
The TLC debugger starts during code generation.
Does not start the TLC debugger.
You can also start the TLC debugger by entering the -dc argument into the System target file field.
To invoke the debugger and run a debugger script, enter the -df filename argument into the System target file field.
| Parameter: TLCDebug |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'off' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Generate the TLC execution report.
Default: off
Generates .log files containing the number of times each line of TLC code is executed during code generation.
Does not generate a report.
You can also generate the TLC execution report by entering the -dg argument into the System target file field.
| Parameter: TLCCoverage |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'off' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Produce the TLC stack trace
Default: off
The build process halts if any user-supplied TLC file contains an %assert directive that evaluates to FALSE.
The build process ignores TLC assertion code.
| Parameter: TLCAssert |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'off' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | On |
![]() | Real-Time Workshop Pane: Custom Code | Real-Time Workshop Pane: Interface | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |