Data/ Event Logging Capability

Mehr
4 Monate 1 Woche her #436 von Daniel De Renzy
Hi, I am running LogiCad3 with Procon Web IoT on a Revolution Pi Core 3 (designers installed on windows PC, runtimes installed on Rev Pi). I am completely new to ST programming and was wondering what are some common methods for exporting data to either a text file or SQLite database.

Basically whenever an event is triggered I would like to export the date, time, event type, and sensor readings for access later and use with excel.

I have tried reading through the logicad help and found the system_open and system_write functions which can be used for creating, opening, and write data bytes to a file. This could work but I'm not sure how to convert strings and dt data into a byte array

Any help you can provide would be greatly appreciated.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
4 Monate 2 Tage her #441 von Walter Zögernitz
Hello Daniel,


a basic implementation how to log into a file can be found within this topic:
www.logicals.com/de/support/forum/st-edi...new-line-in-file#440

For creating your own style of logging entrys you only need to convert the single informations (date, time, event, variable values,...) into a string and write it down to the log file.


kind regards
Walter

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

logi.cals Österreich

Adresse

Europaplatz 7/1,
3100 St. Pölten

logi.cals Deutschland

Adresse

Postfach 1306,
40738 Langenfeld

Benutzer

Registrieren
© 1987 - 2019 logi.cals GmbH