Components with Rescalable Elements
For each instance of a component, a rescaling formula can be selected in the implementation editor of the parent component or project. A formula used as rescaling formula must be linear with zero offset and positive scale.
If the component contains basic elements (scalar elements, arrays, matrices) with a rescalable implementation, errors are issued in the following cases:
- No rescaling formula is selected (error MMdl47).
- A rescaling formula is selected, but that formula is non-linear (error MLm901) or linear with non-zero offset (error MLm902) and/or negative scale (error MLm903).
If the component does not contain basic elements with a rescalable implementation, and a rescaling formula is specified, a warning WMdl47 is generated that the rescaling formula is ignored.
The arithmetic operations for rescalable elements are restricted, see Operations with Rescalable Elements.
The formula of a rescalable element that is accessible from outside the owning component (method argument or method return) is not rescalable for executable bodies outside the component. The formula has the scale of the element multiplied with the scale of the rescaling formula on the component instance implementation.
See also
Elements with Rescalable Implementation
Operations with Rescalable Elements
Integer Arithmetic with Rescalable Elements
Specifying Rescalable Implementations