<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Calling methods from visualisation</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/012deb67fb/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/012deb67fb/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/012deb67fb/</id><updated>2020-02-27T18:21:54.218000Z</updated><subtitle>Recent posts to Calling methods from visualisation</subtitle><entry><title>Calling methods from visualisation</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/012deb67fb/?limit=25#485d" rel="alternate"/><published>2020-02-27T18:21:54.218000Z</published><updated>2020-02-27T18:21:54.218000Z</updated><author><name>rmoudy</name><uri>https://forge.codesys.com/u/rmoudy/</uri></author><id>https://forge.codesys.com0d52c4f6121176b443c13b2f8a5f4e8a67161ab2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Comingback4u hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Have you tried pressing CTRL + ENTER for a new line? This has always worked for me.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;No, I wasn't aware that CTRL + ENTER is for entering new lines for the 'Execute ST Code'. Thanks for the tip!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Calling methods from visualisation</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/012deb67fb/?limit=25#9e4d" rel="alternate"/><published>2020-02-27T18:21:53.108000Z</published><updated>2020-02-27T18:21:53.108000Z</updated><author><name>Comingback4u</name><uri>https://forge.codesys.com/u/comingback4u/</uri></author><id>https://forge.codesys.com04432d22ee60d8005fbf560855d831ec5eb7a9f1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;rmoudy hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Quick note about the Execute ST Code for input configuration, you can't press enter for a new line without exiting the input configuration. I recommend copying and pasting the code you want to put in there as a way to compensate for this bug.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Have you tried pressing CTRL + ENTER for a new line? This has always worked for me.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Calling methods from visualisation</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/012deb67fb/?limit=25#0253" rel="alternate"/><published>2020-02-27T18:21:49.991000Z</published><updated>2020-02-27T18:21:49.991000Z</updated><author><name>rmoudy</name><uri>https://forge.codesys.com/u/rmoudy/</uri></author><id>https://forge.codesys.com0247ff6c4cbb4e3de7cbcebaa8c82626ed5829f7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm assuming you are trying to assign your text variable a value?&lt;/p&gt;
&lt;p&gt;If you are, you need to set-up your text variable as a global variable and then put '%s' for strings or '%5.2f' for numbers in the Text property. The properties section is found in the visualization. &lt;/p&gt;
&lt;p&gt;Then in the Execute ST Code put something like 'Text_Variable:="STRING";' If you are trying to call a method whenever the text box is clicked, you need to write something like 'ClassObject.Method();' in order to call methods from function blocks inside the Execute ST Code command. &lt;/p&gt;
&lt;p&gt;Quick note about the Execute ST Code for input configuration, you can't press enter for a new line without exiting the input configuration. I recommend copying and pasting the code you want to put in there as a way to compensate for this bug.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Calling methods from visualisation</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/012deb67fb/?limit=25#48f6" rel="alternate"/><published>2020-02-27T18:21:48.885000Z</published><updated>2020-02-27T18:21:48.885000Z</updated><author><name>rickj</name><uri>https://forge.codesys.com/u/rickj/</uri></author><id>https://forge.codesys.come4470dec30f78ccd4bd7df11c5e545ecf2d7d2d6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When I tried this I got the following error:&lt;/p&gt;
&lt;p&gt;"The input action Execute ST-Code has statements which are no assignments. This feature is only supported for the target visualization."&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Calling methods from visualisation</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/012deb67fb/?limit=25#5363" rel="alternate"/><published>2020-02-27T18:21:47.768000Z</published><updated>2020-02-27T18:21:47.768000Z</updated><author><name>yannickasselin1</name><uri>https://forge.codesys.com/u/yannickasselin1/</uri></author><id>https://forge.codesys.com4818ac46133739296e1fca8e14d2d37f39ec9244</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes I tried and could not make it work.&lt;/p&gt;
&lt;p&gt;Maybe I did it wrong. Is it supposed to work?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Calling methods from visualisation</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/012deb67fb/?limit=25#ef19" rel="alternate"/><published>2020-02-27T18:21:44.648000Z</published><updated>2020-02-27T18:21:44.648000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com19d7a7148b65dde8304b1e5476f8251b8e6ced02</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;have you tried the execute ST-Code option?&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ExecuteStCode.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1949"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Calling methods from visualisation</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/012deb67fb/?limit=25#3639" rel="alternate"/><published>2020-02-27T18:21:43.548000Z</published><updated>2020-02-27T18:21:43.548000Z</updated><author><name>yannickasselin1</name><uri>https://forge.codesys.com/u/yannickasselin1/</uri></author><id>https://forge.codesys.comb27134b09bcd59122152a34dcec479d027052041</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Calling methods from visualisation</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/012deb67fb/?limit=25#e056" rel="alternate"/><published>2020-02-27T18:21:40.422000Z</published><updated>2020-02-27T18:21:40.422000Z</updated><author><name>yannickasselin1</name><uri>https://forge.codesys.com/u/yannickasselin1/</uri></author><id>https://forge.codesys.comb07ace179bc490038d12e357530b2f0af7481ec2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;Is it possible to call a method from a visualisation?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>