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

Sending POPUP command from RoboDK API to robot driver

#1
Hi, I have made a custom robot driver would like to pass some pass POPUP commands from RoboDK Python script when working in online mode.
I only managed to pass them through a program with "Show message instruction". But I would like to do that without creating programs with these instructions. Is there a way to send POPUP command directly to robot driver through Python API? Same as you can send other commands like MOVJ (and other commands) using `robot.MoveJ( joints )`.
#2
You can trigger the POPUP command in your driver by calling RunMessage from the RoboDK API:
https://robodk.com/doc/en/PythonAPI/robo...RunMessage

For example, this code:

Code:
robot.RunMessage("Your popup message")

Will send this command to your driver:

Code:
POPUP Your popup message
#3
Hi Albert,
Thank you for a response. I have tried this but I am getting an error:


Code:
item.RunMessage( json.dumps( commands, separators=(',', ':') ) )
Attribute error: 'Item' object has no attribute 'RunMessage'

item.Type() returns 2 which is ITEM_TYPE_ROBOT


Is this a bug or I am doing something wrong? My RoboDK version is v5.5.3 currently. 
  




Users browsing this thread:
1 Guest(s)