Hello evrybody.
there is many post about the SysProcess library and particulary about the "Execute Command".
I 've follow some exemple read in this forum and it works fine on my Raspberry pi, but only the command which doesn't need to be execute in the graphic interface.
I explain :
First i adjust the CODESYSControl.cfg to
But doesn't work and then I try with other image viewer like Mirage, pqiv, ImageMagick but no success.
So I put this code (DISPLAY=:0 gpicview /home/pi/out.png) into a small shell script and I launch it from Codesys but it doesn't work.
Then I try to launch the shell script via ssh from Codesys but no success.
Any suggestions? (other than to learn how to insert images into the post)
;-)
I have a question:
Once the command is being executed, is there a way to kill it again?
As the called application is running in the background, the user can't close it but it shall be closed/terminated, commanded by codesys.
I have tried with "SysProcessTerminate" but I guess this is not correct as the RTE crashes when this function is called.
Hello evrybody.
there is many post about the SysProcess library and particulary about the "Execute Command".
I 've follow some exemple read in this forum and it works fine on my Raspberry pi, but only the command which doesn't need to be execute in the graphic interface.
I explain :
First i adjust the CODESYSControl.cfg to
If i try to excute :
it works fine
and if i try to excute :
nothing append
if run the command 'leafpad' in the rasbperry command terminal, it works.
So is it possible to execute command or program with graphic interface.
Thank you.
Hi,
if this is >=3.5SP11 there is the section for doing this in /etc/CODESYSControl_User.cfg
so move your setting/section from /etc/CODESYSControl.cfg to /etc/CODESYSControl_User.cfg
BR
Edwin
Hi Edwin.
I use the last one so : 3.5.12.20
I tried to move the setting
from /etc/CODESYSControl.cfg to /etc/CODESYSControl_User.cfg.
but same result.
it seems that the runtime process does not have the rights to execute graphical applicaton
Do we have a solution for that until now?
Same problem here...
which plc and which version?
Hi,
my PLC is Elsist SlimLine Raspberry Pi 3b+ with Codesys runtime V3.5.15.40
As first step I need to create a barcode with zint and this test code work fine:
https://forge.codesys.com/forge/talk/Engineering/thread/64904fac37/0f2e/attachment/BC-Generator.png
As second step I need to show the generated barcode on the HDMI display and I try with this code:
https://forge.codesys.com/forge/talk/Engineering/thread/64904fac37/0f2e/attachment/BC-Show.png
But doesn't work and then I try with other image viewer like Mirage, pqiv, ImageMagick but no success.
So I put this code (DISPLAY=:0 gpicview /home/pi/out.png) into a small shell script and I launch it from Codesys but it doesn't work.
Then I try to launch the shell script via ssh from Codesys but no success.
Any suggestions? (other than to learn how to insert images into the post)
;-)
Last edit: ferrim 2020-04-02
Hi,
we had a similar problem to execute VLC player, for us the solution was:
sudo -u pi DISPLAY=:0 vlc /home/pi/Videos/CODESYS.mp4
Thank you very much, your advice works fine!
Hi! Having hard times with SysProcessExecuteCommand.
Running on Raspberry, runtime 4.0.1.0
CODESYSControl_User.cfg
Executing any command returns zero. If add double quotes it returns 25 as a result and doing noting.
Hello,
I have a question:
Once the command is being executed, is there a way to kill it again?
As the called application is running in the background, the user can't close it but it shall be closed/terminated, commanded by codesys.
I have tried with "SysProcessTerminate" but I guess this is not correct as the RTE crashes when this function is called.
Starting the application:
Trying to stop it again:
Codesyscontrol Win x64, 3.5.19.10.
Many thanks for any advice pointing to the correct direction.. :-)
Regards,
Fabian