method 'poll' of 'linuxcnc.stat' objects> returned NULL without setting an excep

More
07 Dec 2023 05:57 - 07 Dec 2023 05:58 #287414 by nauman
import time
import linuxcnc

i = 0
s = linuxcnc.stat()
while i < 3:
  try:
    r = s.poll()
    print('homed=', getattr(s, 'homed'))
    c = linuxcnc.command()
    c.abort()
    c.mode(linuxcnc.MODE_MANUAL)
    c.wait_complete()
    c.home(i)
  except Exception as detail:
    print("Error:", detail)
  i += 1
  time.sleep(2)  # Wait for 2 second
Last edit: 07 Dec 2023 05:58 by nauman.

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

More
09 Dec 2023 18:20 #287701 by andypugh
Is this in Docker, as you mentioned earlier?

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

More
14 Apr 2024 05:29 #298219 by nauman
I am running this application in host not in docker.

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

Time to create page: 0.092 seconds
Powered by Kunena Forum