Hi,
I have set the option in the output file options to midnight is 2400.
But i still get my daily file with timestamp from today instead of yesterday.
Is it ok to set the datainterval like this to have the timestamp from yesterday?:
Datainterval (-1,1,Day,10)
I see the actual dat file with daily data is showing the timestamp ok.
Today is 6th november, the dat file is showing 2019-11-05 24:00:00.......etc.
So thats ok, but i dont onderstand why its showing a timestamp from today in rtmc pro graphs...
Im still strugling with this problem.
Ive made some printscreens to make things clear.
As you can see ive set it up like which i think it should work, but it doesnt.
In the rtmc pro table display you can see the timestamps , the newest from 3 january (today) , but should be from 2 january....
You can see ive set the output file options to Midnight is 2400.
And part of my crbasic code showing the datainterval set to 1 day.
What have is set up wrong or am i doing wrong?
Cheers.
https://imgshare.io/image/Hq6T5
RTMC is using the local time format of your computer, and your computer reports midnight as 00:00 of the next day. That is the international standard way to display midnight.
The solution in RTMC Pro is to apply a -1 second time offset to your data. Use a time format that only shows the date, and no one will notice that midnight is now 23:59:59. You can make those changes in the properties of the table.
Ok thanks.
Maybe i can set my pc to show Midnight as 2400...?
Do you mean i have to make changes in the crbasic table or in the setup screen or in the rtmc time series chart properties?
I have a table with datainterval "day" and "month".
Cheers.
Do you mean like so?
DataInterval(86399,86400,Sec)
Thats daily data, but how can i achieve that with monthly datatable?
Cheers.
Could this be a proper solution?
For daily table: DataInterval(-1,1,Day,10)
For monthly table: DataInterval(-1,1,Month,10)
...i think the - has to be removed from Tintoint...
I get skipped scans with -1.
If the issue is just the display in RTMC, you do not need to change your datalogger program at all. In your RTMC project, you can apply a time offset in the tables.
Yes, ive tried that, but with a table display (In rtmc pro, insert new, trends, table display) where ive set the time offset to -1, it takes ages to set the desired custom range in the report range properties. It sometimes freeze Loggernet and have to force Loggernet to quit and restart it.
Cheers.
Would it be an idea to have a time offset option in the report range function so it correspond with the time offset set in the table display?
Ive found this example but i dont know how to use it for a daily table...:
If Time_DayOfMonth = 1 AND IfTime(0,1,Day) Then
Call Table 1
Cheers.