Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

设置已配置的引用

  • Last UpdatedSep 24, 2024
  • 1 minute read

在工业图形编辑器的属性窗格的运行时行为部分,可以找到 ShowConfiguredReferences 属性。如果将 ShowConfiguredReferences 字段设置为 True,在运行时右键单击任意元素时,已配置的引用对话框将打开,并显示该元素上配置的属性。

在设计时将 ShowConfiguredReferences 属性设置为 true:

  • 在工业图形编辑器的属性窗格的运行时行为部分,在 ShowConfiguredReferences 属性下拉框中,选择 True

    tthe Runtime Behavior section of the Properties pane

您还可以使用以下示例中所示的脚本,在运行时将 ShowConfiguredReferences 属性设置为 true:

  1. 在工业图形编辑器中,添加元素并创建一个按钮动画,以更改 _showref 自定义属性。

    adding an element and creating a Pushbutton animation to change the _showref custom property

  2. 使用下图所示的 DataChange 脚本,根据自定义属性 _showref 的值,将 ShowConfiguredReferences 值更改为 True 或 False。

    Using a DatachangeScript to change an attribute value

    注意:您无法使用用户输入动画将 ShowConfiguredReferences 的值设置为 True 或 False,因为它仅在脚本中受支持。因此,可以使用上述替代方法。

  3. 在运行时,当您单击按钮时,它将触发 ShowConfiguredReferences 属性值为 True。然后,您可以右键单击元素以查看已配置的引用对话框。