<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Trend by Array</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b690e09992/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b690e09992/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b690e09992/</id><updated>2020-02-27T19:09:36.563000Z</updated><subtitle>Recent posts to Trend by Array</subtitle><entry><title>Trend by Array</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b690e09992/?limit=25#458d" rel="alternate"/><published>2020-02-27T19:09:36.563000Z</published><updated>2020-02-27T19:09:36.563000Z</updated><author><name>DeltaQ</name><uri>https://forge.codesys.com/u/deltaq/</uri></author><id>https://forge.codesys.com91b66e4dd291aa56065a2787909f317778d813fe</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I downloaded from Wago this Sample for FTP communication. &lt;br/&gt;
Check the trending windows, maybe they can help you.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=343" rel="nofollow"&gt;FTP Samples.rar &lt;span&gt;&lt;span&gt;[42.56 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Trend by Array</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b690e09992/?limit=25#39c6" rel="alternate"/><published>2020-02-27T19:09:33.169000Z</published><updated>2020-02-27T19:09:33.169000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com142858ff6b607b417d63994ec52bd780200c0f8c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;histogram is not fast enough for this.&lt;br/&gt;
your array idea is fine.&lt;br/&gt;
do not shift the array but only a pointer where the new data is placed.&lt;br/&gt;
For reading use another pointer and draw a line from previous to now pointon the screen.&lt;br/&gt;
put al points on screen, if a screen of 500 is used the points will overlap automatic.&lt;br/&gt;
your lib can only be used when the screen works with codesys.&lt;br/&gt;
otherwise you will have to make it via a webvisu, or program in your HMI.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Trend by Array</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b690e09992/?limit=25#a122" rel="alternate"/><published>2020-02-27T19:09:31.930000Z</published><updated>2020-02-27T19:09:31.930000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com80826a3949ab967ac1ca96fdc5fe261d39b93ef1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; federico.lettieri&lt;/p&gt;
&lt;p&gt;Hi to all&lt;br/&gt;
i'm trying to realize a x-t plot using values contained into an array. This array is filled by the plc that take samples using 1second time frame. The array have 1000elements. I try to reach my goal using an histogram item but there are two problems: the first problem is that handle an histogram with that number of elements is a little bit heavy for visualization, and often is impossible to go online cause there is a max number of watching variables. The second problem is that the histogram is unable to display 1000 vertical lines in a display with the resolution of 800x600 (i'm using a cross control system model ccp-xs 10,4");for this reason if i try to use an histogram associated with an array of 1000 elements the result is a plot with the 500th  element displayed near the end instead of displayed in the middle. I think that i can try to use the functions to draw lines in the SysLibTargetVisu.lib but reading the guide is not clear how to act. &lt;br/&gt;
I try to write some code like this:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;retVal&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;BeginPaint&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'a'&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="nt"&gt;4&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="nt"&gt;4&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="nt"&gt;256&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="nt"&gt;retVal&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;DrawButton&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;100&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="nt"&gt;100&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="nt"&gt;200&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="nt"&gt;200&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'a'&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="nt"&gt;65535&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="nt"&gt;FALSE&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="nt"&gt;TRUE&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="nt"&gt;retVal&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;EndPaint&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'a'&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="nt"&gt;4&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;and execute it by pressing a button but...no result.&lt;br/&gt;
How i can reach my goal?any suggestions?&lt;/p&gt;
&lt;p&gt;Federico&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>