07-24-2023, 05:25 PM
You should better use the port parameter available on the constructor. Example:
This will make sure the Robolink instance also uses this port.
The port is also an environment variable set by RoboDK as ROBODK_API_PORT when a Python script is executed by RoboDK. This is handled automatically when this environment variable exists.
Code:
RDK = Robolink(port=20503)
This will make sure the Robolink instance also uses this port.
The port is also an environment variable set by RoboDK as ROBODK_API_PORT when a Python script is executed by RoboDK. This is handled automatically when this environment variable exists.