Main Content

Classic call interface

Description

Specify whether to generate model function calls compatible with the main program module of the GRT system target file in models created before R2012a. When using Embedded Coder® for a component model that is configured with a service interface, this parameter is not supported.

Category: Code Generation > Interface

Settings

Default: off (except on for GRT models created before R2012a)

On

Generates model function calls that are compatible with the main program module of the GRT system target file (grt_main.c or grt_main.cpp) in models created before R2012a.

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

Off

Disables the classic call interface.

Tips

The following are unsupported:

  • Data type replacement

  • Code interface packaging set to Reusable function or C++ class.

  • Nonvirtual subsystem option Function with separate data

Dependencies

  • Setting Code interface packaging to C++ class disables this option.

  • Selecting this option disables the incompatible option Single output/update function. Clearing this option enables (but does not select) Single output/update function.

Command-Line Information

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

Recommended Settings

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

No recommendation

Related Topics