<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Record discrete changes in a variable with a trace</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/5dfb639b5f/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/5dfb639b5f/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/5dfb639b5f/</id><updated>2020-03-12T09:13:20.270000Z</updated><subtitle>Recent posts to Record discrete changes in a variable with a trace</subtitle><entry><title>Record discrete changes in a variable with a trace</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/5dfb639b5f/?limit=25#1496" rel="alternate"/><published>2020-03-12T09:13:20.270000Z</published><updated>2020-03-12T09:13:20.270000Z</updated><author><name>appling</name><uri>https://forge.codesys.com/u/appling/</uri></author><id>https://forge.codesys.comf996902b80032014377e1879b63dbcaa05583b22</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everyone!&lt;br/&gt;
Basically my question is: Is it possible to have a trace element plot discrete changes in a variable (only one point per record)?&lt;/p&gt;
&lt;p&gt;I want to record and plot a variable that changes after a certain trigger event happens.&lt;br/&gt;
So far I have tried setting up a trace element for this. Unfortunately, even if I configure the trigger (with a rising flank) and set the option "post trigger samples" to 1, still more then one data point is plotted on the visualization.&lt;/p&gt;
&lt;p&gt;The desired behavior would be, that only one point is plotted in the trace element for every time the trigger has a rising flank.&lt;/p&gt;
&lt;p&gt;What I have tried so far: I have realized that the trace fills up the predefined buffer no matter what kind of trigger options I configure. As the buffer size is not freely definable I have put the trace into an extra task with a high cycle time (&amp;gt;1s) so that only one data point can be recorded. Unfortunately, this is not a good workaround, as the frequency of recordings will change depending on the monitored process and the task time cannot be set via a variable.&lt;br/&gt;
I cannot use the x-y diagram on the target device, as its version is on 3.5.7.10&lt;/p&gt;
&lt;p&gt;I also should add that I am using the trace element in the "normal" visualization. I am not using the trace object that can be added to the application tree - to be honest, I do not know how to add that object to any user visualization. &lt;/p&gt;
&lt;p&gt;Do you have any ideas on how to make this work?&lt;br/&gt;
I hope the screenshots will help illustrate my problem.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>