<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Raspberry PI 2 play AUDIO</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/93ebadabfb/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/93ebadabfb/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/93ebadabfb/</id><updated>2021-08-05T15:10:31.841000Z</updated><subtitle>Recent posts to Raspberry PI 2 play AUDIO</subtitle><entry><title>Raspberry PI 2 play AUDIO</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/93ebadabfb/?limit=25#7c38" rel="alternate"/><published>2021-08-05T15:10:31.841000Z</published><updated>2021-08-05T15:10:31.841000Z</updated><author><name>toatan-th</name><uri>https://forge.codesys.com/u/toatan-th/</uri></author><id>https://forge.codesys.comaa468ed9a5a7503b8ecc7c6dff15c3fa0084599c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;how to change sound file&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry PI 2 play AUDIO</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/93ebadabfb/?limit=25#38b0" rel="alternate"/><published>2021-08-05T15:10:26.372000Z</published><updated>2021-08-05T15:10:26.372000Z</updated><author><name>toatan-th</name><uri>https://forge.codesys.com/u/toatan-th/</uri></author><id>https://forge.codesys.com20e7a1d11a2938f7fd1cf3c99460dfd74fe3cdd4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;how to change sound file&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry PI 2 play AUDIO</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/93ebadabfb/?limit=25#fc0a/5999" rel="alternate"/><published>2020-08-27T14:31:19.196000Z</published><updated>2020-08-27T14:31:19.196000Z</updated><author><name>Morberis</name><uri>https://forge.codesys.com/u/morberis/</uri></author><id>https://forge.codesys.comcfac6780d0ae6d187142b265709d19b458654d4d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The &lt;a class="user-mention" href="/u/eschwellinger/"&gt;@eschwellinger&lt;/a&gt; linked to one I believe, &lt;a class="" href="https://forge.codesys.com/forge/talk/Runtime/thread/04361f89ec/?page=1&amp;amp;limit=25#dc32"&gt;here's the link&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry PI 2 play AUDIO</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/93ebadabfb/?limit=25#fc0a" rel="alternate"/><published>2020-08-27T04:57:26.961000Z</published><updated>2020-08-27T04:57:26.961000Z</updated><author><name>toatan-th</name><uri>https://forge.codesys.com/u/toatan-th/</uri></author><id>https://forge.codesys.com7a2a4a9e7a01c0f26b8762274c3f346db1f797f5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Someone can give sample project for Raspi play audio.&lt;br/&gt;
Thank you&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry PI 2 play AUDIO</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/93ebadabfb/?limit=25#7512" rel="alternate"/><published>2020-02-27T15:57:14.583000Z</published><updated>2020-02-27T15:57:14.583000Z</updated><author><name>Nira</name><uri>https://forge.codesys.com/u/nira/</uri></author><id>https://forge.codesys.com8d98a715ccfd21fefebc1b2a314d23b9a6a7f208</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you dor your replay, very helpfull.&lt;br/&gt;
Let me start from the beginning.&lt;br/&gt;
I open a new project &amp;gt; standard project &amp;gt; PLC PRG in LD &amp;gt; Add library's SysProcess and SysTypes 2 Interfaces.&lt;br/&gt;
Add POU &amp;gt; Funktion block &amp;gt; in open in ST &amp;gt; Then add the code like in the screenshot&lt;/p&gt;
&lt;p&gt;Make a prg like in the screenshot.&lt;/p&gt;
&lt;p&gt;Add the file in the device like in the screenshot.&lt;/p&gt;
&lt;p&gt;Buils the program with no fault.&lt;/p&gt;
&lt;p&gt;If i put the software in simulation and build te program i get a fault like in the screenshot.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: fault.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4550"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: no fault.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4549"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: add sound file.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4547"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: prg.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4546"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ST.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4545"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Pou.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4544"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry PI 2 play AUDIO</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/93ebadabfb/?limit=25#0132" rel="alternate"/><published>2020-02-27T15:57:12.405000Z</published><updated>2020-02-27T15:57:12.405000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comb7e50affe4fa53d2616abb6e39f55c6e1a820f4e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
to play sound:&lt;br/&gt;
 l &lt;a class="" href="https://forum.codesys.com/viewtopic.php?f=23&amp;amp;t=6247&amp;amp;x=22144&amp;amp;p=22144&amp;amp;lan=en" rel="nofollow"&gt;viewtopic.php?f=23&amp;amp;t=6247&amp;amp;p=22144#p22144&lt;/a&gt; l &lt;/p&gt;
&lt;p&gt;another example is playing Sound on the webvisu Client also intresting&lt;br/&gt;
 l &lt;a class="" href="https://forum.codesys.com/viewtopic.php?f=23&amp;amp;t=6247&amp;amp;x=22144&amp;amp;p=23781&amp;amp;lan=en" rel="nofollow"&gt;viewtopic.php?f=23&amp;amp;t=6247&amp;amp;p=22144#p23781&lt;/a&gt; l &lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry PI 2 play AUDIO</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/93ebadabfb/?limit=25#7c13" rel="alternate"/><published>2020-02-27T15:57:11.648000Z</published><updated>2020-02-27T15:57:11.648000Z</updated><author><name>Nira</name><uri>https://forge.codesys.com/u/nira/</uri></author><id>https://forge.codesys.com53dc758e899b27245a6648598ce0c8a395a1c241</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;is there someone who can explain me how to play an audio file in Codesys through LD.&lt;br/&gt;
I have added a file (.WAV) with Filezilla, or it is also possible to add a audio file in Codesys by right-clicking on application and add file.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: add.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4523"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Sysprocess.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4522"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Library Manager.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4521"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Filezilla.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4520"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Codeys.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4519"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry PI 2 play AUDIO</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/93ebadabfb/?limit=25#98b8" rel="alternate"/><published>2020-02-27T15:57:10.877000Z</published><updated>2020-02-27T15:57:10.877000Z</updated><author><name>agustinomg</name><uri>https://forge.codesys.com/u/agustinomg/</uri></author><id>https://forge.codesys.comb6787cf9f4546a1fa43a867f9334c793c63422df</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I also have the same error RTS_IEC_RESULT Module not found, does anyone knows how to solve this problem.&lt;/p&gt;
&lt;p&gt;Thank you best regards&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry PI 2 play AUDIO</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/93ebadabfb/?limit=25#ff42" rel="alternate"/><published>2020-02-27T15:57:08.485000Z</published><updated>2020-02-27T15:57:08.485000Z</updated><author><name>hiright</name><uri>https://forge.codesys.com/u/hiright/</uri></author><id>https://forge.codesys.com0b6de304bfcb4c76a02999fe4822ec4b57392785</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Edit: I got it working. Now that I have an account I can see the screenshot mentioned above.  Just an addition, I had to click on the "display advanced libraries" in the Add Library window. &lt;/p&gt;
&lt;p&gt;I am interested in getting this code to work on my Raspberry Pi 3 using CODESYS V3.5 SP10 P2 +. I have SysTypes Interfaces (3.5.2.0) and SysProcess (3.5.7.0) installed. I'm very new to CODESYS and Raspberry Pi. &lt;/p&gt;
&lt;p&gt;In declaring the variable cmdResult, there is an error "Identifier 'RTS_EIC_result' not defined". I also tried &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;cmdResult&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;POINTER&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;RTS_IEC_result&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;but I get the same error. &lt;/p&gt;
&lt;p&gt;Also, regarding the SysProcess&lt;strong&gt;&lt;em&gt;ExecuteCommand (minus the &lt;/em&gt;&lt;/strong&gt;) I have the same "Identifier not defined" error. Is there an "Import" that I'm missing?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;jvondrus hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hello:&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry PI 2 play AUDIO</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/93ebadabfb/?limit=25#563d" rel="alternate"/><published>2020-02-27T15:57:07.586000Z</published><updated>2020-02-27T15:57:07.586000Z</updated><author><name>mike197678</name><uri>https://forge.codesys.com/u/mike197678/</uri></author><id>https://forge.codesys.com3e9a6f3fb62da194be84955b1e031a81c2bb0292</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am currently testing a video file with:&lt;/p&gt;
&lt;p&gt;Video_1: STRING: = 'sudo omxplayer -o both /home/pi/media/test.mp4';&lt;/p&gt;
&lt;p&gt;The file is also played via the "omxplayer".&lt;br/&gt;
Works perfect,&lt;br/&gt;
But how can I finish playing that prematurely?&lt;/p&gt;
&lt;p&gt;In the terminal I press "q"&lt;/p&gt;
&lt;p&gt;is that possible?&lt;/p&gt;
&lt;p&gt;Thank you very much&lt;br/&gt;
mfg mike&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>