Datalogger RT
Hello,
I am trying to launch the example of the datalogger-rt.
I have installed the datalogger service and the database is not created.
I have updated the firmware to version 2009.6 but I still can't generate the database.
I think the code is same as the video tutorial but it doesn´t work.
Is the project source code available?
Regards,
Comments
Is there any way to know if the datalogget-rt service is running?
Hi aayesta,
the service is started automatically and you can check it in the /opt/plcnext/logsOutput.log by searching for "DataLogger" for any related message.
During the startup is the service manager starting up the DataLogger component:
Arp.System.Acf.Internal.Sm.ComponentsController INFO - Component 'Arp.Services.DataLogger' in process 'MainProcess' created.
After starting will the Datalogger try to subscribe to the configured ports and to create the database on the SD card.
If all that works fine you won't get any further indications, the db is updated and fine.
In case there are any problem during those steps you'll find log messages in the Output.log as well.
As an example here an entry where the configured port is not there (which is a very common one ?):
Arp.Services.DataLogger.Internal.Session WARN - Session FranksDB (foreground): Adding variable Arp.Plc.Eclr/Generator1.OPCUA_Int to returned: NoSuchVariable
If you like I can send you a small example via private mail...?
cu
Frank
Thank you Frank.
I have deleted all the comments from the configuration file and width the help of the log file ( and the help service in Asturias) I managed to make it work.
Regards
The datalogger is running.
I open the .db file and see the timestamp file with the value 5248710149128715204. How can I convert this value to a linux date time value?.
The date time in the PLC is correct.
Regards
Hi aayesta,
we are using currently the .Net DateTime structure .toBinary() which is quite useful for a high performance application.
To use this format it is the best to load the .db and to refactor the DateTime via .fromBinary into a C# or VB application.
In case this is not feasible you can add a time (as string or single int) variable into the datalogger.
As somekind of outlook we'll have in one of the next versions a switch were you can choose the format.
I hope this helps!
cu
Frank
Hello,
Have you tested record on change? Have you any example?
I tried to change the option "storeChangesOnly" in the data-logger.config but it didn't work.
Regards,
Samanta
Hi Samantha,
we've tested the record on change feature in depth, so it should work.
But what is exactly the issue? Is the database created, but just empty?
In that case keep in mind that the db is only written on the flash (sd-card) when the parameter bufferCapacity="500" is fulfilled.
Means that in this sample configuration 500 changes must be logged before the db is updated.
In one of the next versions we will add a second parameter to update the db also based on a time.
I hope this helped, if not please give me a few more details to understand what's going on...
Take care!
Frank
Hi frank,
Can you stop and start the logging from inside the PLCNext?
David de Roo
Hello David,