I am absolutely new to Ignition (I have been watching the Inductive University Videos) and need help with creating a popup window based on a Boolean alarm tag. I am just getting my feet wet using the Python scripting language, so I am not terrible confident in my ability to do this. Any help in this matter would be appreciated greatly.
Did any of these help?
https://forum.inductiveautomation.com/search?q=opening%20popup%20based%20on%20tag
I’m assuming you meant open not create.
Yes… I did look at these, and I’m still a bit stumped. Also, I did mean to open a popup and not create one!
Is this for the vision module or perspective?
If perspective, you can simply use the
system.perspective.openPopup(......)
for opening any popups on a tag change event.
I am currently using the vision module for all of my programming (per customer request). As I mentioned previously, I am not very strong when it comes to the Python side of programming (although I’m getting better).
You want a client event script, specifically tag change:
https://docs.inductiveautomation.com/display/DOC81/Client+Event+Scripts#ClientEventScripts-TagChangeScripts
Every Vision client will be running all of these scripts, independently. They can each watch the tag(s) in question, and when they change, a script will be invoked. In that script you can check the new value of the tag and drive your logic, e.g.
if currentValue.value:
system.nav.openWindow