Create a linear gauge

Create a linear gauge that shows the temperature.
  1. In
    Properties
    , right-click
    MainWindow (type)
    and select
    New
    Base controls
    Linear gauge
    .
  2. In
    Properties
    , set the
    Editable
    variable value to
    False
    .
  3. Create a 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 binding mode.
      DynamicLink
      ProjectName
      Model
      AnalogVariable1
      Binding mode between Source and Parent engineering unit
      Set Parent localized engineering unit.
    3. Create a dynamic link between
      Low limit
      and
      ProjectName
      Model
      AnalogVariable1
      EURange
      Low limit
    4. Create a dynamic link between
      High limit
      and
      ProjectName
      Model
      AnalogVariable1
      EURange
      Low limit
    5. Set
      Constrain
      to
      True
      .
    For more information about dynamic links, see Create dynamic links.
  4. Link the variable alias:
    1. In
      Properties
      , create a dynamic link between
      Value
      and
      ProjectName
      UI
      MainWindow (type)
      LinearGauge1
      AnalogVariable1
      .
    2. Create a dynamic link between
      Minimum value
      and
      ProjectName
      UI
      MainWindow (type)
      LinearGauge1
      AnalogVariable1
      EURange
      Low
      .
    3. Create a dynamic link between
      Maximum value
      and
      ProjectName
      UI
      MainWindow (type)
      LinearGauge1
      AnalogVariable1
      EURange
      High
      .
    For more information about dynamic links, see Create dynamic links.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.