Open POPUP window by value change script

I`d like to open popup window by bit value change.
I tried:

system.nav.openWindow("MyPopUP")

But, It doesn`t work. How to do it?

You'd need to tell us where you placed this code and what exactly the bit is.

Ultimately, I want to use the bit from Siemens PLC.
But, now, I use testBIT(boolean) witch is memory tag in Ignition.
I want to make it so that I am on the main page of my SCADA and when bit value change, Popup window appears.

You are trying to use a tag event, which runs in the gateway service, with a navigation function that must run in the Vision Client. No can do.

Instead, use Client Tag Change event to monitor the tag inside the Vision Client, and it will be able to use the navigation function.

3 Likes

Thank you, It works.
What if I want to use Perspective? There is no "Client Events".

Perspective can use a custom session property to bind the tag of interest, then use a property change event on it to run a suitable script. That script will have to loop through the pages of the session to have a context into which to launch a popup.

Almost nothing is done precisely the same in Perspective as in Vision.