Jump to content

program summary True or False


yardman 49

Recommended Posts

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 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
      37k
    • Total Posts
      371.4k
×
×
  • Create New...