RoboDK Forum
Python脚本:timed out- Printable Version

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: Python Script: timed out (/Thread-Python-Script-timed-out)



Python脚本:timed out-vgogo-04-22-2021

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脚本失败返回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


RE: Python Script: timed out-Albert-04-26-2021

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.


RE: Python Script: timed out-vgogo-04-26-2021

(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