<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Webvisu client connection monitoring</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/b12815b7cd/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/b12815b7cd/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/b12815b7cd/</id><updated>2024-09-10T07:56:36.604000Z</updated><subtitle>Recent posts to Webvisu client connection monitoring</subtitle><entry><title>Webvisu client connection monitoring</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/b12815b7cd/?limit=250#e317" rel="alternate"/><published>2024-09-10T07:56:36.604000Z</published><updated>2024-09-10T07:56:36.604000Z</updated><author><name>dkugler</name><uri>https://forge.codesys.com/u/dkugler/</uri></author><id>https://forge.codesys.com8bfa31e4eaef090c99071f328f88050464318470</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a href="https://forge.codesys.com/forge/talk/Visualization/thread/b12815b7cd/#877a"&gt;https://forge.codesys.com/forge/talk/Visualization/thread/b12815b7cd/#877a&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;there was a discussion about this thematic&lt;/p&gt;
&lt;p&gt;searching in the talk helps to learn from others...&lt;/p&gt;
&lt;p&gt;good luck, Dave&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Webvisu client connection monitoring</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/b12815b7cd/?limit=25&amp;page=2#618e/e29d" rel="alternate"/><published>2024-09-10T05:41:48.935000Z</published><updated>2024-09-10T05:41:48.935000Z</updated><author><name>docker</name><uri>https://forge.codesys.com/u/docker/</uri></author><id>https://forge.codesys.com5456924bcdf4e2dcb22e6d8262056c5409549daf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi mate,&lt;/p&gt;
&lt;p&gt;With this snippet i was able to see the lastusage variable count, but it would not iterate between clients? i was only able to access the data of the target visu.&lt;/p&gt;
&lt;p&gt;it threw an error with the array of pointers stating it was not able to convert etc. also when i tried it with the while loop it created an endless loop and crashed the program.&lt;/p&gt;
&lt;p&gt;any ideas? Thankyou&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Webvisu client connection monitoring</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/b12815b7cd/?limit=250#618e" rel="alternate"/><published>2024-09-09T13:43:29.912000Z</published><updated>2024-09-09T13:43:29.912000Z</updated><author><name>dkugler</name><uri>https://forge.codesys.com/u/dkugler/</uri></author><id>https://forge.codesys.com9f5fe73d6c96d837d05918921b8db9c1c807ad23</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;you can give this code snippet a try. It's extracted and simplyfied from my code:&lt;/p&gt;
&lt;p&gt;Install VisuElemBase  lib if not installed yet.&lt;/p&gt;
&lt;p&gt;Execute in visu task:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="kr"&gt;VAR&lt;/span&gt;
    &lt;span class="n"&gt;pClientData&lt;/span&gt;     &lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="kr"&gt;ARRAY&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;..&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="kr"&gt;OF&lt;/span&gt;  &lt;span class="kr"&gt;POINTER&lt;/span&gt; &lt;span class="kr"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;VisuElemBase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;VisuStructClientData&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;END_VAR&lt;/span&gt;

&lt;span class="n"&gt;VisuElemBase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;g_ClientManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;BeginIteration&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="n"&gt;pClientData&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;VisuElemBase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;g_ClientManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;GetNextClient&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;span class="kr"&gt;WHILE&lt;/span&gt; &lt;span class="n"&gt;pClientData&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="kr"&gt;DO&lt;/span&gt;
    &lt;span class="n"&gt;pClientData&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;pClientData&lt;/span&gt;&lt;span class="o"&gt;^&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;GlobalData&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;GlobalClientID&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;span class="n"&gt;pClientData&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;END_WHILE&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;You have to make shure every no longer updated pointers in the array have to be deleted and no longer used by your code!&lt;/p&gt;
&lt;p&gt;Usage of this pointer access at your own risk :-)&lt;/p&gt;
&lt;p&gt;Works with SP16. From SP17 and newer there will be warnigs etc. using this solution as I remember.&lt;br/&gt;
It will be great, if Codesys publishes a example or give a hint how to accesse this client values with the  VisuUtil lib or other future-proof way!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Webvisu client connection monitoring</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/b12815b7cd/?limit=25&amp;page=2#62f5/5ce0" rel="alternate"/><published>2024-09-09T06:08:59.310000Z</published><updated>2024-09-09T06:08:59.310000Z</updated><author><name>docker</name><uri>https://forge.codesys.com/u/docker/</uri></author><id>https://forge.codesys.com295fb5846956abec3cbf35db5fa7f1d68bac647d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;can you send me some code snippets of the declarations and code need i am unsure of how to set the pointer to the correct visu client.&lt;/p&gt;
&lt;p&gt;Thanks i appreciate your help.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Webvisu client connection monitoring</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/b12815b7cd/?limit=250#62f5" rel="alternate"/><published>2024-08-30T11:51:46.551000Z</published><updated>2024-08-30T11:51:46.551000Z</updated><author><name>dkugler</name><uri>https://forge.codesys.com/u/dkugler/</uri></author><id>https://forge.codesys.coma66e1e767de7a0b6b795c7b199b171da2e3c0422</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;is your pointer set to the correct visu client? set a breakpoint in your client iteration and step through the active visu clients like programming system, targetvisu, webvisu,... and check the last usage value of each client&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Webvisu client connection monitoring</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/b12815b7cd/?limit=25&amp;page=2#e3c6/4e00/5e80" rel="alternate"/><published>2024-08-26T23:16:39.734000Z</published><updated>2024-08-26T23:16:39.734000Z</updated><author><name>docker</name><uri>https://forge.codesys.com/u/docker/</uri></author><id>https://forge.codesys.comb37781844515f9da5aa6b80433a000522bf32e1d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for the reply,&lt;/p&gt;
&lt;p&gt;i am using codesys SP16 patch 5 as this is the version that is compatible with my IFM controller.&lt;/p&gt;
&lt;p&gt;i am accessing the lastusage variable from the VisuStructClientData structure through a pointer.&lt;/p&gt;
&lt;p&gt;when i log in it lists the time since last log in but does not continually count, it remains a static value which isnt useful.&lt;/p&gt;
&lt;p&gt;hopefully you can help. Thankyou&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Webvisu client connection monitoring</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/b12815b7cd/?limit=250#e3c6/4e00" rel="alternate"/><published>2024-08-26T09:56:24.063000Z</published><updated>2024-08-26T09:56:24.063000Z</updated><author><name>dkugler</name><uri>https://forge.codesys.com/u/dkugler/</uri></author><id>https://forge.codesys.com2b70d5b4d88835d7a3c5c03114469f16c27c8af4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;this thread is 4 years old. Without more information about your current Codesys Version, code snippets etc., it's not possible to help&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Webvisu client connection monitoring</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/b12815b7cd/?limit=25&amp;page=1#e3c6" rel="alternate"/><published>2024-08-26T08:26:48.900000Z</published><updated>2024-08-26T08:26:48.900000Z</updated><author><name>docker</name><uri>https://forge.codesys.com/u/docker/</uri></author><id>https://forge.codesys.com2b04c19031bb9a37de67691b790a5f71875178a5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, i am interested in this thread and have tried a couple of the above examples in to determine remote webvisu access.&lt;/p&gt;
&lt;p&gt;I am having trouble getting the lastusage variable to refresh during runtime? It seems to only log the last usage at initialisation and that is it? how do i gain ongoing access to the time variable as the code is running?&lt;/p&gt;
&lt;p&gt;Thankyou.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Webvisu client connection monitoring</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/b12815b7cd/?limit=25&amp;page=1#d7ac" rel="alternate"/><published>2020-06-15T14:38:26.028000Z</published><updated>2020-06-15T14:38:26.028000Z</updated><author><name>Chris.O</name><uri>https://forge.codesys.com/u/chris-o/</uri></author><id>https://forge.codesys.com53d25ed912f52b4c38840ba608b32081909a52b7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I don't know what exactly you do with your app...or if CoDeSys disconnect a Client...Try it!&lt;/p&gt;
&lt;p&gt;You can also reset your button after a defined time... but if everything is fine you have to press again...&lt;/p&gt;
&lt;p&gt;Sorry no other idea at the moment&lt;/p&gt;
&lt;p&gt;BR Chris&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Webvisu client connection monitoring</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/b12815b7cd/?limit=25&amp;page=1#7226" rel="alternate"/><published>2020-06-15T14:24:17.812000Z</published><updated>2020-06-15T14:24:17.812000Z</updated><author><name>dgirard</name><uri>https://forge.codesys.com/u/dgirard/</uri></author><id>https://forge.codesys.com77e7eaeee25dd360c5f42c24ff53a9a9b2a78131</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Will GVL.xVisuPageActive reset to false if the user navigates to another app on the tablet?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>