Target operating system
Target operating system for example main program
Model Configuration Pane: Code Generation / Templates
Description
Specify a target operating system to use when generating model-specific example main program module.
Dependencies
This parameter is enabled by Generate an example main program.
This parameter must be the same for top-level and referenced models.
Settings
BareBoardExample (default) | NativeThreadsExampleDefault: BareBoardExample
BareBoardExampleGenerates a bareboard main program designed to run under control of a real-time clock, without a real-time operating system.
NativeThreadsExampleGenerates a fully commented example showing how to deploy the threaded code under the host operating system. This option requires you to configure your model for concurrent execution.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Programmatic Use
Parameter: TargetOS |
| Type: character vector |
Value: 'BareBoardExample' | 'NativeThreadsExample' |
Default: 'BareBoardExample' |
Version History
Introduced before R2006a