Hi, I'm new to programming and I would like to know how to link alerts on my secondary displays to my main display. For example, if display 2 contains a multi-state symbol that flashes, I want display 1 to trigger another flashing icon. Thank you
I forgot to mention that I am working with PI ProcessBook.
You can access/modify a symbol from another display by setting an Object "Display" in your VBA Code. For Example:
1. Link the PDI File for another Display
Set Display2 = Application.Displays.Open("C:\Users\Documents\Display2.pdi", True)
2. Search for Symbols from linked display and modify them, Value1 in this example is set to be visible.
Display2.Symbols("Value1").Visible = True
As another approach, you can code a trigger condition for the same alert straight into your main display, this should act the same as linking the alerts since they will both trigger at the same time.
Here is a Youtube Playlist on VBA Scripting in Processbook that can show you some basics on how to do this.
Let me know if you need further clarification or assistance.
Retrieving data ...