Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Machining project Update followed immediately by RunCode doesn't work
#1
In the attached station, the followingdoes notresult in the program being executed:

Code:
from robodk import robolink

rdk = robolink.Robolink()
machining = rdk.Item("Path1 Settings")
program = rdk.Item("Path1")
machining.Update()
program.RunCode()

但以下(time.sleep(0.5))doesresult in the program being executed:
Code:
import time
from robodk import robolink

rdk = robolink.Robolink()
machining = rdk.Item("Path1 Settings")
program = rdk.Item("Path1")
machining.Update()
time.sleep(0.5)
program.RunCode()
It's not deterministic and depends on the amount of time between the Update and the RunCode. Note that Path1 is the generated program for the Path1 Settings machining project.

Please advise; how do I deterministically ensure that a program run following a machining project update always runs?

On macos. "About" menu item shows RoboDK v5.5.0.22337 but rdk.Version() shows '5.4.3.22337'.


Attached Files
.rdk update-run-code-example.rdk(Size: 3.4 MB / Downloads: 62)
#2
Thank you for your detailed report. We fixed this issue on 1 week ago on Windows. We'll update Mac and Linux versions before the end of the year.




Users browsing this thread:
1 Guest(s)