<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Can I build a small GUI application with CODESYS and Python</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d81f54c3cb/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d81f54c3cb/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/d81f54c3cb/</id><updated>2022-07-12T00:04:13.484000Z</updated><subtitle>Recent posts to Can I build a small GUI application with CODESYS and Python</subtitle><entry><title>Can I build a small GUI application with CODESYS and Python</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d81f54c3cb/?limit=25#16c4" rel="alternate"/><published>2022-07-12T00:04:13.484000Z</published><updated>2022-07-12T00:04:13.484000Z</updated><author><name>nothinrandom</name><uri>https://forge.codesys.com/u/nothinrandom/</uri></author><id>https://forge.codesys.com7034006dbbb5665f57a1dc696da02f867d2934af</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You could possibly write the value(s) out to a CSV file and have your python code run it.  You can execute python via Sysprocess.SysProcessExecuteCommand.  So when you click this button, write values out to a file, and also execute python code that you can read back in the result to be displayed on the screen or something.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Can I build a small GUI application with CODESYS and Python</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d81f54c3cb/?limit=25#1e72" rel="alternate"/><published>2022-07-01T07:12:23.403000Z</published><updated>2022-07-01T07:12:23.403000Z</updated><author><name>paulpotat</name><uri>https://forge.codesys.com/u/paulpotat/</uri></author><id>https://forge.codesys.com5aa607cedd8e7b3906bf3e9330a98b512aaff32d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br/&gt;
One solution to make CodeSys and Python to exchange data could be to use a Shared Memory (see &lt;a class="" href="https://forge.codesys.com/prj/codesys-example/opencv-example2/code/HEAD/tarball"&gt;this example&lt;/a&gt;).&lt;br/&gt;
This allows you to dedicate a space in the memory where both Codesys and Python are able to read/write.&lt;br/&gt;
You can also use the OPCUA functionnality of CodeSys to Exchange data if you want, but I have not tried it yet.&lt;/p&gt;
&lt;p&gt;However if you just use CodeSys for building the interface I think it would be easier to go full python.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;br/&gt;
BR&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Can I build a small GUI application with CODESYS and Python</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d81f54c3cb/?limit=25#6bd5" rel="alternate"/><published>2022-06-30T09:35:01.892000Z</published><updated>2022-06-30T09:35:01.892000Z</updated><author><name>ramas</name><uri>https://forge.codesys.com/u/ramas/</uri></author><id>https://forge.codesys.com492ff174e64bd1cc7e3e4eb3ae39617584abe075</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello all,&lt;/p&gt;
&lt;p&gt;I want to create an application: a testing application which checks a DUT for anomalies for example: the python script checks if the DUT has the proper Serial number etc.&lt;/p&gt;
&lt;p&gt;I want to use Codesys visualization manager to build the GUI and I want to use python to run the tests on the DUT.&lt;br/&gt;
In the end, imagine a GUI done with codesys but when a button is clicked a Python script is run which run the Tests.&lt;br/&gt;
All of this will be run on a Raspberry pi through the Raspberrypi MC SL runtime for codesys.&lt;br/&gt;
Could someone please tell me if sucha  thing has been done or if it is doable or if it takes way too much time and if i should use PyQT or Tkinter python GUI libraries to make the GUI.&lt;/p&gt;
&lt;p&gt;Any suggestion and help is greatly appreciated&lt;/p&gt;
&lt;p&gt;Viele Grüße&lt;br/&gt;
Sebastian Herrman&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>