Main Content

Unused data, events, messages, and functions

Description

Select the diagnostic action to take for detection of unused data, events, messages, and functions in a chart. Removing unused data, events, messages, and functions can minimize the size of your model.

Category: Diagnostics

Settings

Default: warning

none

No warning or error appears.

warning

A warning appears, with a link to delete the unused data, event, or message in your chart.

error

An error appears and stops the simulation.

Tip

This diagnostic does not detect these types of data and events:

  • Machine-parented data

  • Inputs and outputs of MATLAB® functions

  • Input events

Command-Line Information

Parameter: SFUnusedDataAndEventsDiag
Value: 'none' | 'warning' | 'error'
Default: 'warning'

Recommended Settings

ApplicationSetting
Debuggingwarning
TraceabilityNo impact
EfficiencyNo impact (for simulation)
none (for production code generation)
Safety precautionwarning

Related Topics