RLIKWARTZ Posted November 19, 2014 Posted November 19, 2014 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.
LeeG Posted November 19, 2014 Posted November 19, 2014 All Programs invoked with a Run statement run independently. Logically two Programs are running independently.
Xathros Posted November 19, 2014 Posted November 19, 2014 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
Recommended Posts