<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Change shown visualizatoin from program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/db5c396ba4/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/db5c396ba4/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/db5c396ba4/</id><updated>2020-09-04T06:51:16.413000Z</updated><subtitle>Recent posts to Change shown visualizatoin from program</subtitle><entry><title>Change shown visualizatoin from program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/db5c396ba4/?limit=25#6406" rel="alternate"/><published>2020-09-04T06:51:16.413000Z</published><updated>2020-09-04T06:51:16.413000Z</updated><author><name>michaeljohansen</name><uri>https://forge.codesys.com/u/michaeljohansen/</uri></author><id>https://forge.codesys.com49ac598e140614217fcb006880e76ad96d4a205e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a class="user-mention" href="/u/mara/"&gt;@mara&lt;/a&gt;P well, thats is what i am doing, i just wonder if the order of the visualization when you pick in the visualization frame selection, is the same. like first visu = 0, secound = 1 ect. Or maybe it is possible to give each visu it's own index  &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Change shown visualizatoin from program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/db5c396ba4/?limit=25#dcac" rel="alternate"/><published>2020-09-04T04:05:45.730000Z</published><updated>2020-09-04T04:05:45.730000Z</updated><author><name>MaraP</name><uri>https://forge.codesys.com/u/marap/</uri></author><id>https://forge.codesys.comdffe39738c2c08d922cf28a4a1c8d788725d963d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I still would go with the frames and frame variables as Rudolf already suggested&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Change shown visualizatoin from program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/db5c396ba4/?limit=25#d270" rel="alternate"/><published>2020-09-03T09:23:15.574000Z</published><updated>2020-09-03T09:23:15.574000Z</updated><author><name>michaeljohansen</name><uri>https://forge.codesys.com/u/michaeljohansen/</uri></author><id>https://forge.codesys.combd573baa3a4bb2d1eb1cc2463a9f2ee0089a8810</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;where does the order  of the visualization appear or is it just the order in the selection window.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Change shown visualizatoin from program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/db5c396ba4/?limit=25#01d2" rel="alternate"/><published>2020-02-27T14:10:06.442000Z</published><updated>2020-02-27T14:10:06.442000Z</updated><author><name>alex87</name><uri>https://forge.codesys.com/u/alex87/</uri></author><id>https://forge.codesys.come509bf3933d21cc2c0533746d47960fdea6b1540</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hmm, there's a tiny issue with this solution: It doesn't work when you are online on PLC. Don't know why??? Anyway works perfect when in runtime .&lt;/p&gt;
&lt;p&gt;regards,&lt;br/&gt;
Alex&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Change shown visualizatoin from program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/db5c396ba4/?limit=25#f1fe" rel="alternate"/><published>2020-02-27T14:10:06.106000Z</published><updated>2020-02-27T14:10:06.106000Z</updated><author><name>alex87</name><uri>https://forge.codesys.com/u/alex87/</uri></author><id>https://forge.codesys.comaa88f2a09eb6927c526f2c708b91328f60ad03b5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanx Rudolf! And I also figured out how to switch main visualizations, &lt;/p&gt;
&lt;p&gt;Here's tiny example:&lt;/p&gt;
&lt;p&gt;/// Switch visualizations via program.&lt;br/&gt;
/// Important: This program must be called in the VISU_TASK&lt;br/&gt;
PROGRAM SwitchVisu&lt;br/&gt;
VAR&lt;br/&gt;
    pClient: POINTER TO VisuElems.VisuElemBase.VisuStructClientData; // Pointer to the client&lt;br/&gt;
    xSomething: BOOL;&lt;br/&gt;
END_VAR&lt;/p&gt;
&lt;p&gt;//program&lt;/p&gt;
&lt;p&gt;IF xSomething THEN&lt;br/&gt;
    VisuElems.VisuElemBase.g_VisuManager.SetMainVisu(pClient , 'Visualization_1');&lt;br/&gt;
END_IF&lt;/p&gt;
&lt;p&gt;IF xSomething=FALSE THEN&lt;br/&gt;
    VisuElems.VisuElemBase.g_VisuManager.SetMainVisu(pClient , 'Visualization');&lt;br/&gt;
END_IF&lt;/p&gt;
&lt;p&gt;regards,&lt;br/&gt;
Alex&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Change shown visualizatoin from program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/db5c396ba4/?limit=25#ec90" rel="alternate"/><published>2020-02-27T14:10:05.776000Z</published><updated>2020-02-27T14:10:05.776000Z</updated><author><name>RudolfAtITD</name><uri>https://forge.codesys.com/u/rudolfatitd/</uri></author><id>https://forge.codesys.com02e66b4533172793d865d69d59c210be7cf8ef5a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Alex,&lt;br/&gt;
if you have a couple of visualisations inside a Frame, they are numbered from 0 to n. With a related integer variable you can select one of the visualisations. The Name in the Frame properties is "Switch Frame".&lt;/p&gt;
&lt;p&gt;Original text from CODESYS help:&lt;br/&gt;
&lt;span style="color: 85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Change shown visualizatoin from program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/db5c396ba4/?limit=25#803e" rel="alternate"/><published>2020-02-27T14:10:04.800000Z</published><updated>2020-02-27T14:10:04.800000Z</updated><author><name>alex87</name><uri>https://forge.codesys.com/u/alex87/</uri></author><id>https://forge.codesys.com5e83574194bde931b5cf6c374e702985246e44fd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;Anybody knows how to change a shown visualization or frame within a program?  I tried:&lt;/p&gt;
&lt;p&gt;IF xSomething THEN&lt;br/&gt;
VisuElems.CURRENTVISU := 'Motor';&lt;br/&gt;
END_IF &lt;/p&gt;
&lt;p&gt;But doesn't works, seems that you can't assign value to VisuElems.CURRENTVISU variable.&lt;/p&gt;
&lt;p&gt;Works only for output,like:&lt;/p&gt;
&lt;p&gt;IF  VisuElems.CURRENTVISU = 'Motor' THEN&lt;br/&gt;
    xSomething:=TRUE;&lt;br/&gt;
END_IF&lt;/p&gt;
&lt;p&gt;regards, alex&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>