Jump to content

run program command


RLIKWARTZ

Recommended Posts

Is a run program like a go to or a call subroutine?  On a go to it runs it and falls out the bottom and it's done while with a call subroutine it returns to the line after the call subroutine.

Unless a program Then or Else ends with a Run Program .... statement, execution simply ends at the last statement.

 

Event driven programming in the ISY is not necessarily a linear program flow like a BASIC program.  Many things (threads) can run in parallel.

 

Take for example:

 

Program: TestProgram

If


Then
   Run Program1 (If Path)
   Run Program2 (If Path)
   Run Program3 (If Path)
   Run Program4 (If Path)
   Run TestProgram (Else Path)

Else
   Run Program5 (If Path)
   Run Program6 (If Path

Selecting Run Then on TestProgram will result in programs 1 through 6 all running simultaneously.

 

 

-Xathros

Link to comment

Archived

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


×
×
  • Create New...