Error in Scenario Server: WorldRunTimeLogging logging has not been enabled
Show older comments
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
More Answers (1)
Saurabh
on 30 Sep 2024
0 votes
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.
- Run the simulation from CmdRoadRunnerAPI using ".\CmdRoadRunnerApi.exe --serverAddress localhost:<port> "SimulateScenario(pacing.value='1' enable_runtime_log='true')".
- Execute set(rrSim,"Logging","On") from MATLAB.
- Fetch the log from MATLAB using simLog = get(rrSim, "SimulationLog");
I hope this was helpful.
6 Comments
Saurabh
on 24 Oct 2024
You can check out the following site to learn how to run the simulation using 'CmdRoadRunnerAPI.exe' with the command:
Simon Silge
on 4 Nov 2024
It looks like this problem has been fixed in Update 1 for RoadRunner.
Tyson
on 5 Nov 2024
Simon Silge
on 5 Nov 2024
@Tyson Nguyen yes that is correct. There is no other way to install an update for a certain release that I know of.
Categories
Find more on Programmatic Scene and Scenario Management in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!