Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Timers or Waits in events?
#19
Local variations are thrown away when the action dies (that means the action that started at the beginning, if it runs global actions they will share the originating action's locals.) That allows you to just create them and not worry about cleaning them up since they are tossed. For anyone familiar with programming languages, they would be 'local variables' that go away when the current function/method call exits.

Globals are around as long as the thing that created that global variable context exists. So the event server has one global variables context that lives until the event server cycles. Each IV has one. In the action trace you can see any global variables that have been created and not cleaned up. So, if you bring up the action trace in the IV, every time you run an action, it'll show all of the global variables for that IV that current exist (and hence could be used by the action being invoked.)

IVs and WebRIVA clients need their own globals because they know nothing of each other and shouldn't have to worry about another IV/WebRIVA client changing or deleting their global variables. They are used to store info for subsequent actions in that client. So a button may set a variable saying, I'm not operating on Zone 1, and all other audio zone actions will look at that and affect that zone, etc...

The same for trigger drivers. Each one assumes he exists alone, and shouldn't have to worry about other trigger drivers interfering with him. He just wants to be able to (if needed) store info for subsequent incoming triggers to use.
Dean Roddey
Explorans limites defectum
Reply


Messages In This Thread
Timers or Waits in events? - by simplextech - 01-04-2020, 08:05 PM
RE: Timers or Waits in events? - by simplextech - 01-04-2020, 10:12 PM
RE: Timers or Waits in events? - by kblagron - 01-04-2020, 10:22 PM
RE: Timers or Waits in events? - by simplextech - 01-05-2020, 07:45 AM
RE: Timers or Waits in events? - by simplextech - 01-05-2020, 04:30 PM
RE: Timers or Waits in events? - by Dean Roddey - 01-05-2020, 05:48 PM
RE: Timers or Waits in events? - by simplextech - 01-05-2020, 06:34 PM
RE: Timers or Waits in events? - by kblagron - 01-05-2020, 11:29 PM
RE: Timers or Waits in events? - by simplextech - 01-06-2020, 06:03 AM
RE: Timers or Waits in events? - by Dean Roddey - 01-06-2020, 01:50 PM
RE: Timers or Waits in events? - by kblagron - 01-06-2020, 11:29 PM
RE: Timers or Waits in events? - by simplextech - 01-07-2020, 06:15 AM
RE: Timers or Waits in events? - by simplextech - 01-06-2020, 06:36 PM
RE: Timers or Waits in events? - by simplextech - 01-06-2020, 07:42 PM
RE: Timers or Waits in events? - by kblagron - 01-07-2020, 11:21 PM
RE: Timers or Waits in events? - by simplextech - 01-08-2020, 05:58 AM
RE: Timers or Waits in events? - by Dean Roddey - 01-08-2020, 09:32 AM
RE: Timers or Waits in events? - by simplextech - 01-08-2020, 10:10 AM
RE: Timers or Waits in events? - by Dean Roddey - 01-08-2020, 02:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Status of Scheduled and Triggered Events gReatAutomation 4 1,495 04-21-2020, 12:58 PM
Last Post: gReatAutomation
  Scheduled Events & Variables gReatAutomation 2 1,360 06-20-2019, 01:31 PM
Last Post: gReatAutomation
  your sched/triggered/tasker/IFTTT events IVB 17 9,275 01-18-2018, 07:41 AM
Last Post: RichardU
  Smart Handling of ISY Motion events Sendero 10 5,940 10-05-2016, 09:43 PM
Last Post: Dean Roddey
  EmailURLImg in Triggered Events TurboSam 6 3,606 11-23-2013, 01:50 PM
Last Post: Dean Roddey
  Variable Times for Triggered Events TurboSam 9 5,523 11-19-2013, 10:00 PM
Last Post: Dean Roddey
  Event Server - Scheduled Events DaveB 2 2,588 06-05-2011, 05:58 AM
Last Post: DaveB
  Scheduled events editor - howto request willplaice 2 2,135 05-30-2010, 04:12 PM
Last Post: jkish
  Newbie Question: How do I get event data for triggered events? Sendero 7 3,585 02-10-2009, 11:26 PM
Last Post: Dean Roddey
  Custom Heating control (like IVB's timers) willplaice 5 3,027 01-17-2009, 11:54 AM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)