(07-24-2023, 05:25 PM)Albert Wrote:You should better use the port parameter available on the constructor. Example:I thought I could start multiple RoboDKs by specifying the port. However, it seems that ports are assigned in the order RoboDK is started. By changing the starting number of "Port range" from '20500' to '20501' as attached, multiple RoboDKs were assigned ports '20501 to 20503'.
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.
Thread Rating:
Users browsing this thread: |
1 Guest(s) |
Copyright © 2023RoboDK Inc.
Powered by MyBB