Create a linear gauge

Create a linear gauge that shows the temperature.
  1. In the
    Properties
    pane, right-click
    MainWindow (type)
    and select
    New
    Base controls
    Linear gauge
    .
  2. In the
    Properties
    pane, set the
    Editable
    variable value to
    False
    .
  3. Create a variable:
    1. In the
      Properties
      pane, 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 the
      Low limit
      property and
      ProjectName
      Model
      AnalogVariable1
      EURange
      Low limit
    4. Create a dynamic link between the
      High limit
      property and
      ProjectName
      Model
      AnalogVariable1
      EURange
      Low limit
    5. Set the
      Constrain
      property value to
      True
      .
    For more information about dynamic links, see Create dynamic links.
  4. Link the variable alias:
    1. In the
      Properties
      pane, create a dynamic link between the
      Value
      property and
      ProjectName
      UI
      MainWindow (type)
      LinearGauge1
      AnalogVariable1
      .
    2. Create a dynamic link between the
      Minimum value
      property and
      ProjectName
      UI
      MainWindow (type)
      LinearGauge1
      AnalogVariable1
      EURange
      Low
      .
    3. Create a dynamic link between the
      Maximum value
      property and
      ProjectName
      UI
      MainWindow (type)
      LinearGauge1
      AnalogVariable1
      EURange
      High
      .
    For more information about dynamic links, see Create dynamic links.
Fornire un feedback
Hai domande o feedback su questa documentazione? invia il tuo feedback qui.