REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    Automatic keeping track of project revision

    REXYGEN Studio
    2
    7
    571
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      RexPeter
      last edited by

      Hi,
      Is there a possibility to automatically generate a time stamp + revision number at the moment you compile the project (and load it to the target?
      It is not complicated to generate a time stamp and revision number, but I'm looking for a more automatic method to differentiate when which revision was loaded.
      Especially when a project is in further development, it sometimes is difficult to know / check when and what revision was used.
      Adding a revision number manually and display it in the HMI is not a problem at all, but creating a "permanent" time stamp at the moment you compile the project is something I did not figure out yet.
      Any input is appreciated!

      Regards,
      Peter

      1 Reply Last reply Reply Quote 0
      • jaroslav_sobotaJ
        jaroslav_sobota
        last edited by

        Hi Peter,
        the timestamp is already in place. Just use Target->Identification from the menu when in Watch mode. You should get something like this:
        rexygen-target-identification.png

        The Title, Author, etc. is added using the INFO block which you add into the project main file.

        Hope this helps, let me know.

        Jaroslav

        R 1 Reply Last reply Reply Quote 0
        • R
          RexPeter @jaroslav_sobota
          last edited by

          Hi Jaroslav,

          Thanks for the feedback on this.
          Indeed that is there and when I'm connected to the target I would be able to see it.
          However if a unit is in the field, and the user in front ONLY has the User Interface, I would like the user to provide me the version (or Revision) of the project and the time stamp when I build / download it.
          So it should be in the User Interface (HMI).
          Is there a possibility to link a "string" of this identification screen into the HMI Designer screen?
          And specifically it would be nice if there was a feature to automatically update the Revision number (as well as text string) every time you rebuild (compile) the project. Manually changing the Revision number whenever you create a new one will work, but might be forgotten and than we might deal with 2 different versions that you are not aware off since it has the same "version" number...
          Maybe on the "wish list" if this does not exist yet?

          Best regards,
          Peter

          1 Reply Last reply Reply Quote 0
          • jaroslav_sobotaJ
            jaroslav_sobota
            last edited by jaroslav_sobota

            Hi Peter,
            build date can be read using the GETPS function block.

            Application version can be added using the CNA block and a CSV file in project folder. Still, you'll need an external "application release batch" which will generate the version number e.g. from SVN or GIT repository (number of commits). You'll run this batch manually prior to final Compile&Download.

            Both is shown in the attached project: rexygen-build-date-revision.zip (EDIT: see next post)

            The Description string from the INFO block is not reachable from the algorithm. (EDIT: see next post)

            Thanks for all the questions!

            Jaroslav

            1 Reply Last reply Reply Quote 0
            • jaroslav_sobotaJ
              jaroslav_sobota
              last edited by

              Hi Peter,
              I was wrong, sorry... Even the information from the INFO block can be reached from your algorithm.

              Here's the updated project: rexygen-build-date-revision.zip

              Jaroslav

              1 Reply Last reply Reply Quote 0
              • R
                RexPeter
                last edited by RexPeter

                Hi Jaroslav,

                Amazing, that are interesting blocks you used to achieve this.
                Thank you very much for this example, I 'm certainly will make use of that!

                PS: would it make sense to expand the INFO block with also a Revision field?
                f366db81-c10d-4305-bdfc-eb9acc044c39-image.png
                Software is in my point of view never "finished" and adding a revision number in the INFO block in that case also can be used in the HMI as a kind of "About" screen with all information about this application created.
                d504d6b5-eaad-4e27-b54c-141b4d42fb87-image.png

                Best regards,
                Peter

                jaroslav_sobotaJ 1 Reply Last reply Reply Quote 0
                • jaroslav_sobotaJ
                  jaroslav_sobota @RexPeter
                  last edited by

                  @RexPeter said in Automatic keeping track of project revision:

                  Software is in my point of view never "finished"

                  Tell us about it 😉

                  Your recommendation regarding revision identifier is in our pipeline. Since Monday already. Thanks!

                  Jaroslav

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

                  There is also an outdated REXYGEN community forum.

                  Powered by NodeBB.