A variable that was assigned in a visualization can be linked with a unit conversion. This causes the variable value to be converted according to a predefined rule and the result is edited in the visualization.
You have already configured the conversion rules in the editor of an object of the type “Unit Conversion”.
See also
Linking a variable with unit conversion
Requirement: A project with a visualization is open. In addition, the application
contains the object UnitConversion
with the rule convert_A
.
-
Select an element.
The view “Properties” opens.
-
When assigning a variable, link the variable
iVar_A
with a rule of the unit conversion:convert_A.convert(iVar_A)
-
Compile, load and start the application.
The application runs. The visualization opens. The unit conversion is applied.