Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
program.setSpeed() API instruction crashes RoboDK
#1
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

Code:
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.

Regards,
Hamdan


Attached Files Thumbnail(s)

#2
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.

Regards,
Hamdan
#3
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)