How do I know the endpoint of RoadRunner simulation using the API command?

With the following standard workflow to execute a RoadRunner simulation using the API command, I want to know the endpoint of the simulation. What the programming looks like for it?
rrApp = roadrunner(projectFolder);
rrApi = roadrunnerAPI(rrApp);
openScene(rrApp, sceneFile);
openScenario(rrApp, scenarioFile);
set(rrSim, "SimulationCommand", "Start");

 Accepted Answer

After starting the simulation with the "set" command using "SimulationStatus" property, the following command can be applied to know the endpoint:
while strcmp(get(rrSim,"SimulationStatus"),"Running")
pause(1);
end
You may cast the file export command such as "exportActorTrajectoryToCSV" after the endpoint.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!