<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to ac_datalog causes runtime exception on RPi after a while</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/0b6d5d3d7f/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/0b6d5d3d7f/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/0b6d5d3d7f/</id><updated>2021-09-01T04:52:28.542000Z</updated><subtitle>Recent posts to ac_datalog causes runtime exception on RPi after a while</subtitle><entry><title>ac_datalog causes runtime exception on RPi after a while</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/0b6d5d3d7f/?limit=25#705d" rel="alternate"/><published>2021-09-01T04:52:28.542000Z</published><updated>2021-09-01T04:52:28.542000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com52a894a57328cfe171a810ea7802037a9ff73c8b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;not sure if exesive writng on SD card is a good idea - as first step I would write to a network drive if possible/available - usb harddisk is maybe an option too.&lt;br/&gt;
if this problem then still persists - should be investigated / debugged.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ac_datalog causes runtime exception on RPi after a while</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/0b6d5d3d7f/?limit=25#193f" rel="alternate"/><published>2021-08-27T17:06:58.452000Z</published><updated>2021-08-27T17:06:58.452000Z</updated><author><name>lingvo</name><uri>https://forge.codesys.com/u/lingvo/</uri></author><id>https://forge.codesys.com53db726494f788239f8385a9b446e3925fb79047</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Any suggestions anyone? &lt;/p&gt;
&lt;p&gt;I had to remove ac_datalog from the project as at this stage it is unsuitable for prolonged use and crashes the system after few tens of hours. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ac_datalog causes runtime exception on RPi after a while</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/0b6d5d3d7f/?limit=25#e368" rel="alternate"/><published>2021-08-22T06:10:50.523000Z</published><updated>2021-08-22T06:10:50.523000Z</updated><author><name>lingvo</name><uri>https://forge.codesys.com/u/lingvo/</uri></author><id>https://forge.codesys.comd18ceb04c0236e36403ff2d7b7b87b63c8e159a7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi there.&lt;br/&gt;
I'm using RPi 3 in my lab with Codesys licence (3.5.SP15) as a controller for a test stand. Sometimes this equipment runs 24/7 and it did it without any issues so far. Very good stability.&lt;/p&gt;
&lt;p&gt;But recently I wanted to add data logging capability to my system, so I have installed ac_datalog module through composer. I've created one datalog channel and added there my boolean variables (about 50 variables). My runtime runs at 2ms, but for datalogger I used 5ms. &lt;/p&gt;
&lt;p&gt;From the beginning it worked nice so far, the only problem was that Runtime crashed sometimes at start (probably it tried to write all vars into same cycle, and they change a lot at start), so I have reduced dataloghightask from 5 to 10ms. With this cycle rate runtime starts reliably. &lt;/p&gt;
&lt;p&gt;But here is a big problem - now my system runs only for a day or two and then crashes with exception. Attached is a screenshot of exception and log from device. It looks like there was a CRC error in datalog - with my number of vars the csv file grows relatively fast - at the moment of crash the csv file was about 3.8MB. &lt;/p&gt;
&lt;p&gt;Did it cause a crash? Why? Any hints how to avoid this problem?&lt;/p&gt;
&lt;p&gt;Would be very thankful for any help. I liked datalog feature, so would like to keep it.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>