Use local custom code settings (do not inherit from main model)
Option to allow or disallow custom code settings in library models
Model Configuration Pane: Simulation Target
Description
The Use local custom code settings (do not inherit from main model) parameter specifies whether library models can use custom code settings that are different from the main model.
If your model contains libraries that contain C Caller or C Function blocks that call custom code functions, you must:
Specify the custom code in the configuration parameter for the library model. Specify custom code in the Custom Code section of the Simulation Target pane in the Configuration Parameters dialog box.
Enable this parameter.
When a library does not contain C Caller or C Function blocks, this parameter applies only to MATLAB Function, State Transition Table, Truth Table, Requirements Table, and Test Sequence blocks, and Stateflow® charts in the library.
Settings
on
(default) | off
on
Custom code settings for library models can differ from the custom code settings of the main model.
off
Custom code settings for library models cannot differ from the custom code settings of the main model.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No recommendation |
Programmatic Use
Parameter: SimUseLocalCustomCode |
Type: string | character vector |
Values:
'on' | 'off' |
Default: 'on' |
Version History
Introduced in R2008b