I have a timer instance in my program that whenever multiple instances of the window get opened (vision, designer, etc) it adds another timer pulse. I am using the timer module for this, I would like it to tick once per second regardless of how many instances are open, how can I do this?
Don't use jython's timer module.
If you want independent timing per user, use a client timer event.
If you want a single global timer, use a gateway timer event.
I want global timers, but I have 100 different timers within the project. Is it efficient to make that many gateway timer events, and can I do that within a template?
You can make a single timer event handle many individual timers, presumably with memory tags to hold the state of each timer. (Running, start timestamp, whatever.) Treat the code in the timer event as if a scheduled task in a PLC.
Templates are user interface items. They should have no code that runs global operations. They should only have code that alters state as needed for the gateway event code to carry forward. (Timer start, stop, reset, preset. Timing and following actions are in the gateway event.)
ok, I think that makes sense, thank you!!