Main Content

Remove disable function

Description

Remove unreachable (dead-code) instances of the disable functions from the generated code for ERT-based systems that include model referencing hierarchies. If you enable this parameter, Simulink® checks that live code will be removed and errors if it finds such code.

Category: Code Generation > Interface

Settings

Default: Off

On

Remove unreachable instances of the disable functions from the generated code for ERT-based systems that include model referencing hierarchies.

Off

Generate code without removing unreachable instances of the disable function.

Dependencies

This parameter requires an Embedded Coder® license.

To set the Remove disable function parameter, set Configuration Parameters > Code Generation > System target file parameter to an ERT-based system target file, such as ert.tlc.

Command-Line Information

Parameter: RemoveDisableFunc
Value: 'on' or 'off'
Default: 'off'

Related Topics