12-19-2022, 08:54 PM
In the attached station, the followingdoes notresult in the program being executed:
但以下(time.sleep(0.5))doesresult in the program being executed:
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'.
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()
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'.