rrApp = roadrunner.connect(apiPort)
returns an rrApp object for an open RoadRunner application running an API server on the specified IP network port,
apiPort.
rrApp = roadrunner.connect(apiPort,cosimPort)
returns an rrApp object for an open RoadRunner application. It optionally specifies the scenario simulation API server port
using cosimPort.
Connect to the last opened instance of RoadRunner application using MATLAB.
Use the connect function to connect to the last opened instance of RoadRunner. This call returns an object rrApp that provides functions for performing basic workflow tasks such as opening, closing, and saving scenes and projects.
rrApp = roadrunner.connect();
Connect to RoadRunner Instance on Specified IP Network Port
Connect to an open instance of RoadRunner application running on the specified IP Network Port.
Call the connect function and pass it the apiPort as an argument. This call returns an rrApp object for an open RoadRunner application running on API server on the specified IP network port.
Connect to an open instance of RoadRunner application running on the specified IP network and scenario simulation API server ports.
Call the connect function and pass it the apiPort and cosimPort as arguments. The apiPort specifies the IP network port and the cosimPort specifies the scenario simulation API server port respectively for the RoadRunner application. This call returns an rrApp object for an open RoadRunner application running on API server on the specified IP network and scenario simulation ports.
apiPort — IP network port for RoadRunner API server 35707 (default)
IP network port for RoadRunner API server, specified as a default value of 35707. This server receives
commands from the RoadRunner service methods for importing and exporting scenes and scenarios. The API
server runs locally at localhost:apiPort after you open a RoadRunner project. Specify apiPort as an integer in the range
[1024, 65535]. If apiPort is
unspecified, a default value of 35707 is used for connecting.
Example: roadrunner.connect(54321)
Data Types: int
cosimPort — IP network port for RoadRunner Scenario co-simulation server 35706 (default)
IP network port for RoadRunner Scenario co-simulation server, specified as a default value of 35706. This server
receives commands for co-simulation with MATLAB® and Simulink® and with external simulators such as CARLA (requires RoadRunner Scenario). Specify cosimPort as an integer in the range
[1024, 65535]. If apiPort is
unspecified, a default value of 35706 is used for connecting.
RoadRunner application associated with a project, returned as a roadrunner object. This
object provides functions for performing common workflow tasks such as opening, closing,
and saving scenes and projects. rrApp provides functions that support
importing data from files and exporting scenes to other formats from RoadRunner.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.