Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Python Script: timed out

#1
Hi, I am projecting a path I created using RoboDK's API onto a curved surface.
When I project the path onto a small area of the surface, it usually runs fine.
However, when I expand the path to be projected onto a larger area (where the curvature is more intense), I get a 'socket.timeout: timed out'.

The full Python output screen reads as:

Python script failed returning 1
Traceback (most recent call last):
File "(filename)", line 182 in
curve_points_proj = RDK.ProjectPoints(curve_points, objecgt_surface, ProjectionType)
File "(filename)", line 1837, in ProjectPoints
projected_points = self._rec_matrix() # will wait here
File "(filename)", line 949, in _rec_matrix
size1 = self._rec_int()
File "(filename)", line 903, in _rec_int
buffer = self.COM.recv(4)
socket.timeout: timed out

Python script output


I have already updated to the latest version of the software.
Any help is greatly appreciated, thank you
#2
Can you send us a sample project to reproduce this issue?

The timeout is probably happening because the projection takes more than 30 seconds. You could change the source of the robolink.py file to allow more time or make the projection in smaller chunks.
#3
(04-26-2021, 04:34 PM)Albert Wrote: Can you send us a sample project to reproduce this issue?

The timeout is probably happening because the projection takes more than 30 seconds. You could change the source of the robolink.py file to allow more time or make the projection in smaller chunks.

Hi Albert,

I timed how long it took before timing out and it was 30 seconds, so I am pretty sure that is the reason. How do I change the source of the robolink.py file? I prefer to increase the time that the program runs than projecting smaller chunks.

Thank you
  




Users browsing this thread:
1 Guest(s)