Jump to content

What happens if a program is re-triggered before completion


gfridland

Recommended Posts

I have had some reliability issues with a specific program which contains multiple actions...there are 8 scenes called to turn on OR off with 2-4 second delays between each scene...so the program should run for approximately 30 seconds.

 

In doing some troubleshooting, I found that this same program is called on as an action within a different program/folder which contains a 10 second delay.

 

So...the program is triggered, and 10 seconds later is is triggered again...what happens? Does it restart from the beginning or does it complete first and then run again? Does it ignore the second trigger???

 

I have resolved it to not compete with itself, but it raised the question on how this scenario is handled programatically...

Link to comment

It restarts from the beginning. How was the Program being Run from the other Program, Run (If) or Run (Then). Either way it starts from the beginning but with a Run (If) the If is evaluated and could run the Else clause should the If be False at the time.

Link to comment

Any time there is a Wait or Repeat in a Program the If is reevaluated should a Status change or a State variable change. This reevaluation starts the Program over from the beginning of whatever clause is driven as a result of the reevaluation.

 

This often leads to statements after a Wait unexecuted because the If status has changed.

Link to comment

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.3k
×
×
  • Create New...