Create a label

Create a label that displays temperature in a format adjusted to the locale of a logged-in user.
  1. Create the label:
    1. In
      Project view
      , right-click
      MainWindow (type)
      and select
      New
      Base controls
      Label
      .
    2. Hover-over the label, select
      Edit
      , and enter
      TemperatureLabel
      .
  2. Create a label variable:
    1. In
      Properties
      , at the top, select
      Add
      and select
      Analog variable
      .
    2. Create a complex dynamic link between the
      AnalogVariable1
      property and the actual
      AnalogVariable1
      variable by using
      EU Mode
      Localize
      .
      DynamicLink
      ProjectName
      Model
      AnalogVariable1
      Configure
      EU Mode
      Localize
  3. Create a complex dynamic link between
    Text
    and
    AnalogVariable1
    with the use of a string formatter:
    StringFormatter1
    {0} {1}
    {0} DynamicLink
    ProjectName
    UI
    MainWindow (type)
    TemperatureLabel
    AnalogVariable1
    {1} DynamicLink
    ProjectName
    UI
    MainWindow (type)
    TemperatureLabel
    AnalogVariable1
    EngineeringUnits
    DisplayName
    For more information about dynamic links, see Create dynamic links.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.