Main Content

Extraneous discrete derivative signals

(Removed) Diagnostic behavior when discrete model reference inputs drive continuous blocks

Model Configuration Pane: Diagnostics

The Extraneous discrete derivative signals diagnostic configuration parameter has been removed. (since R2024a) Use the Solver Profiler instead. For more information, see Compatibility Considerations.

Description

This parameter specifies whether the software issues an error, a warning, or no diagnostic when a discrete input to a Model block connects to the input of a block that has continuous states. In this situation, the software cannot determine with certainty the appropriate rate at which to reset the solver to ensure simulation accuracy.

When you do not specify this parameter value as error, the simulation proceeds. The software resets the solver each time the discrete signal updates. This solver reset rate ensures that the simulation results are accurate when the discrete signal is the source for the input signal to the block with continuous states. When the discrete signal is not the source for the input signal to the block with continuous states, the software can reset the solver more frequently than necessary, which can affect simulation performance.

This diagnostic applies only to models that contain Model blocks.

Settings

none (default) | error | warning
error

The software issues an error during model compilation and terminates the simulation.

warning

The software issues a warning and resets the solver each time the value of the discrete signal changes.

none

The software does not issue a diagnostic and resets the solver each time the value of the discrete signal changes.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

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

Version History

Introduced before R2006a

expand all

R2024a: Removed

The Extraneous discrete derivative signals diagnostic configuration parameter has been removed.

When a discrete input to a Model block connects to the input of a block that has continuous states, the software resets the solver each time the discrete signal updates. The software does not issue a warning or error. Previously, the default behavior of this diagnostic was for the software to issue an error.

To diagnose solver resets, use the Solver Profiler instead. The Solver Profiler provides the number of resets and the reset sources. For more information, see Solver Resets.