Main Content

Classic call interface

(To be removed) For models created before R2012a and configured with GRT system target file, generated model function calls that are compatible with main program module

Model Configuration Pane: Code Generation / Interface

The Classic call interface parameter will be removed in a future release. To use the call interface that is common to GRT- and ERT-based system target files, clear this parameter, which is the default setting. (since R2012a) For information on updating a model configuration or migrating a custom GRT-based system target file to use the unified call interface, see Version History.

Description

The Classic call interface parameter specifies whether generated model function calls for models created before R2012a and configured with a GRT system target file are compatible with the main generated program module.

The setting of this parameter enables or disables the Single output/update function parameter. Clearing the parameter enables (but does not select) Single output/update function. Selecting this parameter disables Single output/update function.

This parameter is not supported when:

  • You use data type replacement.

  • The System target file parameter is set to an ERT-based system target file and the model is configured to use a service code interface.

Dependencies

To enable this parameter:

  • Set the Code interface packaging parameter to Non-reusable function or Reusable function.

  • Clear the Subsystem block parameter Function with separate data.

Settings

Off (default) | On
On

For models created before R2012a and configured with a GRT-based system target file, generates model function calls that are compatible with the main program module (grt_main.c or grt_main.cpp).

This parameter provides a quick way to use code generated in the current release with a GRT-based custom system target file that has a main program module based on a pre-R2012a grt_main.c or grt_main.cpp file.

Off

Disables the classic call interface.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityOff
EfficiencyOff (execution, ROM), No impact (RAM)
Safety precaution

No recommendation

Programmatic Use

Parameter: GRTInterface
Type: character vector
Value: 'on' | 'off'
Default: 'off' (except 'on' for GRT models created before R2012a)

Version History

Introduced before R2006a

expand all