AdvancedHMI Software
General Category => Support Questions => Topic started by: suparman on November 07, 2018, 09:06:39 PM
-
Hello,
I has been try the data BasicDatalogger2 but it seem not work what I want. I want to log the plc data daily.
I has been set the "CreateNewLogFileDaily" to true and after I run the project and the date has been change, my program not created new file.
When the new file created?
thank you
Suparman
-
What version of AdvancedHMI?
-
v3.99y Beta12
-
It looks like it has to reach MaximumPoints which doesn't seem logical
-
There are 2 properties: "CreateNewLogFileDaily" and "CreateNewLogFileAtMaxPoints".
Maybe suparman should post the screenshot of all the settings of his BasicDataLogger2, attach the first created log file and suggest if he is looking for log files in the correct location.
-
see my picture. In the logger data you can see the logger continued eventhough the date has been change.
-
The CreateNewLogFileDaily property, when set to True, should force inclusion of the date.
There might be a bug with the FileNameIncludesDate property, so set it to False as a test.
I might have time tomorrow to check this and give you some more info.
Out of curiosity, your screenshot shows 2 log files: mylog1-08-Nov-2018.log and mylog1-09-Nov-2018.log.
What settings you had when these were created?
-
"FileNameIncludesDate" property can't change to false if "CreateNewLogFileDaily" property set to true.
About my screen shoot please don't care about mylog1-08-Nov-2018.log file. It's just my test program previously.
-
Try using the attached modified BasicDataLogger2.vb component.
Download the attachment, right-click the "Components" folder inside the AdvancedHMIControls project, select Add/Existing Item, browse to the download location and double-click the file.
Do replace the existing stock component, close all the forms and rebuild the solution.
One line of code was added to the StoreValue() sub.
-
Yes it is running.
Thank you Godra. Maybe it can improve for next version.
regards
suparman