-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python oword freezes UI #2967
Comments
Python time.sleep() is a blocking call and all processing stops until it times out.
|
But this python context is gcode(motion controller), the GUI should no be affected.as it's a different python Interpreter. |
what GUI are you using? |
Thanks Chris, I didn't know that the gcode was executed with a different python instance. |
Well I may he miss understanding. I don't see in thr docs where an oword sub can be made in python. |
And I just looked as well and could not find anything about an oword sub in python. AFAIK only M100-199 can be in a programming language. |
Running Axis sim and creating the file and running the oword command I get: |
Well, you probably can run Python as an O-word sub, but it's not well documented. This works as a subroutine....
|
hello, thanks for your responses calling python from gcode sub also has the same issue
while this works
|
this seems to be a very obscure and unsafe feature.
I suspect the GUIs block at status update (ngc-interpreter is occupied in python and doesn't answer). |
Hello
python OWORD freezes UI
Here are the steps I follow to reproduce the issue:
This was tested on axis
oword.py
file with this contento<test_sleep> call [10]
This is what I expected to happen:
The UI to begin responsive while OWORD is waiting
This is what happened instead:
The UI gets stuck until sleep ends and is not possible to interact with any element
I`m not sure if this is an issue or its normal
Thanks
The text was updated successfully, but these errors were encountered: