<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to change list of referenced visualizations of a frame by programm? (NOT how to switch vis!)</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/487430c3ff/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/487430c3ff/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/487430c3ff/</id><updated>2023-06-01T12:58:14.048000Z</updated><subtitle>Recent posts to How to change list of referenced visualizations of a frame by programm? (NOT how to switch vis!)</subtitle><entry><title>How to change list of referenced visualizations of a frame by programm? (NOT how to switch vis!)</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/487430c3ff/?limit=25#99e8/4f02" rel="alternate"/><published>2023-06-01T12:58:14.048000Z</published><updated>2023-06-01T12:58:14.048000Z</updated><author><name>sbt-277</name><uri>https://forge.codesys.com/u/sbt-277/</uri></author><id>https://forge.codesys.com4c9dc556f52a611dae87e6e97092bbb818386db5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Now, four years later... Is it now possible?&lt;/p&gt;
&lt;p&gt;I do need exactly this functionality - change the visualization reference at runtime.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to change list of referenced visualizations of a frame by programm? (NOT how to switch vis!)</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/487430c3ff/?limit=25#99e8" rel="alternate"/><published>2020-02-27T18:14:59.456000Z</published><updated>2020-02-27T18:14:59.456000Z</updated><author><name>mprestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.comf8c95d4cffb59e70961d27628adaee2a60249a79</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Victor,&lt;/p&gt;
&lt;p&gt;that is what I meant by saying that it is currently not support.&lt;/p&gt;
&lt;p&gt;Yes there are ways to change a reference but no way to get the different data to the reference.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to change list of referenced visualizations of a frame by programm? (NOT how to switch vis!)</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/487430c3ff/?limit=25#9609" rel="alternate"/><published>2020-02-27T18:14:56.382000Z</published><updated>2020-02-27T18:14:56.382000Z</updated><author><name>Victor Kulikov</name><uri>https://forge.codesys.com/u/victor-kulikov/</uri></author><id>https://forge.codesys.comff8057b7722e35528f0c3d9b3ec9abb4a43c860b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Let me try to explain my task.&lt;/p&gt;
&lt;p&gt;Imagine, I have 50 different types of entities, each entity is defined by FB and has corresponding visu.&lt;br/&gt;
I have hords of instances of such FBs, and I want to show about 16 visus attached to corresponding FBs on one screen. I don't want to configure 50+ references for each frame manually and want to do this programmatically.&lt;/p&gt;
&lt;p&gt;Now I have a technicue to open visus, but I lack the main thing: I need somehow to transfer different pointers or indexes of entities to visu opened in different frames.&lt;/p&gt;
&lt;p&gt;When I open same visu in 2 frames and try to change color, or something in one frame, it changes simultaneously in both frames. This is because actually it is 2 views of the same instance of visu. The only way I see, is to create more instances... I see, codesys creates a TYPE for each visu, and names it like: "TheNameOfMyVisu__vis". I believe, if I could instantiate this type in GVL or some POU, I could use those different instances of visu in different frames and then attach different data through their VAR's.&lt;/p&gt;
&lt;p&gt;The problem is I can't use "TheNameOfMyVisu__vis" type in geclaration. I suspect, the only problem here is "&lt;strong&gt;" in the name of type. It is somehow prohibited to write "&lt;/strong&gt;" in both declaration and program parts of ST editor. Any word which contains "__" gets red in editor. &lt;/p&gt;
&lt;p&gt;The only way further I see is to copy existing instance of visu several times and then attach copies to the frames....&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to change list of referenced visualizations of a frame by programm? (NOT how to switch vis!)</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/487430c3ff/?limit=25#6751" rel="alternate"/><published>2020-02-27T18:14:55.296000Z</published><updated>2020-02-27T18:14:55.296000Z</updated><author><name>Victor Kulikov</name><uri>https://forge.codesys.com/u/victor-kulikov/</uri></author><id>https://forge.codesys.com74e7c25016e1631063c20a8563005be702eadb9b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Marcel,&lt;/p&gt;
&lt;p&gt;Sure, here it is!&lt;/p&gt;
&lt;p&gt;I know it's hacky, but works. By the way, in this project on my installation, button in frame doesn't recover its unpressed look, but in the project for my PLC it works well.&lt;/p&gt;
&lt;p&gt;I know there is a risk it can behave not always as expected.&lt;/p&gt;
&lt;p&gt;If you are a developer or close to them, is there any chance you could provide any docs on internal structure of visual entities and how do they interact with eachother and other parts of the program?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Victor&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=4626" rel="nofollow"&gt;openVis.project &lt;span&gt;&lt;span&gt;[176.79 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to change list of referenced visualizations of a frame by programm? (NOT how to switch vis!)</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/487430c3ff/?limit=25#57e9" rel="alternate"/><published>2020-02-27T18:14:52.235000Z</published><updated>2020-02-27T18:14:52.235000Z</updated><author><name>mprestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.comb8849d17ed18a0e33adb502a272d0d5c57a44895</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Victor,&lt;/p&gt;
&lt;p&gt;wanna provide an example?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to change list of referenced visualizations of a frame by programm? (NOT how to switch vis!)</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/487430c3ff/?limit=25#6bf0" rel="alternate"/><published>2020-02-27T18:14:51.163000Z</published><updated>2020-02-27T18:14:51.163000Z</updated><author><name>Victor Kulikov</name><uri>https://forge.codesys.com/u/victor-kulikov/</uri></author><id>https://forge.codesys.com742c05d42fddfe87afe00ec23344dfa18fd67134</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;m.prestel hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
As I said it is currently not possible to dynamically register a visu for a frame when online.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Fortunately this is not true )&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://cloud.mail.ru/public/27oc/tY63pYioz" rel="nofollow"&gt;https://cloud.mail.ru/public/27oc/tY63pYioz&lt;/a&gt;&lt;br/&gt;
(wasn't able to attach video here)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to change list of referenced visualizations of a frame by programm? (NOT how to switch vis!)</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/487430c3ff/?limit=25#f899" rel="alternate"/><published>2020-02-27T18:14:48.099000Z</published><updated>2020-02-27T18:14:48.099000Z</updated><author><name>mprestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.com84119954c0e3da06d5270665e21b0cf4de90975b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Victor Kulikov hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Marcel, it would be nice if I could use the type "TheNameOfMyVisu__vis" in declaration part of POU, I think it would solve my problem, but because of "__" it gets red and doesn't compile.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I do not understand what you are trying to say.As I said it is currently not possible to dynamically register a visu for a frame when online.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to change list of referenced visualizations of a frame by programm? (NOT how to switch vis!)</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/487430c3ff/?limit=25#17ce" rel="alternate"/><published>2020-02-27T18:14:47.028000Z</published><updated>2020-02-27T18:14:47.028000Z</updated><author><name>Victor Kulikov</name><uri>https://forge.codesys.com/u/victor-kulikov/</uri></author><id>https://forge.codesys.comfe690245a417ad591d4d6d800cfb3f08e4e6a3b6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Marcel and selli69, thank you so much!&lt;/p&gt;
&lt;p&gt;Auto It, great! I use the similar things to automate what can't be automated, but with codesys I didn't loose hope yet...&lt;br/&gt;
Digging into the problem, I was able to show visu in empty frame from debug mode. And so, I believe it is possible to do this from program (working on it now).&lt;br/&gt;
The other problem I see here is following, when we manually configure References for frame, codesys generates instaces for each visu in each frame, and puts them to the instance of parent visu, if we don't configure References, we can programmatically (i believe) switch frame to instanse of existing visu, but there would be only one instance of that visu. Then it would be hard or impossible to show different data in the same visu which is displayed in different frames (this is my goal).&lt;/p&gt;
&lt;p&gt;Marcel, it would be nice if I could use the type "TheNameOfMyVisu__vis" in declaration part of POU, I think it would solve my problem, but because of "__" it gets red and doesn't compile.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to change list of referenced visualizations of a frame by programm? (NOT how to switch vis!)</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/487430c3ff/?limit=25#62ae" rel="alternate"/><published>2020-02-27T18:14:45.956000Z</published><updated>2020-02-27T18:14:45.956000Z</updated><author><name>selli69</name><uri>https://forge.codesys.com/u/selli69/</uri></author><id>https://forge.codesys.coma199bec16983ff215e91832cfb41a71c83aaaa4e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;@ Marcel: Thanks for clearing things up!&lt;/p&gt;
&lt;p&gt;@Victor: By now I use a bunch of Auto-It scripts to generate my frame structure by my demands.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to change list of referenced visualizations of a frame by programm? (NOT how to switch vis!)</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/487430c3ff/?limit=25#a564" rel="alternate"/><published>2020-02-27T18:14:42.903000Z</published><updated>2020-02-27T18:14:42.903000Z</updated><author><name>mprestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.comf95837caee51d00311013f38005ccc90d6562f35</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Victor and selli,&lt;/p&gt;
&lt;p&gt;it is currently not possible to dynamically register a visu for a frame.&lt;/p&gt;
&lt;p&gt;The interface you found is used to register an absolute path to a specific frame, which then will be used for the input action "switch frame visualization".&lt;/p&gt;
&lt;p&gt;Hope this clears up some confusion!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>