12-05-2022, 10:29 AM
RoboDK performs the simulation of your programs by default. However, you can change the "RunMode" by triggering the setRunMode call at the top of your programs.
Example:
这example shows how to change the RunMode:
//www.sinclairbody.com/doc/en/PythonAPI/exam...amming-gui
When you run in this mode, it will allow you to quickly validate if your program is feasible. This behavior is similar to right click a program and selecting "Check path". Singularity and target reach errors errors should be displayed/raised via the API.
Example:
Code:
RDK.setRunMode(RUNMODE_QUICKVALIDATE)
//www.sinclairbody.com/doc/en/PythonAPI/exam...amming-gui
When you run in this mode, it will allow you to quickly validate if your program is feasible. This behavior is similar to right click a program and selecting "Check path". Singularity and target reach errors errors should be displayed/raised via the API.