Error in Scenario Server: WorldRunTimeLogging logging has not been enabled

rrSim = rrApp.createSimulation
rrSim.set("Logging","on")
rrSim.set("SimulationCommand","Start")
rrLog = rrSim.get("SimulationLog");
I ran the above lines of code, trying to get the log of Roadrunner simulation. However, after enabling logging through rrSim and waiting for the simulation to complete, I can't run rrSim.get("SimulationLog"), due to this error:
Error using Simulink.ScenarioSimulationMcos/get
Error in Scenario Server: WorldRuntimeLogging logging has not been enabled.
Error in Simulink.ScenarioSimulation/get
Any help is appreciated

 Accepted Answer

It looks like this problem has been fixed in Update 1 for RoadRunner. Please reinstall R2024b from our website to receive the newest version.

4 Comments

Hi @Simon Silge, I am using the latest RoadRunner R2025a with MATLAB R2025a and I am still encountering the same issue. Any help will be appreciated. Thank you!
Hi @Somtochukwu I have just tested it on my side and don't have the problem. Let me see if I can get someone to help you with this.
Hi, both me and my colleague where not able to reproduce this. Could you please provide some more more infomation on which steps exactly you are taking and the version number of MATLAB you are using (type ver into the command window) and send that all to the tech support ? They should be able to support you in this.

Sign in to comment.

More Answers (1)

Upon attempting to reproduce the issue on my end, I encountered a similar problem. I explored several options to determine if a workaround was available, and I successfully identified one.
  1. Run the simulation from CmdRoadRunnerAPI using ".\CmdRoadRunnerApi.exe --serverAddress localhost:<port> "SimulateScenario(pacing.value='1' enable_runtime_log='true')".
  2. Execute set(rrSim,"Logging","On") from MATLAB.
  3. Fetch the log from MATLAB using simLog = get(rrSim, "SimulationLog");
I hope this was helpful.

6 Comments

@Saurabh how to execute the first step? how to run the simulation in CmdRoadRunnerAPI.exe with the command? thank you.
Hi @Saurabh, thank you for getting back to me.
CmdRoadRunnerAPI is a gRPC method, after I run the simulation, how can I change back to MATLAB and execute the step 2 and 3? Thank you.
It looks like this problem has been fixed in Update 1 for RoadRunner.
Does that mean I have to uninstall roadrunner and reinstall it to update it?
@Tyson Nguyen yes that is correct. There is no other way to install an update for a certain release that I know of.

Sign in to comment.

Products

Release

R2024b

Asked:

on 26 Sep 2024

Edited:

on 31 Jul 2025

Community Treasure Hunt

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

Start Hunting!