<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Export data with the Trend API</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6443799485/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6443799485/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/6443799485/</id><updated>2024-07-08T11:12:56.924000Z</updated><subtitle>Recent posts to Export data with the Trend API</subtitle><entry><title>Export data with the Trend API</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6443799485/?limit=25#f445/8c89" rel="alternate"/><published>2024-07-08T11:12:56.924000Z</published><updated>2024-07-08T11:12:56.924000Z</updated><author><name>ria</name><uri>https://forge.codesys.com/u/disha/</uri></author><id>https://forge.codesys.com13f46b7d17c670f9e373d2292974d9da672ebb9a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Can you please share the code as i am the beginner for codesys. I don't have any idea that how sqlite is integrated with the codesys.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Export data with the Trend API</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6443799485/?limit=25#f445" rel="alternate"/><published>2020-10-03T11:24:58.174000Z</published><updated>2020-10-03T11:24:58.174000Z</updated><author><name>pruwetbe</name><uri>https://forge.codesys.com/u/pruwetbe/</uri></author><id>https://forge.codesys.com6ef270ab3454d07e196bdbf80130593c60943fd0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, &lt;br/&gt;
I understand now where my missing message were. i was answering at the starting message rather than the last...&lt;br/&gt;
So Datalog is working now.&lt;br/&gt;
I discovered that the HVAC library i am using has internally some logging group that must be configured but in a separate channel to avoid saving continuously all functions blocks parameters.&lt;br/&gt;
So i created a separate channel for logging these on event (change only) in a sqlite file&lt;br/&gt;
Also, for some reason i ignore, all parameters from my programs FB using HVAC FB from library where also logged without need to specify them individually.&lt;/p&gt;
&lt;p&gt;But even when saving on a predefined cyclic time, the csv file format is still the same (one line for each tag)&lt;br/&gt;
I join one extract file.&lt;br/&gt;
So i still need some query tools to reformat this file to a traditional CSV  graphing tools.&lt;br/&gt;
I can do this with some python script and it will be easier here because all tags have the same timestamp but if some body knows standard free tools for tracing from event log csv file, i would be so happy.&lt;/p&gt;
&lt;p&gt;Trace also allows to save data on CSV file but the data are also grouped tag by tag and i could not succeed in storing them from my codesys app running on RPI up to now.&lt;br/&gt;
The joined file was from Trace example project downloaded from forge shared project and running on control win.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Export data with the Trend API</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6443799485/?limit=25#014f" rel="alternate"/><published>2020-10-02T08:35:18.144000Z</published><updated>2020-10-02T08:35:18.144000Z</updated><author><name>pruwetbe</name><uri>https://forge.codesys.com/u/pruwetbe/</uri></author><id>https://forge.codesys.com342a2fdf25fb3ff4e939cc1872a5d36d5fbb1ca7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It is strange that our last message is not displayed here.&lt;br/&gt;
Anyway , thanks to your help , I finally catch where to add the ac datalog library ... &lt;br/&gt;
then did the module &lt;br/&gt;
Add the HMI display statistic&lt;br/&gt;
Search where to connect the HMI data...&lt;br/&gt;
Find a example project in a other conversation Here on datalog&lt;br/&gt;
Discovered how to generate the config using AC  that create the objects in the application and add program and tasks..&lt;br/&gt;
And finally got the datalog working...&lt;/p&gt;
&lt;p&gt;I also discovered that I can trigger a save of all data every x ms in the channel configuration so I hope that the data will be grouped in the CSV file on one line.&lt;/p&gt;
&lt;p&gt;I also finallly catch how the trend storage api is working but could not succeed in reading more than one the 3 data that are recorded...&lt;/p&gt;
&lt;p&gt;So It is a good progress...&lt;br/&gt;
Thanks for your help again&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Export data with the Trend API</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6443799485/?limit=25#69b6/f0c4" rel="alternate"/><published>2020-10-01T21:57:03.292000Z</published><updated>2020-10-01T21:57:03.292000Z</updated><author><name>Morberis</name><uri>https://forge.codesys.com/u/morberis/</uri></author><id>https://forge.codesys.com3a9d2a8f8ccb1db094148210652ffb8c890910ef</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ah. First add the ac_datalog library, then hit alt+2 to bring up the module window. After that add the datalog manager, datalog channel, then datalog storage. &lt;/p&gt;
&lt;p&gt;You pick which application it is being deployed to in the datalog manager under the deployment window.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Export data with the Trend API</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6443799485/?limit=25#69b6" rel="alternate"/><published>2020-10-01T21:51:04.108000Z</published><updated>2020-10-01T21:51:04.108000Z</updated><author><name>pruwetbe</name><uri>https://forge.codesys.com/u/pruwetbe/</uri></author><id>https://forge.codesys.com1262a06eeb33bde8ee9ead57a84cd57fb8ab9a52</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes but my problem was that more the way the data logged are saved.&lt;br/&gt;
The most standard CSV flat file have the tag name on the first line and then values for each tag on each line with time stamp as first colum&lt;br/&gt;
I will try to use the ac datalog but I need first to find how to add the application composer menu to be able to add the datalog in the device hierarchy &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Export data with the Trend API</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6443799485/?limit=25#2cca/2037" rel="alternate"/><published>2020-10-01T20:53:01.254000Z</published><updated>2020-10-01T20:53:01.254000Z</updated><author><name>Morberis</name><uri>https://forge.codesys.com/u/morberis/</uri></author><id>https://forge.codesys.com808c01a5d7a1772aa058999d8c99dba4fc7e1c3f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can set in the DatalogStorage_CSV module what symbol(,;: etc) indicates the start of a new column. When you import the CSV file into excel it asks what symbol indicates a column seperation. So if you pick that same symbol in both steps you'll get your data in multiple columns for easy graphing etc.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Export data with the Trend API</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6443799485/?limit=25#2cca" rel="alternate"/><published>2020-10-01T20:13:35.601000Z</published><updated>2020-10-01T20:13:35.601000Z</updated><author><name>pruwetbe</name><uri>https://forge.codesys.com/u/pruwetbe/</uri></author><id>https://forge.codesys.comb691e8385db32f2bfbac6c36af594c959ceba804</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;To plot on a computer...&lt;br/&gt;
There are plenty of tools to plot curve from CSV file where the first coutume is the time stamp and other column give value for each tag&lt;br/&gt;
Here the datalog create on line for each log with timestamp, value, tag, type, group... ... and the recording is based on deadband for analog value&lt;br/&gt;
I think I could probably find some solution with some python.&lt;br/&gt;
I will try this datalog soon.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Export data with the Trend API</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6443799485/?limit=25#bc69/dace" rel="alternate"/><published>2020-10-01T15:47:59.397000Z</published><updated>2020-10-01T15:47:59.397000Z</updated><author><name>Morberis</name><uri>https://forge.codesys.com/u/morberis/</uri></author><id>https://forge.codesys.comafe40cf3230e2785d7e1d43148b5e91565ff8223</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;For plotting it on the PLC or on a computer? &lt;/p&gt;
&lt;p&gt;It might be worth your time to talk to &lt;a class="" href="https://us.store.codesys.com/support-ticket-north-america.html" rel="nofollow"&gt;Codesys support&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Export data with the Trend API</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6443799485/?limit=25#bc69" rel="alternate"/><published>2020-10-01T06:45:21.685000Z</published><updated>2020-10-01T06:45:21.685000Z</updated><author><name>pruwetbe</name><uri>https://forge.codesys.com/u/pruwetbe/</uri></author><id>https://forge.codesys.com88d77de091a1dd649d4a47b263ca7353f684f076</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I checked the datalog manager... this is a nice flexible tool but I don’t know the standard  tools that can use such file for plotting some curve , I continue to investigate.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Export data with the Trend API</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6443799485/?limit=25#f745" rel="alternate"/><published>2020-10-01T06:27:43.706000Z</published><updated>2020-10-01T06:27:43.706000Z</updated><author><name>pruwetbe</name><uri>https://forge.codesys.com/u/pruwetbe/</uri></author><id>https://forge.codesys.com68f77716747863229f1eb9f5974e9861033dff83</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for your feedback.&lt;br/&gt;
I tested also the possibility to explore Sqllite file using a standard SQLite browser that has the export to CSV capacity.&lt;br/&gt;
This quite easy except that the format for logging floating point value in the SQLite is Dint .&lt;br/&gt;
The consequence is that the CSV file will be very big.&lt;br/&gt;
So I will check datalog manager capacity  in the next days.&lt;/p&gt;
&lt;p&gt;My idea would be in this case to log filtered value of my signals  with a longer sampling time.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>