wondering about on/off for scenes.

Discussion in 'C-Bus Toolkit and C-Gate Software' started by MR shood, Jul 14, 2008.

  1. MR shood

    adgilcan

    Joined:
    Oct 13, 2010
    Messages:
    45
    Likes Received:
    0
    Location:
    Reading UK
    Thanks Newman

    That seemed obvious- as it probably was.

    Another stupid question but one which the help file doesn't answer for me:

    Does the logic module have to run once only, or continuously?
     
    Last edited by a moderator: Oct 22, 2010
    adgilcan, Oct 22, 2010
    #21
  2. MR shood

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    The logic engine runs 5 times per second automatically. The only time it would ever run just once is if you are debugging and you click on the button to run the logic once.
     
    Darren, Oct 22, 2010
    #22
  3. MR shood

    Newman

    Joined:
    Aug 3, 2004
    Messages:
    2,203
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Don't forget too that whilst the logic engine is run repeatedly, some logic functions only get executed once, when certain conditions first become true, like the "once" function.
     
    Newman, Oct 22, 2010
    #23
  4. MR shood

    adgilcan

    Joined:
    Oct 13, 2010
    Messages:
    45
    Likes Received:
    0
    Location:
    Reading UK
    An alternative method?

    I've been messing around with the PICED logic engine and I wondered if the following procedure was worthy of consideration for scene toggling?

    I set the scene I wanted in PICED scenes (Bed1 night toilet visit ON).
    I created an application group called Faux Groups and added a group called bed1 ntv. This group controls nothing concrete but is attached to a key button as an ON/OFF toggle.

    I added the following code to PICED:

    module.jpg

    This certainly seems to work in simulation mode but fails to deal with KEY indicators. I suppose this could be added to the logic module but I don't know how to do that.

    Is this worth me working on further, or have I missed something fundamental?

    If there is mileage in this idea, how do you deal with the KEY indicator problem?

    Be gentle with me; I don't know what I am talking about!!
     
    adgilcan, Oct 25, 2010
    #24
  5. MR shood

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    I don't think this really adds a great benefit over just using a regular trigger for the Scenes. The main difference is that you have done it with a single Scene, whereas it would require two Scenes if you were triggering them normally (an "on" Scene and an "off" Scene).

    See my post (number 17) earlier in this thread for the full solution.

    We are always nice to people who are polite :)
     
    Last edited by a moderator: Oct 25, 2010
    Darren, Oct 25, 2010
    #25
  6. MR shood

    adgilcan

    Joined:
    Oct 13, 2010
    Messages:
    45
    Likes Received:
    0
    Location:
    Reading UK
    Thanks Darren

    One of the problems I foresee is that some of my Saturn Units are either DLT or 6 gang. In these cases there are only two virtual keys (or none on the DLT) to deal with the indicator issue where I could potentially need more. Is there a way around this, or more detailed information to be found about how they work and can be manipulated?

    All the best
     
    Last edited by a moderator: Oct 26, 2010
    adgilcan, Oct 26, 2010
    #26
  7. MR shood

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    That is going to be a problem. You may need to resort to having one Scene per button, which is how these units are supposed to operate, or live with the problem of the LED being on when a Scene is "broken".
     
    Darren, Oct 26, 2010
    #27
  8. MR shood

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,548
    Likes Received:
    178
    Location:
    Adelaide, Australia
    Perhaps in a future upgrade to switches and DLT's you could give the indicators their own group address, then you could set them however you liked in the scene and all these problems would go away. :)
     
    Ashley, Oct 27, 2010
    #28
  9. MR shood

    Don

    Joined:
    Aug 4, 2004
    Messages:
    429
    Likes Received:
    0
    Location:
    Townsville, Australia
    Not quite that easy.

    When setting the application to control trigger, you can use different keys to set the trigger group to different levels, hence set different scenes. The group address (trigger group) must be the same for all keys and each scene has a different level (action selector).

    What is needed is a legitimate scene toggle function in key units. This is coming.
     
    Don, Oct 27, 2010
    #29
  10. MR shood

    adgilcan

    Joined:
    Oct 13, 2010
    Messages:
    45
    Likes Received:
    0
    Location:
    Reading UK
    Don

    Do you know if this will be a firmware revision, or will it require new units?

    Any idea when it will be introduced?

    ATB
     
    adgilcan, Oct 27, 2010
    #30
  11. MR shood

    adgilcan

    Joined:
    Oct 13, 2010
    Messages:
    45
    Likes Received:
    0
    Location:
    Reading UK
    Do you actually have to assign action selectors values of 0 or 255 to control the scene?

    PICED seems to provide ON and OFF as a default. I'm still in simulation mode but it seems to work there.

    ???
     
    adgilcan, Oct 27, 2010
    #31
  12. MR shood

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Key units have no capacity for firmware upgrade. It will require new units.

    No.
     
    Darren, Oct 28, 2010
    #32
  13. MR shood

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    In this case, Off = action selector 0 and On = action selector 255.

    It would be better if PICED did not show On and Off for trigger control. Issue number 20603.
     
    Darren, Oct 28, 2010
    #33
  14. MR shood

    agent75

    Joined:
    Dec 15, 2008
    Messages:
    7
    Likes Received:
    0
    i'm just a little confused i think.

    i've done what you said but i had to put the word "begin" in after the word 'then" in the logic where your example doesn't. not a biggie but i'm not a logic pro so is this wrong? it works.

    also, you have said that the "on scene" must switch trigger group 3 (phantom indicator status group) on
    and the "off" scene must switch trigger group 3 off

    does this mean i must include this group in each scene? when i include it in the off scene i cant make the indicator come back on when i make the scene true again (when i switch only one group in the scene off then on again) this means the scene is now not true because the trigger 3 remains off .

    have i confused you?

    when i remove the trigger 3 at level 0 from the off scene it seems to work well

    have i misunderstood something?

    Shane
     
    agent75, Oct 20, 2011
    #34
  15. MR shood

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    I can not see any logic in this thread missing a "begin". Which logic are you referring to?

    This is needed so that you can see whether the scene is set or not.

    No. Just these two scenes.

    If you want this behaviour, you will need to add logic to set group 3 when the On scene is set. This is not usually a requirement.

    It will actually work without this.
     
    Darren, Oct 20, 2011
    #35
  16. MR shood

    agent75

    Joined:
    Dec 15, 2008
    Messages:
    7
    Likes Received:
    0
    the logic i am refferring to is in your post number 17


    sorry. that's what i meant :eek:

    i'm sorry, i don't understand the rest of your reply. i did it the way you said in post 17. it didn't work. if i turn one group in the scene off after i have set it your way works fine... the indicator goes off. if i turn that group back on again, hence making the scene true (except for this phantom indicator group which is still off because the logic turned it off, for this reason the indicator does not come back on again) when i remove the indicator trigger from the on scene it works, but i feel that this has other flow on effects or why would you put it in there in the first place


    regards

    Shane
     
    agent75, Oct 20, 2011
    #36
  17. MR shood

    zx9

    Joined:
    Jun 8, 2009
    Messages:
    49
    Likes Received:
    0
    Location:
    Melbourne
    still trying to get scene toggle working

    finally got this working myself, that is toggling scenes without logic. I followed the directions although couldn't work out how to assign a trigger - action selector to a scene. In the end i started from scratch and used the vitural keys to assign it. not sure if that was right but it worked. now my next problem is trying to get the DLT label right - it's labelled right in the toolkit but still says Button 8 on the DLT. I guess it has something to do with using the secondary trigger control application for that button.
     
    Last edited by a moderator: Oct 23, 2011
    zx9, Oct 23, 2011
    #37
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.