Main Content

Shared code placement

Specify the location for generating shared utility code

Model Configuration Pane: Code Generation / Simulink Desktop Real-Time

Description

Specify the location for generating shared utility code.

Settings

Auto | Shared location

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.

Recommended Settings

ApplicationSetting

Debugging

Auto

Traceability

Auto

Efficiency

Shared location

Safety precaution

Auto

Programmatic Use

Parameter: UtilityFuncGeneration
Type: character vector
Value: 'Auto' | 'Shared location'
Default: 'Auto'

Version History

Introduced in R2008a