Ankündigung

Einklappen
Keine Ankündigung bisher.

HomeServer, writing logic modules

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    HomeServer, writing logic modules

    Hi,

    Where can I learn more about writing logic modules ?

    I searched here and in the other forum, just found somebody else with the same question, but no clue.

    I'm using HS2-Doku-Logiksprache.pdf which is fine, but I found it to be more of a description than a learning tool.

    Thank you for your pointers.

    #2
    http://www.python.org/

    - Study of existing logic modules

    - HS2-Doku-Logiksprache.pdf

    Thats all - learning by doing.

    Once you have "checked" the system behind, it is quite easy - within the limitations.
    Gruß Matthias
    EIB übersetzt meine Frau mit "Ehepaar Ist Beschäftigt"
    - PN nur für PERSÖNLICHES!

    Kommentar


      #3
      Hi Matthias,
      I already checked it before posting, and found it of no help in the particular instance of the HS logic modules
      Zitat von MatthiasS Beitrag anzeigen
      - Study of existing logic modules
      Yes, that's what I'm doing right now, but it will take ages before getting something usefull, hence the request for eventually unpublished / seldom used documents.
      Zitat von MatthiasS Beitrag anzeigen
      - HS2-Doku-Logiksprache.pdf
      Yes sure, as I said, it's more a description than a tutorial
      Zitat von MatthiasS Beitrag anzeigen
      Once you have "checked" the system behind, it is quite easy - within the limitations.
      I trust you. For an expert, everything is easy.

      What about the debugging tools ? anything like "step", "step into", trace tools. How can I see intermediate values ? So far, I can just see that it doesn't work, and the Debug List doesn't help very much.

      imho, the logic modules didn't land by accident in the HS. Someone has designed it and implemented it. So somehow, somewhere, the information does exist. If it is not made public, well, it is a decision.

      Early days enthusiasm is going away.

      Kommentar


        #4
        Zitat von Warichet Beitrag anzeigen
        What about the debugging tools ? anything like "step", "step into", trace tools. How can I see intermediate values ? So far, I can just see that it doesn't work, and the Debug List doesn't help very much.

        imho, the logic modules didn't land by accident in the HS. Someone has designed it and implemented it. So somehow, somewhere, the information does exist. If it is not made public, well, it is a decision.

        Early days enthusiasm is going away.
        There are no debugging tools until now.

        The logic system was designed by dacom, and in the beginning (for many years) they did not think about opening it to the users.

        So, believe it or not - there is absolutely no additinal information.

        And in the end - it is not necessary. You have all the information to write your own modules. You already noticed the the large number of developers? They all do it by hand - just with the knowledge of Python and with the knowledge of HS's logic module notation.

        Tell me what you need, I'll write it :-)
        Gruß Matthias
        EIB übersetzt meine Frau mit "Ehepaar Ist Beschäftigt"
        - PN nur für PERSÖNLICHES!

        Kommentar


          #5
          Zitat von Warichet Beitrag anzeigen
          What about the debugging tools ? anything like "step", "step into", trace tools. How can I see intermediate values ? So far, I can just see that it doesn't work, and the Debug List doesn't help very much.
          There is no debugging tool available. I was in progress to implement one in my syntax checker but there are reasons why I have abandoned that.

          imho, the logic modules didn't land by accident in the HS. Someone has designed it and implemented it. So somehow, somewhere, the information does exist. If it is not made public, well, it is a decision.
          No, the documentation is available: The pdf you have. There is no need for any more documentation. All you need to know is how to write an python expression.

          Basically each code line is something like

          [ IF <condition> THEN ] [ <var|output>=value ; ] [ Time=<time> ; ] [ exit() ; ]

          where evey part between bracket can be omitted.

          Early days enthusiasm is going away.
          You are a bit negative here

          Kommentar


            #6
            Zitat von MatthiasS Beitrag anzeigen
            There are no debugging tools until now.
            Zitat von MatthiasS Beitrag anzeigen
            there is absolutely no additinal information.
            Zitat von MatthiasS Beitrag anzeigen
            You already noticed the the large number of developers?
            Sure enough.
            I also noticed that they are all native german speaking, hence, no language barrier. (heck, it makes the learning a bit easyer)

            Zitat von MatthiasS Beitrag anzeigen
            Tell me what you need, I'll write it :-)
            Thank you very much Matthias, your offer is highly appreciated, but I can't accept it.
            I'm supposed to be a computer specialist, (although not a developper, but I've written many scripts), so, either I make this thing work or the HS will fly.

            Kommentar


              #7
              Hi Gaston,

              Zitat von Gaston Beitrag anzeigen
              There is no need for any more documentation.
              Oh well, some more didactic examples wouldn't hurt.

              Zitat von Gaston Beitrag anzeigen
              Basically each code line is something like

              [ IF <condition> THEN ] [ <var|output>=value ; ] [ Time=<time> ; ] [ exit() ; ]
              OK, I already realized this.
              I ran into troubles while tackling the details of the formula. But, as has been said, it's a question of experience.

              Zitat von Gaston Beitrag anzeigen
              You are a bit negative here
              Oh well, yes.
              After checking the same line for 2 days, yes.
              imho, the most annoying part is that there is no aid in the troubleshooting. You change a parameter of the formula line, reboot, try again, just to see that it doesn't work.
              Same player shoot again

              Thank you for your comments.

              Kommentar


                #8
                HS2-Doku-Logiksprache.pdf

                Hi, where can I get a copy of HS2-Doku-Logiksprache.pdf can someone upload please.

                Thanks

                Kommentar


                  #9
                  Zitat von kjohannessen Beitrag anzeigen
                  Hi, where can I get a copy of HS2-Doku-Logiksprache.pdf can someone upload please.

                  Thanks
                  Do you mean this one?
                  Es grüßt der Alex!

                  Kommentar


                    #10
                    HS2-Doku-Logiksprache.pdf

                    Thank you!

                    Kommentar


                      #11
                      Several non-native german speakers in Belgium that write their own logic...

                      We use an online python interpreter to test our 'formules'. We use logic quite a lot for creating interfaces with ip/rs232 devices and then need to convert/split incoming strings/streams.

                      Try Python: Interactive Python Tutorial in the Browser

                      Using the online interpreter no need to restart hs.

                      Once you get the hang of it, it will be quite easy and very productive. So don't give up to fast.

                      Although I have to admit that some additional info/documented examples would be nice. I also have to admit that we haven't been able to decypher the correct usage of the timer-functions.

                      If you have any specific questions feel free to post them, I'm sure there is sufficient skill online the get you started

                      Good luck.
                      kris
                      If

                      Kommentar

                      Lädt...
                      X