Close RoadRunner using MATLAB
Open and Close RoadRunner Instance
Open a project in RoadRunner using the
roadrunner function by specifying the location in which to create a project. This example assumes that RoadRunner is installed in its default location in Windows.
Specify the path to an existing project. For example, this code shows the path to a project located on
C:\RR\MyProject. The function returns a
rrApp, that provides functions for performing basic workflow tasks such as opening, closing, and saving scenes and projects.
projectFolder = "C:\RR\MyProject";
rrApp = roadrunner(projectFolder);
Close the RoadRunner instance
rrApp — RoadRunner application
RoadRunner application associated with a project, specified as a
roadrunner object. This object provides functions
for performing common workflow tasks such as opening, closing, and saving scenes and
rrApp provides functions that support importing data from
files and exporting scenes to other formats from RoadRunner.
If you open a RoadRunner instance using a
roadrunnerobject and close it interactively, the object continues to exist in the MATLAB workspace. You must delete it manually.
Function calls made to a
roadrunnerobject after closing the associated RoadRunner instance return an error.
Closing a RoadRunner instance by using the
closefunction deletes the associated
Introduced in R2022a