Jump to content

How does one control the order programs run in ISY?


Recommended Posts

Posted
12 minutes ago, larryllix said:

The total value 2^6-1 (63) can trigger a program. Wouldn't need any boolishness on the right side of the logical trigger.
If
     $sBitTotal = 63
Then
    ....

Agreed.  But if we can't test which bit is set or which bit is not set it's not any more useful to do it bitwise

...in the other posters example in this thread count 1 - 6 is no better than bitwise...  if a program didn't run, or ran multiple times in either case that's not detectable efficiently using the tools we have.   it could be ineffeciently done using more variables and more programs but at that point its not worth using the variable in a bitwise manner to begin with.

Posted (edited)
1 hour ago, MrBill said:

Agreed.  But if we can't test which bit is set or which bit is not set it's not any more useful to do it bitwise

...in the other posters example in this thread count 1 - 6 is no better than bitwise...  if a program didn't run, or ran multiple times in either case that's not detectable efficiently using the tools we have.   it could be ineffeciently done using more variables and more programs but at that point its not worth using the variable in a bitwise manner to begin with.

Sure to break it down you would require a program to break it into separate flags and then we may as well just keep them all separate and use a trigger program like:

If
     $sVar1
   AND $sVar2
   AND $sVar3
   AND $sVar4
   AND $sVar5
Then
   .....

Not as boolean person pretty but it could work :)

Edited by larryllix

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)

  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...