Main Content

Support non-inlined S-functions

Whether to generate code for noninlined S-functions

Model Configuration Pane: Code Generation / Interface

Description

The Support non-inlined S-functions parameter specifies whether to generate code for noninlined S-functions.

This parameter is not relevant and, therefore, is not supported for component models configured with a service code interface.

The S-function interface requires support for floating-point and non-finite numbers. If you select this parameter, Simulink® selects the Support: floating-point numbers and Support: non-finite numbers parameters. When this parameter is selected, if you clear Support: floating-point numbers or Support: non-finite numbers, the code generator displays a warning.

Settings

Off (default) | On
On

Enables code generation for noninlined S-functions.

Off

Disables code generation for noninlined S-functions. If you clear this parameter and the model includes a noninlined S-function, the code generator returns an error during the build process.

Tips

  • Inlining S-functions is highly advantageous in production code generation, for example, for implementing device drivers. In such cases, clear this option to enforce use of inlined S-functions for code generation.

  • Non-inlined S-functions require additional memory and computation resources, and can result in significant performance issues. Consider using an inlined S-function when efficiency is a concern.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyOff
Safety precaution

No recommendation

Programmatic Use

Parameter: SupportNonInlinedSFcns
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced before R2006a