<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to TREND FILE RECORDING MANAGMENT</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/8138fd6880/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/8138fd6880/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/8138fd6880/</id><updated>2020-10-20T12:37:08.981000Z</updated><subtitle>Recent posts to TREND FILE RECORDING MANAGMENT</subtitle><entry><title>TREND FILE RECORDING MANAGMENT</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/8138fd6880/?limit=25#fccc" rel="alternate"/><published>2020-10-20T12:37:08.981000Z</published><updated>2020-10-20T12:37:08.981000Z</updated><author><name>jeromebunel</name><uri>https://forge.codesys.com/u/jeromebunel/</uri></author><id>https://forge.codesys.come61b204c8217af9368501ad6511e7fdae705dc68</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello. I found a solution to my "STORAGE TREND" problem.&lt;br/&gt;
In the "Trend Storage" dialog box, I use the "No limit" option.&lt;br/&gt;
Then I regularly delete the oldest data from the SQLite database with an SQL query executed by a Python script.&lt;/p&gt;
&lt;p&gt;I share with you this request:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="k"&gt;Delete&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;TblTrendData&lt;/span&gt; &lt;span class="k"&gt;where&lt;/span&gt;
&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="k"&gt;select&lt;/span&gt;
    &lt;span class="nb"&gt;date&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;TS&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1000000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'unixepoch'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;dt&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;dt&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;date&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'now'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'- 30 days'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;This is how I delete data older than 30 days.&lt;/p&gt;
&lt;p&gt;before executing this request; it is imperative to stop the recordings by setting to 0 "Record Conditions" variable&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>TREND FILE RECORDING MANAGMENT</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/8138fd6880/?limit=25#b635" rel="alternate"/><published>2020-10-16T12:52:26.546000Z</published><updated>2020-10-16T12:52:26.546000Z</updated><author><name>jeromebunel</name><uri>https://forge.codesys.com/u/jeromebunel/</uri></author><id>https://forge.codesys.coma60df31737c7e949d57fddf6682cbc7bb744a7c2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello.&lt;br/&gt;
I'm surprised no one reacted to my previous post.&lt;/p&gt;
&lt;p&gt;Maybe I explained badly.&lt;/p&gt;
&lt;p&gt;So,&lt;br/&gt;
For the storage of the trend, there are three possibilities of file management:&lt;/p&gt;
&lt;p&gt;1) no limit&lt;br/&gt;
2) limited file size&lt;br/&gt;
3) limited in number of registrations.&lt;/p&gt;
&lt;p&gt;In case 2, what happens when the file is full?&lt;/p&gt;
&lt;p&gt;In case 3, what happens when the maximum number of records is reached?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>TREND FILE RECORDING MANAGMENT</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/8138fd6880/?limit=25#3afd" rel="alternate"/><published>2020-10-16T12:52:23.526000Z</published><updated>2020-10-16T12:52:23.526000Z</updated><author><name>jeromebunel</name><uri>https://forge.codesys.com/u/jeromebunel/</uri></author><id>https://forge.codesys.come0bb9b991fdd78a723cd7f69d83b010455b879a5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello.&lt;br/&gt;
I'm surprised no one reacted to my previous post.&lt;/p&gt;
&lt;p&gt;Maybe I explained badly.&lt;/p&gt;
&lt;p&gt;So,&lt;br/&gt;
For the storage of the trend, there are three possibilities of file management:&lt;/p&gt;
&lt;p&gt;1) no limit&lt;br/&gt;
2) limited file size&lt;br/&gt;
3) limited in number of registrations.&lt;/p&gt;
&lt;p&gt;In case 2, what happens when the file is full?&lt;/p&gt;
&lt;p&gt;In case 3, what happens when the maximum number of records is reached?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>TREND FILE RECORDING MANAGMENT</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/8138fd6880/?limit=25#0e7b" rel="alternate"/><published>2020-10-15T13:27:38.429000Z</published><updated>2020-10-15T13:27:38.429000Z</updated><author><name>jeromebunel</name><uri>https://forge.codesys.com/u/jeromebunel/</uri></author><id>https://forge.codesys.com0ab555169468bb5195840b305c7ab054d8af4ba7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello to all.&lt;/p&gt;
&lt;p&gt;My question concerns the management of the trend curve files recording.&lt;/p&gt;
&lt;p&gt;1) no limit&lt;br/&gt;
2) limited in file size&lt;br/&gt;
3) limited in number of registrations.&lt;/p&gt;
&lt;p&gt;I thought that once the limit is reached (file size or number of recordings), the recording will continue as a circular buffer. That is, the oldest data is replaced by the most recent data.&lt;br/&gt;
But it seems not. I notice that the SQLlite file is no longer refreshed.&lt;/p&gt;
&lt;p&gt;How do you deal with this problem?&lt;/p&gt;
&lt;p&gt;Is it possible to operate as a circular buffer&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Jerôme Bunel.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>