Main Content

Block priority violation

Diagnostic behavior when the software detects block priority specification error

Model Configuration Pane: Diagnostics

Description

This parameter specifies the diagnostic behavior when a block priority specification error occurs.

You can specify a priority order for executing block output methods during simulation. The software executes blocks with high priority order before blocks with lower priority order. The software uses the priority you specify only when the order is consistent with the block sorting algorithm. If you specify a priority order that is not consistent with the block sorting algorithm, a block priority specification error occurs.

Settings

warning (default) | error
warning

The software issues a warning and ignores the specified block priorities.

error

The software issues an error and terminates the simulation.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionerror

Programmatic Use

Parameter: BlockPriorityViolationMsg
Value: 'warning' | 'error'
Default: 'warning'

Version History

Introduced before R2006a