<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Trace</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/6634ae2b15/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/6634ae2b15/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/6634ae2b15/</id><updated>2020-02-27T22:40:29.267000Z</updated><subtitle>Recent posts to Trace</subtitle><entry><title>Trace</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/6634ae2b15/?limit=25#6e94" rel="alternate"/><published>2020-02-27T22:40:29.267000Z</published><updated>2020-02-27T22:40:29.267000Z</updated><author><name>LeonL</name><uri>https://forge.codesys.com/u/leonl/</uri></author><id>https://forge.codesys.com5e84c59b3d074ef2fda671cdd07f0724dfa750ad</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yea, I ended up going with a ringbuffer. Thanks for the reply. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Trace</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/6634ae2b15/?limit=25#fa0d" rel="alternate"/><published>2020-02-27T22:40:24.794000Z</published><updated>2020-02-27T22:40:24.794000Z</updated><author><name>Rolf-Geisler</name><uri>https://forge.codesys.com/u/rolf-geisler/</uri></author><id>https://forge.codesys.com19a2dfc530db9ddcd57cc77e87b32b781ad340c8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm afraid the CoDeSys sampling trace will not work for that purpose.&lt;/p&gt;
&lt;p&gt;You need to store the wanted signals / values into a ring buffer, e.g. an array with a revolving index. Array members may be STRUCTs.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Rolf&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Trace</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/6634ae2b15/?limit=25#806c" rel="alternate"/><published>2020-02-27T22:40:23.051000Z</published><updated>2020-02-27T22:40:23.051000Z</updated><author><name>LeonL</name><uri>https://forge.codesys.com/u/leonl/</uri></author><id>https://forge.codesys.com8de68023c7bf8852bfe7d4c31da4b9e6148cc645</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is it possible to control the "Sampling Trace" from code rather than the GUI? For example I want the trace to always be runing and when a certain signal goes high it should write the content of the trace buffer to disk.&lt;/p&gt;
&lt;p&gt;What I'm looking for is a bit like a blackbox in an airplane, I want signal changes to be recorded and if something goes wrong (signaled by a incoming signal) it should save this so that the error can be traced. It should be automaticaly and not requier human intervention.&lt;/p&gt;
&lt;p&gt;Can I do this with the "Sampling Trace"? If not is there some other way I can implement this?&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Leon Ljunggren&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>