You can link a variable which has been assigned in a visualization to a unit conversion. This has the effect that the variable value is converted according to a predefined rule and the result is processed in the visualization.
You have already defined the conversion rules in the editor in Unit Conversion.
Requirement: A project with a visualization is open. In addition, the application contains the UnitConversion object with the convert_A rule.
-
Select an element.
The Properties view opens.
-
In a variable assignment, link the
iVar_Avariable to a unit conversion rule:convert_A.convert(iVar_A) -
Compile, download, and start the application.
The application runs. The visualization opens. The unit conversion is applied.