State name clash

Description

Select the diagnostic action to take when a name is used for more than one state in the model.

Category: Diagnostics

Settings

Default: warning

none

Simulink® software takes no action.

warning

Simulink software displays a warning.

Tips

  • This diagnostic applies for continuous and discrete states during simulation.

  • This diagnostic applies only if you save states to the MATLAB® workspace using the format Structure or Structure with time. If you do not save states in structure format, the state names are not used, and therefore the diagnostic will not warn you about a naming conflict.

Command-Line Information

Parameter: StateNameClashWarn
Value: 'none' | 'warning'
Default: 'warning'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics