Universal Robots Forum

Some doubts about UR simulator

Hi everyone,
I have some questions about the UR simulator:

  • Is there any Java API function (or any other way) to know if a URCap is running on a real robot or on the simulator?
  • Do all versions of the PolyScope simulator have the same S/N?

Thank you!

Hi jzamora…

  1. I don’t know if there if UR have given a way to identify if its a simulation or not. But you can use some java magic to get the username of the pc, or some other data related to the computer/VM it is running on that should help you here…

  2. it is possible to change the S/N on the Simulator by change the value found in the file ur-serial.urX, where X = 3, 5, 10 or 16 depending on the Robot you use…

Thank you very much @cg1 :slight_smile: