<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Codesys visualizations in custom library</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/f127b9780b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/f127b9780b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/f127b9780b/</id><updated>2020-08-10T05:20:14.118000Z</updated><subtitle>Recent posts to Codesys visualizations in custom library</subtitle><entry><title>Codesys visualizations in custom library</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/f127b9780b/?limit=25#0921" rel="alternate"/><published>2020-08-10T05:20:14.118000Z</published><updated>2020-08-10T05:20:14.118000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.com76f4183a54dde0da6d5e52ff8a16ff1ebbf7c714</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello &lt;a class="user-mention" href="/u/maartengoris/"&gt;@maartengoris&lt;/a&gt;,&lt;br/&gt;
have you added the library to your application library manager?&lt;br/&gt;
Then every visualization should be visible in the frame element.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys visualizations in custom library</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/f127b9780b/?limit=25#c345" rel="alternate"/><published>2020-08-07T14:31:55.206000Z</published><updated>2020-08-07T14:31:55.206000Z</updated><author><name>maartengoris</name><uri>https://forge.codesys.com/u/maartengoris/</uri></author><id>https://forge.codesys.comf17f2192c716f40f4da2531f5d037562008a2ae2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have the same problem here,  &lt;/p&gt;
&lt;p&gt;he visualization shall lie in the library, as each instance of the function block shall have a corresponding visualization.&lt;/p&gt;
&lt;p&gt;I also think this a goo approach, the visu element is in the same lib as the function block,&lt;br/&gt;
But i cannot add the visualisation in my project, they are not listed in the available visualisation elements.&lt;/p&gt;
&lt;p&gt;Any idea how i can select them?&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys visualizations in custom library</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/f127b9780b/?limit=25#670f" rel="alternate"/><published>2020-02-27T18:09:56.397000Z</published><updated>2020-02-27T18:09:56.397000Z</updated><author><name>Comingback4u</name><uri>https://forge.codesys.com/u/comingback4u/</uri></author><id>https://forge.codesys.comd51a4900b40579960de79eeca96103a83c982926</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You need to create an instance of that function block. You do this by creating a variable like: fb_MyFunctionBlock : MyFunctionBlock somewhere in your program (POU/GVL).&lt;/p&gt;
&lt;p&gt;Then you can access the input variables by doing: fb_MyFunctionBlock.inHMI.booleanvariable&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys visualizations in custom library</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/f127b9780b/?limit=25#1f57" rel="alternate"/><published>2020-02-27T18:09:55.271000Z</published><updated>2020-02-27T18:09:55.271000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com1f85e5b5cb91ce8d921a6b37537375dbccffdbc0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; benjaminjorgensen&lt;/p&gt;
&lt;p&gt;Hello. I am creating a codesys.library that will consist of a function block. The function block shall be ran on several devices in one single project. In the library I have a struct of HMI tags (inputs to function block) that will be triggered from a codesys webvisu. The visualization shall lie in the library, as each instance of the function block shall have a corresponding visualization.&lt;/p&gt;
&lt;p&gt;ie.&lt;br/&gt;
STRUCT MyFunctionBlockInHMI&lt;/p&gt;
&lt;p&gt;FUNCTION_BLOCK MyFunctionBlock&lt;br/&gt;
VAR_INPUT&lt;br/&gt;
    inHMI               :   MyFunctionBlockInHMI;&lt;br/&gt;
END_VAR&lt;/p&gt;
&lt;p&gt;Now how do I proceed to map the structs tags to the buttons variable field in my visualization?&lt;br/&gt;
I tried mapping the buttons with ie. "MyFunctionBlock.inHMI.booleanvariable."&lt;br/&gt;
I then imported the library into a test project, called an instance of the function block in my main task, and added a webvisu of the type contained in my library. I get errors associated to the tags mapped to the visu buttons, saying that the function block need to be instantiated.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>