<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Data Logging with Raspberry PI</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e9a6a44b07/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e9a6a44b07/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/e9a6a44b07/</id><updated>2020-10-10T23:34:56.825000Z</updated><subtitle>Recent posts to Data Logging with Raspberry PI</subtitle><entry><title>Data Logging with Raspberry PI</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e9a6a44b07/?limit=25#40a3" rel="alternate"/><published>2020-10-10T23:34:56.825000Z</published><updated>2020-10-10T23:34:56.825000Z</updated><author><name>mandeep0921</name><uri>https://forge.codesys.com/u/mandeep0921/</uri></author><id>https://forge.codesys.com3e32ded87f6da3a85ca7ba145e22e83fe5acc05d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am working with Pi and a IO module. The IO module send CAN messaged to my PI where i calculate different parameters with output as: BOOL, INT and REAL values. &lt;/p&gt;
&lt;p&gt;I want to store all this data and download or save it in raspberry PI ( my PI does not have SD card slot).&lt;/p&gt;
&lt;p&gt;Now, to log data I used CAA file library (3.5.14.0) in CFC format where I used file open, write, flush and close in a sequence. But it does not create the file in PI.&lt;/p&gt;
&lt;p&gt;I have seen the CAA examples but those are in structred text and I bit confused on how to use it with my current program therefore I am trying to use function blocks instead.&lt;/p&gt;
&lt;p&gt;Question&amp;gt;&amp;gt;&lt;br/&gt;
1&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Is this the write way to go and do logging?&lt;/p&gt;
&lt;p&gt;2&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; In order to store and write data are there any setting i must change in PI? things i must do to ensure files are written and read without issues?&lt;/p&gt;
&lt;p&gt;3&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; If my way is correct is there a particular way (file open,write, flush and close) should be put together? like it works in sync or something? ( Since i UNderstand that file must be first opened, written, flushed and then closed. But do i need to keep the xExecute of File.Write high the whole time, things like this I am curious if I am doing correct or not.&lt;/p&gt;
&lt;p&gt;My main objective is to get all those variables into a single or multiple files then be able to get it to PC. if there is other way i can try please propose it so i can research and work on it.&lt;/p&gt;
&lt;p&gt;Note: I have tried AC_datalog but very confused on how to use it despite reading all of datalogging threats. &lt;/p&gt;
&lt;p&gt;Thank you for your time and suggestions&lt;br/&gt;
Cheers&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>