| Python API: ProgramStart does not change RunMode- Printable Version +- RoboDK Forum (//m.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN) +--- Forum: RoboDK bugs (//m.sinclairbody.com/forum/Forum-RoboDK-bugs) +--- Thread: Python API: ProgramStart does not change RunMode (/ Thread-Python-API-ProgramStart-does-not-change-RunMode) |
Python API: ProgramStart does not change RunMode-DavidG-01-29-2019 Hi, I found an unexpected behaviour using the ProgramStart method from the Python API. In the documentation for ProgramStart there is an example that says changing the run mode to RUNMODE_MAKE_ROBOTPROG would be redundant: //m.sinclairbody.com/doc/en/PythonAPI/robolink.html#robolink.Robolink.ProgramStart The annotations for setRunMode tell the same: //m.sinclairbody.com/doc/en/PythonAPI/robolink.html#robolink.Robolink.setRunMode I attached a python script that shows the run mode is not changed automatically. Looking into robolink.py ProgramStart indeed does not seem to change the run mode. So I guess either the function or the documentation should be revised. Please let me know if I am wrong here. Best regards David RE: Python API: ProgramStart does not change RunMode-Jeremy-02-01-2019 Hi David, Thanks for your post and sorry for the delay, we needed to take a good look at what you sent us. "Please let me know if I am wrong here." You are not wrong at all, you found a bug and we will fix that in the near future. That could take a few working day. Jeremy |