Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

program.setSpeed() API instruction crashes RoboDK

Hi Everyone,

I am using the Python API and when adding a speed instruction to the program the window will still pop up although it is disabled as in 

program.setSpeed(value, False) 

Then RoboDK can not handle it anymore, and it crashes.
Note, I am generating robot instructions from a CSV file using a for loop, which has about 16k points.
Any help is appreciated.


Attached Files Thumbnail(s)
So I solved the problem. 

The issue was with the speed value, it was negative which is incorrect. But It would be better if the API would check the value first before it sends it to RoboDK, and throw an error in case of an unexpected value.

Setting the speed or the acceleration to a negative value will ignore the change of speed. Also, this function was not made to work with booleans but with numbers.

Users browsing this thread:
1 Guest(s)