Create a complex dynamic link

Create complex dynamic links to transform linked values.
  1. In
    Project view
    , select an object that contains a property to link.
  2. In
    Properties
    hover-over the property to link, select
    Add Dynamic Link
    .
  3. In the dynamic link browser, select
    Advanced
    .
  4. (optional) To open the complex dynamic link editor in the editor, select
    Open in editor
    .
    TIP: Opening the complex dynamic link editor in the editor is useful if you edit a complex dynamic link with a lengthy logic.
  5. To insert a dynamic link:
    1. Select
      Insert
      and select
      Dynamic link
      .
    2. Set the dynamic link source by selecting
      Add Dynamic Link
      or dragging and dropping an object or a property.
      The reference to the selected node or variable appears in the property. Before the property, appears to indicate that the property contains a dynamic link.
      TIP: If the dynamic link does not resolve at design time, appears before the dynamic link. A dynamic link to a Windows alias may resolve at runtime. If the dynamic link is broken because the linked attribute no longer exists or has been moved, appears before the link.
  6. To insert a converter:
    1. Select
      Insert
      and select a converter.
    2. Create the converter logic by entering data or creating dynamic links in the converter fields.
      TIP: You can create a dynamic link by selecting
      Add Dynamic Link
      or dragging and dropping an object or a property.
  7. To change the dynamic link direction, select the icon:
    • Read from the source node to the parent.
    • Write from the parent to the source node.
    • Read from the source node to the parent and write from the parent to the source node.
  8. To link the source variable to the specific index of the parent variable:
    1. Select
      Configure
      Configure
      and select
      Add parent array index
      .
    2. Set
      Parent array index value
      .
  9. To create a converter on which you can dynamically build the variable source path, select
    Configure
    Configure
    and select
    EU Mode
    :
    • Default
      . Does not propagate the Engineering Unit (EU) to converters. If the output value is an UI object, the EU conversion does not apply.
    • Localize
      . Propagates the EU to converters with proper localization. If the output is an UI object, the EU converts to the current measurement system.
    • Copy EU from source
      . Propagates the EU to converters without localization. If the output is an UI object, the EU does not convert to the current measurement system.
    For more information about measurement systems, see Measurement systems.
  10. To add a dynamic path converter:
    1. Select
      Configure
      Configure
      and select
      Key-value converter
      or
      Conditional converter
      .
    2. Set the converter properties.
  11. To add source node placeholders:
    TIP: Add source node placeholders to modify dynamic links based on the placeholder values at runtime. You can use such formatted dynamic links for aliases.
    1. Next to the dynamic link to edit, select
      Edit
      .
    2. Edit the dynamic link by adding placeholders in curly braces.
      For example:
      /Objects/
      ProjectName
      /Model/Motor{0}
    3. In each
      {
      placeholder
      } Dynamic link
      , create dynamic links to placeholders values.
    In the following example, the
    Motor
    {0}
    placeholder resolves to a spin box value.
    Dynamic link with a placeholder
  12. To delete a dynamic link or a converter, in the block, select
    Delete
    .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.