Data/ Event Logging Capability

5 Monate 2 Wochen 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.

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

a basic implementation how to log into a file can be found within this topic:

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

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

logi.cals Österreich


Europaplatz 7/1,
3100 St. Pölten

logi.cals Deutschland


Postfach 1306,
40738 Langenfeld


© 1987 - 2019 logi.cals GmbH