- LinuxCNC
- General LinuxCNC Questions
- method 'poll' of 'linuxcnc.stat' objects> returned NULL without setting an excep
method 'poll' of 'linuxcnc.stat' objects> returned NULL without setting an excep
- nauman
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 0
07 Dec 2023 05:57 - 07 Dec 2023 05:58 #287414
by nauman
method 'poll' of 'linuxcnc.stat' objects> returned NULL without setting an excep was created 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.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23279
- Thank you received: 4933
09 Dec 2023 18:20 #287701
by andypugh
Replied by andypugh on topic method 'poll' of 'linuxcnc.stat' objects> returned NULL without setting an excep
Is this in Docker, as you mentioned earlier?
Please Log in or Create an account to join the conversation.
- nauman
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 0
14 Apr 2024 05:29 #298219
by nauman
Replied by nauman on topic method 'poll' of 'linuxcnc.stat' objects> returned NULL without setting an excep
I am running this application in host not in docker.
Please Log in or Create an account to join the conversation.
- LinuxCNC
- General LinuxCNC Questions
- method 'poll' of 'linuxcnc.stat' objects> returned NULL without setting an excep
Time to create page: 0.047 seconds