- 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
06 Dec 2023 23:57 - 06 Dec 2023 23: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: 06 Dec 2023 23:58 by nauman.
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 19917
- Thank you received: 4663
09 Dec 2023 12: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 00: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.070 seconds