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

How to perform a simulation while the robot is moving

#1
Hello

Is it possible to simulate the next movement while operating the real robot?

thank you
#2
While you are moving the real robot from RoboDK you can't simulate a different robot movement within the same instance of RoboDK.

However, you can open a new instance of RoboDK and you can run more simulations without altering the other instances of RoboDK or the real robot.
#3
Thank you for your quick reply.

I would like to use python to simulate the next movement while operating an actual robot.
How can I differentiate between an existing instance and a new instance?

Thank you.
#4
You can simply open RoboDK again and you'll have 2 separate instances/windows of RoboDK.

Each instance will have its own port for the API. If you run scripts from RoboDK, this port provided in the environment. You can also find the port used by the API here:
  1. Select Tools-Options
  2. Select the Other tab
You can also open RoboDK using the API and use the NEWINSTANCE and PORT command line options. 

Example:
Code:
RDK = Robolink(args=["-NEWINSTANCE"])
# or
RDK = Robolink(port=20501)
#5
Thank you. The method you taught me worked fine.
I would like to ask you one more question: Is it possible to change the port settings of an already open RoboDK project using python?
#6
This is currently not possible. You would have to close RoboDK and start it again. You can pass the -PORT argument to specify the port you want RoboDK to use for the API.

Example:
Code:
C:/RoboDK/bin/RoboDK.exe -PORT=20510
  




Users browsing this thread:
1 Guest(s)