Retrieving Tag Name via Code in Logic Engine

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by DrNick, Sep 5, 2005.

  1. DrNick

    DrNick

    Joined:
    Aug 30, 2005
    Messages:
    5
    Likes Received:
    0
    Is it possible to retrieve the Tag Name of a group address (number) via the logic engine. You can reference a C-bus Group Address when setting or getting by either tag name or by Group Address (Network, Application, Group Address). but there doesnt seem to be any documented way of refering a Group address back to its Tag name

    Eg looking for something like

    String := GetGroupTagName(Network, Application, GroupAddress)
     
    DrNick, Sep 5, 2005
    #1
  2. DrNick

    Charlie Crackle

    Joined:
    Aug 3, 2004
    Messages:
    815
    Likes Received:
    8
    Location:
    Melbourne
    I am interested to know why you would need to do this.....

    Charles
     
    Charlie Crackle, Sep 5, 2005
    #2
  3. DrNick

    PSC

    Joined:
    Aug 3, 2004
    Messages:
    626
    Likes Received:
    0
    Location:
    Brisbane, Australia

    When you are dealing with multiple networks & applications you don't know where your GA's reside...

    This has been raised with CIS & I beleive that a fix will be available soon. :cool:
     
    PSC, Sep 5, 2005
    #3
  4. DrNick

    Richo

    Joined:
    Jul 26, 2004
    Messages:
    1,257
    Likes Received:
    0
    Location:
    Adelaide
    I don't see the correlation between the request to retrieve tag names and your above statement.
     
    Richo, Sep 5, 2005
    #4
  5. DrNick

    PSC

    Joined:
    Aug 3, 2004
    Messages:
    626
    Likes Received:
    0
    Location:
    Brisbane, Australia
    I was referring to the fact that the string did not have enough information in it i.e. network, application etc. I have spoken to Darren and asked if it was possible show the GA as well as the Tag in the logic editor / reports.

    It was all part of the same request. :eek:
     
    Last edited by a moderator: Sep 6, 2005
    PSC, Sep 6, 2005
    #5
  6. DrNick

    Richo

    Joined:
    Jul 26, 2004
    Messages:
    1,257
    Likes Received:
    0
    Location:
    Adelaide
    Which string?
     
    Richo, Sep 6, 2005
    #6
  7. DrNick

    PSC

    Joined:
    Aug 3, 2004
    Messages:
    626
    Likes Received:
    0
    Location:
    Brisbane, Australia

    In the logic engine.
     
    PSC, Sep 6, 2005
    #7
  8. DrNick

    Richo

    Joined:
    Jul 26, 2004
    Messages:
    1,257
    Likes Received:
    0
    Location:
    Adelaide
    I'm not familar enough with the Logic Engine so you will have to spell it out for me Peter. The original request was for a function like:

    String := GetGroupTagName(Network, Application, GroupAddress)

    But then you refered to strings with not enough information. I'm confused as to which strings they are? Can you give me an example of what you are refering to?
     
    Richo, Sep 6, 2005
    #8
  9. DrNick

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    There are two completely unrelated conversations occurring here. Hopefully I can answer both.
    There are no functions to support this at the moment. It is on the to do list as a fairly low priority.
    There are two issues here. The first was regarding the use of functions like
    Code:
      GetCBusLevel("Local Network", "Lighting", Kitchen")
    instead of
    Code:
      GetLightingLevel("Kitchen")
    The latest version of the software has an option to control this.

    The second issue was related to displaying group addresses and tags in the logic report. The logic report contains a section at the end where the tags and numerical values are given together. This will have to suffice for the time being, as it is a lot of work to interleave the numerical value of groups into the logic report. We are trying to avoid the user of numerical values for group addresses whereever possible, as tags are so much easier to use. It can become an issue when you are integrating with other systems and you need to know the value of a group address.
     
    Darren, Sep 6, 2005
    #9
  10. DrNick

    Duncan

    Joined:
    Jul 23, 2004
    Messages:
    925
    Likes Received:
    0
    Location:
    Salinas de Garci Mendoza, Bolivia


    Perhaps as a short term hack those that need to see their numeric addresses could add them to the end of the Group Name as part of the string.. eg "Kitchen Lights (GA 243)"
     
    Duncan, Sep 6, 2005
    #10
  11. DrNick

    DrNick

    Joined:
    Aug 30, 2005
    Messages:
    5
    Likes Received:
    0
    Thanks Darren - Your right for some reason there was two completely different topics going on.

    Would be a nice feature though (for me anyway).

    The main reason I was looking for it was so I could be lazy - if I added or updated a tag name in toolkit I could let my code do the work for me as it is much easier to use arrays and for loops to get the status and then send/update relevant tag text than having to manually code tags back.

    Hopefully one day it will make it to the top of the pile.
     
    DrNick, Sep 6, 2005
    #11
  12. DrNick

    PSC

    Joined:
    Aug 3, 2004
    Messages:
    626
    Likes Received:
    0
    Location:
    Brisbane, Australia
    Yeah, thanks for clearing that up Darren; my misunderstanding. :confused:

    Duncan, shouldn't that read "Kitchen Lights (GA F3)" :D :D :D
     
    PSC, Sep 6, 2005
    #12
  13. DrNick

    Duncan

    Joined:
    Jul 23, 2004
    Messages:
    925
    Likes Received:
    0
    Location:
    Salinas de Garci Mendoza, Bolivia
    I'd suggest "Kitchen Lights (GA F1)" but that wont work in Toolkit :)
     
    Duncan, Sep 6, 2005
    #13
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.