Import custom code - MATLAB & Simulink (original) (raw)

Main Content

Description

Specify whether or not to parse available custom code variables and functions and compile custom code into its own simulation target. This option affects the C Caller block, theC Function block, the MATLAB Function block, the MATLAB System block, and Stateflow® charts.

Category: Simulation Target

Settings

Default: On

On

When this option is on, Simulink®:

Off

When this option is off, Simulink:

Note

When this option is on, if you use the same custom code across different unique configurations, each unique configuration is treated as a separate unit even if the configurations refer to the same custom code. For instance, if you have a root-level model and a library subsystem that refer to the same custom code, then the custom code global variables accessed by the library block and the root-level model are different.

Note

In most cases, Import custom code should be selected. Clear theImport custom code parameter only if your custom code is incompatible with this parameter.

Command-Line Information

**Parameter:**SimParseCustomCode
Value: 'on' |'off'
Default: 'on'
Application Setting
Debugging On
Traceability No impact
Efficiency No impact
Safety precaution On

See Also

Topics