Run python script automaticly after halui on linuxcnc startup

More
3 years 1 month ago #280981 by cakeslob
are you running this as an axis usercommand file? I dont know what you are doing but you should still be able to connect to halui pins from a usercommand file

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago - 3 years 1 month ago #281016 by Donno
I could not use loadusr python3 myfile.py as linuxcnc through error, i think it is because i have delay Functions in my code.

I started linuxcnc and my script in /home/linuxcnc/.config/autostart <- created two desktop entry so it runs on startup

On my code i had to run it in terminal so my exec=xfce4-terminal -e "myfile.py"

I delay script by 10sec so linuxcnc axis gui can load correctly !
Last edit: 3 years 1 month ago by Donno.

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #281031 by cmorley
you didn't mention the acrual error so it's hard to know why loadusr python3 failed.
If it is because halui was not loaded yet, there is away to test for that.

Anyways glad u figured something out.

Please Log in or Create an account to join the conversation.

Time to create page: 0.045 seconds
Powered by Kunena Forum