system.nav.swapWindow()

Can a system.nav.swapWindow function be used in a Gateway Tag Change Script? When I try to use the function, I get an error stating "object has no attribute ‘nav’ ". What I am trying to do is to change from one main window to another main window every 20 seconds for the first 15 minutes of the shift for 22 Televisions. So basically flashing a message every 20 seconds. The PLC checks the time and toggles a bit on and off every 20 seconds. I thought I could use either system.nav.swapWindow or system.nav.swapTO functions to do this. Do I need to try a different method to accomplish my task?

Gateway events run in the gateway (the background service in that machine), and therefore have no windows at all. That’s why there’s no .nav collection of script functions. However, you can set up a client tag change script in that project that can do what you require.

2 Likes

Thank you! I changed everything over to a client tag change script and it works well.