Jump to content

program summary True or False


yardman 49

Recommended Posts

Hello all:

 

I'm looking for an explanation as to what "True" or "False" (in the Status column of the program summary) means to the ISY.

 

"Activity" (Idle, Running Then, Running Else) is self explanatory. But I don't really grasp True or False in this context.

 

Anyone care to take a stab at explaining this?

 

If we get a good definition, we can update the Wiki.

 

 

Thanks much

Link to comment

A program always has a state of either True or False. This state can be used as a condition in a program (ie. if 'Program X' is True then ...).

 

A program becomes True only when its 'Then' path is run.

A program becomes False only when its 'Else' path is run.

Nothing else changes the True/False state of a program.

 

When a program is run (either Then or Else) then it is an event for any program referencing it, thus causing the program referencing it to run (either Then or Else depending on that programs conditions).

 

By having a True/False state, you can have a complex set of conditions for one program, and reference it from another program.

 

For example, you may want to have programs that only do things during, (or some not during) office hours.

 

eg.

Program Office Hours:

If
       On Mon, Tue, Wed, Thu, Fri
       From     9:00:00AM
       To       5:30:00PM (same day)
    Or On Sat, Sun
       From    10:00:00AM
       To       2:00:00PM (same day)

Then
  - No Actions - (To add one, press 'Action')

Else
  - No Actions - (To add one, press 'Action')

 

 

Turn the lobby lights on during office hours (off otherwise):

If
       Program 'Office Hours' is True

Then
       Set 'Lobby ' On

Else
       Set 'Lobby' Off

 

keep the conference room light off outside office hours, and only allow the conference room switch to work during office hours:

If
       Program 'Office Hours' is True
   And Control 'Conference Room' is switched On

Then
       Set 'Conference Lights' On

Else
       Set 'Conference Lights' Off

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)

  • Forum Statistics

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