Tracking groups

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by dave240t, Jul 29, 2008.

  1. dave240t

    dave240t

    Joined:
    Apr 10, 2008
    Messages:
    26
    Likes Received:
    0
    using the tracking groups function using logic is it possible to track groups over two applications as far as i can tell its only possible over one application???
     
    dave240t, Jul 29, 2008
    #1
  2. dave240t

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Using the in-built logic function, you can only track on the same application.

    To track groups on different applications, you would need to write some logic code. See the "Tracking a Group Address" topic in the logic help file for code to do this.
     
    Darren, Jul 30, 2008
    #2
  3. dave240t

    dave240t

    Joined:
    Apr 10, 2008
    Messages:
    26
    Likes Received:
    0
    i have worked out my code it runs for a bit but then i get a run time error this is because of the if and the message been read continually how can i stop this error occurring. I am using a mk11 b and w

    this is my code

    if GetCBusTargetLevel("Local Network", "Lighting", "DAVIDS ROOM") <> GetCBusTargetLevel("Wireless", "Lighting", "Daves Lamp" ) then
    SetLightingLevel("DAVIDS ROOM", GetCBusTargetLevel("Wireless", "Lighting", "Daves Lamp"), GetCBusRampRate("Wireless", "Lighting", "Daves Lamp"));
     
    dave240t, Aug 5, 2008
    #3
  4. dave240t

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Your code looks correct. Is the run-time error occurring at this exact line of code ?
     
    Darren, Aug 6, 2008
    #4
  5. dave240t

    dave240t

    Joined:
    Apr 10, 2008
    Messages:
    26
    Likes Received:
    0
    yes it is because the error didn't occur until this was added it compiles ok but when i dim the lights on the slider on the touch screen the error pops up maybe the mk11 cant handle this function properly
     
    dave240t, Aug 6, 2008
    #5
  6. dave240t

    Matty

    Joined:
    Oct 15, 2004
    Messages:
    131
    Likes Received:
    0
    Hi dave240t,

    The only way I managed to get problems to occur was to drag the slider up and down continuously for about 4 seconds, PICED then raised a logic error warning saying 'C-Bus messages sent on every loop'. Is this what you were seeing?

    If this is the problem you are having perhaps try and change the 'maximum consecutive C-Bus scans' from 20 to 50. This will be found in the 'logic options' under the 'tools' menu in the logic engine. This will allow you to drag the slider for 10 seconds before something goes wrong.

    Note: even though PICED raises an error in this case, the same project on a C-Touch mk2 will just work.

    Regards,

    Matty.
     
    Matty, Aug 11, 2008
    #6
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.