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

    Delete Archives

    REXYGEN Studio
    2
    8
    328
    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.
    • M
      MikeyH
      last edited by

      What is the easiest way to delete archives now?

      Also in the archives tab in DWM, it shows the time stamp as UTC, how do I change it to local or RTC. The arc block is set to RTC already, and RTC is set to local.

      625f797f-5923-468f-83fe-26ba3088d8c9-image.png

      2522b5cd-1978-47d7-a5d9-44c75ca0e442-image.png

      eeacbbbb-cb94-424b-a956-5e1051ddcd4d-image.png

      Cheers,
      Mike

      cechuratC 1 Reply Last reply Reply Quote 0
      • cechuratC
        cechurat @MikeyH
        last edited by cechurat

        @MikeyH Hi Mike,

        the deletion of archives is possible manually directly on the target device only - have a look at the old forum post: https://www.rexygen.com/oldforum/viewtopic.php@pid=481.html

        EDIT: There is a function block ACLEAR for deletion of the specified archive/s. When the archive is stored in RAM memory it is deleted completely with any mode settings.

        When using Disk Archive the behaviour of the mode parameter is as follows:
        1 = Delete today
        2 = Delete yesterday
        4 = Delete older records than yesterday
        (it can be combined bitwise: e.g. 3 = today + yesterday; 7 = entire archive)

        Cheers,
        Tomas

        M 1 Reply Last reply Reply Quote 0
        • M
          MikeyH @cechurat
          last edited by

          @cechurat Hi Tomas,

          This worked great, thank you.

          Any idea why the archive and export to csv shows UTC, not local or RTC?

          Cheers,
          Mike

          cechuratC 1 Reply Last reply Reply Quote 0
          • cechuratC
            cechurat @MikeyH
            last edited by

            @MikeyH Hi Mike,

            all the timestamps in REXYGEN are stored in UTC. REXYGEN Tools often use Local timezone and convert the timestamps to the Local time (e.g. System Log, DWM Archives, etc.). However export from Archives will be always in UTC.

            Cheers,
            Tomas

            M 1 Reply Last reply Reply Quote 0
            • M
              MikeyH @cechurat
              last edited by

              @cechurat Hi Tomas, ok that makes sense.

              When looking at ARC in Diagnostics, in Studio, it doesn't show all values. I wanted to use this to export the data as it's exported in local time.

              46f2c874-141c-41eb-a1b4-5122b40a1029-image.png

              Is this correct?

              When looking at the TRND block it shows all of them. Export in DWM also shows all of them.

              b8a36861-55d4-46a0-b3bb-80423d6a2666-image.png

              I'm looking for a way to export the archive with local/RTC not UTC time.

              Cheers,
              Mike

              cechuratC 1 Reply Last reply Reply Quote 0
              • cechuratC
                cechurat @MikeyH
                last edited by

                @MikeyH Hi Mike,

                which values are you missing? The archive viewer in Diagnostics should show all values stored in the archive. From your screenshot (first one) it seems to me that the values between 10:40 and 13:30 weren't stored for some reason (RexCore not running?).

                TRND block shows data stored after RexCore restart and to the maximum buffer length set in TRND configuration.

                Cheers, Tomas

                M 1 Reply Last reply Reply Quote 0
                • M
                  MikeyH @cechurat
                  last edited by MikeyH

                  @cechurat Hi Tomas,

                  In REX Arc I'm missing values 17-23, but the TRND block shows them ok. See same time stamps below.

                  77cb72b7-bddc-421f-9cde-5d312d388bd9-image.png

                  bd24911f-e279-4bfd-8e22-cca49c3d2e9f-image.png

                  The data is being stored via RTOV blocks and a TRNDV, oddly enough the missing values are from the 3rd RTOV block.
                  0aee533a-f748-457b-b165-83f07ab37803-image.png

                  Cheers,
                  Mike

                  cechuratC 1 Reply Last reply Reply Quote 0
                  • cechuratC
                    cechurat @MikeyH
                    last edited by

                    @MikeyH Hi Mike,

                    thanks for the report. It seems that the Archive viewer in Diagnostics is limited to the 16 signals.

                    I have prepared a Python script for converting the Archive timezone - find it attached.

                    How to use the script:

                    • export the REXYGEN archive using the RexArc command line utility. For details execute command RexArc --help
                    • put the exported file in the same directory as the Python conversion script
                    • run the conversion script using the following command: python archive_timezone_converter.py input.csv output.csv offset

                    Parameters meaning:

                    • input.csv - original file exported using RexArc
                    • output.csv - output file
                    • offset - The timezone offset to apply (in hours).

                    Script file: archive_timezone_converter.py

                    Let me know if it helps.

                    Cheers, Tomas

                    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.