Delete Archives
-
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.
Cheers,
Mike -
@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 -
@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 -
@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 -
@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.
Is this correct?
When looking at the TRND block it shows all of them. Export in DWM also shows all of them.
I'm looking for a way to export the archive with local/RTC not UTC time.
Cheers,
Mike -
@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
-
@cechurat Hi Tomas,
In REX Arc I'm missing values 17-23, but the TRND block shows them ok. See same time stamps below.
The data is being stored via RTOV blocks and a TRNDV, oddly enough the missing values are from the 3rd RTOV block.
Cheers,
Mike -
@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
- export the REXYGEN archive using the RexArc command line utility. For details execute command