Propagate sizes of variable-size signals

Description

Select how variable-size signals propagate through referenced models.

Category: Model Referencing

Settings

Default: Infer from blocks in model

Infer from blocks in model

Searches a referenced model and groups blocks into the following categories.

CategoryDescriptionExample Blocks in This Category
1Output signal size depends on input signal values.Switch or Enable Subsystem block whose parameter Propagate sizes of variable-size signals is set to During execution
2States require resetting when the input signal size changes.Unit Delay block in an Enabled Subsystem whose parameter Propagate sizes of variable-size signals is set to Only when enabling
3Output signal size depends only on the input signal size.Gain block.

The search stops at the boundary of Enable, Function-Call, and Action subsystems because these subsystems can specify when to propagate the size of a variable-size signal.

Simulink® sets the propagation of variable-size signals for a referenced model as follows:

  • One or more blocks in category 1, and all other blocks are in category 3, select During execution.

  • One or more blocks in category 2, and all another blocks are in category 3, select Only when enabling.

  • Blocks in category 1 and 2, report an error.

  • All blocks in category 3 with a conditionally executed subsystem that is not an Enable, Function-Call, or Action subsystem, report an error. Simulink, in this case, cannot determine when to propagate sizes of variable-size signals.

  • All blocks in category 3 with only conditionally executed subsystems that are an Enable, Function-Call, or Action subsystem, support both Only with enabling and During execution.

Only when enabling

Propagates sizes of variable-size signals for the referenced model only when enabling (at Enable method).

During execution

Propagates sizes of variable-size signals for the referenced model during execution (at Outputs method).

Command-Line Information

Parameter: PropagateVarSize
Value: 'Infer from blocks in model' | 'Only when enabling'| 'During execution'
Default: 'Infer from blocks in model'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution

No recommendation

Related Topics