Configuring a variable assignment with unit conversion

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.

Linking a variable with unit conversion

Requirement: A project with a visualization is open. In addition, the application contains the UnitConversion object with the convert_A rule.

  1. Select an element.

    The Properties view opens.

  2. In a variable assignment, link the iVar_A variable to a unit conversion rule:

    convert_A.convert(iVar_A)

  3. Compile, download, and start the application.

    The application runs. The visualization opens. The unit conversion is applied.