Select how variable-size signals propagate through referenced models.
Category: Model Referencing
Default: Infer
from blocks in model
Infer from blocks in model
Searches a referenced model and groups blocks into the following categories.
Category | Description | Example Blocks in This Category |
---|---|---|
1 | Output 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 |
2 | States 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 |
3 | Output 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).
Parameter: PropagateVarSize |
Value: 'Infer from
blocks in model' | 'Only when enabling'| 'During
execution' |
Default: 'Infer
from blocks in model' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No recommendation |