Classic call interface
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
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
orReusable 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
orgrt_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
orgrt_main.cpp
file.- Off
Disables the classic call interface.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | Off |
Efficiency | Off (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