<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to When Keyboard Key is in Hold, then Webvisu is extreme slow and latent </title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/b79f04e293/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/b79f04e293/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/b79f04e293/</id><updated>2023-09-20T06:40:11.503000Z</updated><subtitle>Recent posts to When Keyboard Key is in Hold, then Webvisu is extreme slow and latent </subtitle><entry><title>When Keyboard Key is in Hold, then Webvisu is extreme slow and latent </title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/b79f04e293/?limit=25#730f" rel="alternate"/><published>2023-09-20T06:40:11.503000Z</published><updated>2023-09-20T06:40:11.503000Z</updated><author><name>TimvH</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com51ffc2512087637daab3233058a847c332e638fd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm not really sure what you are trying to do, but maybe you are referring to using the CmpCharDevice library?&lt;/p&gt;
&lt;p&gt;When you "open" the connection to a device, you can pass flags. What helped me is to set the non-blocking flag.&lt;/p&gt;
&lt;p&gt;I'm not sure if this is what you are referring to, but maybe it helps:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;dFlags&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;DINT&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;CmpCharDevice&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;ACCESS_MODE&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;O_RDONLY&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;DINT&lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;4000&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c1"&gt;// see details for flags: http://linux.die.net/man/2/open, + DINT#4000 is for non-blocking&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nv"&gt;hDevice&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;CmpCharDevice&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;CDOpen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;szFilename&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;dFlags&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;Result&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</summary></entry><entry><title>When Keyboard Key is in Hold, then Webvisu is extreme slow and latent </title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/b79f04e293/?limit=25#5a14" rel="alternate"/><published>2023-09-05T20:24:27.292000Z</published><updated>2023-09-05T20:24:27.292000Z</updated><author><name>richard-wang</name><uri>https://forge.codesys.com/u/richard-wang/</uri></author><id>https://forge.codesys.comf96fe42ce61b94d6e4ab1d9142377937a07e06ea</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Tyro&lt;br/&gt;
Did you resove your problem? I have the same issue.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Richard&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>When Keyboard Key is in Hold, then Webvisu is extreme slow and latent </title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/b79f04e293/?limit=250#91e2" rel="alternate"/><published>2023-01-16T12:06:03.756000Z</published><updated>2023-01-16T12:06:03.756000Z</updated><author><name>Singh</name><uri>https://forge.codesys.com/u/baldeep/</uri></author><id>https://forge.codesys.com1243cf957f2cd569ab9b035680727f6b79d81de0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Everybody,&lt;/p&gt;
&lt;p&gt;i have a very special problem! &lt;/p&gt;
&lt;p&gt;The System is &lt;/p&gt;
&lt;p&gt;Rasperry Pi 4&lt;br/&gt;
Codesys MC for Raspberry 4.6 with Webvisu per Touchscreen.&lt;/p&gt;
&lt;p&gt;I am reading the Keyboard events with evdev for some other things. The problem is when a keyboard Key is on hold, Codesys Touch Screen reaction is extreme latent/slow. Though i can see in events log that the touch events are registered.&lt;br/&gt;
Any Help!&lt;br/&gt;
Regards&lt;br/&gt;
Singh&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>