03-14-2019, 05:51 PM
Hi,
I have generated a program using a python script and I would now like to run it on the robot.
To do that, I am using
and excecute the program with
which does not seem to work. I also tried RunProgram, both options work fine for RunMode=1 but not for RunMode=6. With RunMode=6 nothing happens at all.
I checked if setRunMode is actually working by putting
directly after setRunMode() and it seems to be fine. What seems odd to me is that, when I check the settings directly in RoboDK (see attachment RoboDK_01), the option 'Run on robot' is not active.
The other way round, if I activate 'Run on robot' (see attachment RoboDK_02) manually in RoboDK and then use a script to start the program, it is excecuted on the real robot as it is supposed to.
I am not sure what is wrong. Is RunMode=6 not equivalent to 'Run on robot' and I am therefore using it the wrong way or is it maybe a bug?
(In the latter case, please feel free to move the thread to the bug section)
Please let me know if I left anything unclear.
I have generated a program using a python script and I would now like to run it on the robot.
To do that, I am using
Code:
run_mode=6
RDK.setRunMode(run_mode)
Code:
RDK.RunCode('prog',True)
I checked if setRunMode is actually working by putting
Code:
RDK.RunMode()
The other way round, if I activate 'Run on robot' (see attachment RoboDK_02) manually in RoboDK and then use a script to start the program, it is excecuted on the real robot as it is supposed to.
I am not sure what is wrong. Is RunMode=6 not equivalent to 'Run on robot' and I am therefore using it the wrong way or is it maybe a bug?
(In the latter case, please feel free to move the thread to the bug section)
Please let me know if I left anything unclear.