Specifying Rescalable Implementations
To specify rescalable implementations, you have to do the following:
- adjust the implementations of basic elements in a component
- specify a rescaling formula for each component instance in your project.
Proceed as follows.
Adjusting the Implementations of Basic Elements
Open the component whose elements need a rescalable implementation.
See Elements with Rescalable Implementations for details on possible elements and restrictions.
For each element that needs a rescalable implementation, do the following.
- Open the implementation editor for the element.
In the implementation editor, activate the Rescalable option.
An information is shown in the Consistency field: The model interval is not used when a rescale formula is applied for the instance of this component.
Select a linear formula with positive scale and zero offset.
If you select a non-linear formula, or a linear formula with non-zero offset, a warning is shown in the Consistency field: The selected formula has to be linear and without offset.
Note
A linear formula with negative scale is forbidden, too.
- Set the master page to Implementation.
- Select an sint* or uint* implementation data type.
- Close the implementation editor with OK.
Specifying a Rescaling Formula for a Component Instance
For each instance of the component in your project, do the following.
- Open the parent component of the instance.
- Make sure that the instance is of scope local.
- Open the implementation editor for the parent component.
In the implementation editor, select an implementation.
The rescaling formula of a component instance is stored with the implementation of the parent component.
In the Local tab, in the row of the instance, click in the Rescaling Formula cell.
A combo box opens that contains all formulas in the current project.
- Select a linear formula with positive scale and zero offset.
- Close the implementation editor with OK.
See also
Elements with Rescalable Implementations
Opening the Implementation Editor for an Element (B)
Setting the Master Page of an Implementation
Specifying an Implementation (Master: Implementation)
Opening the Implementation Editor of an Edited Component/Project