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

AVEVA™ InTouch HMI

父对象情形 2

  • Last UpdatedApr 24, 2026
  • 1 minute read

您需要监视多个不同的数据获取服务器并与其保持连接,但不希望所有服务器属性窗口始终保持打开状态。您可以搭配使用 ShowGraphic() 与 OwningObject 功能,以使用单个界面元素(按钮)在服务器状态显示窗口之间来回切换。

为了实现该目的,您可以使用以下脚本:

Dim graphicInfo as aaGraphic.GraphicInfo;

graphicInfo.Identity = "Display_" + cp2;

graphicInfo.GraphicName = "DDESL";

graphicInfo.OwningObject = cp2;

ShowGraphic( graphicInfo );

其中 cp2 = "DDESLTest_001"、"DDESLTest_002",而 DDESL 是“可视化”文件夹图形。DDESLTest_001 DDESLTest_001 是自动化对象实例。

在运行时,单击 ShowGraphic DDESL 按钮可打开图形。您可以将 DDESLTest_001 更改为 DDESLTest_002 以在两个图形之间切换,如以下顺序中所述。

Setting up a graphic's process for run-time execution

显示服务器 DDESL Test_001:

Graphic's initial display during runtime

使用配置的按钮切换以显示 DDESL Test_002:

Graphic's second display during runtime