Error in Scenario Server: WorldRunTimeLogging logging has not been enabled

조회 수: 4 (최근 30일)
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

채택된 답변

Simon Silge
Simon Silge 2024년 11월 5일
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
Simon Silge
Simon Silge 2025년 7월 31일
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.
Simon Silge
Simon Silge 2025년 7월 31일
편집: Simon Silge 2025년 7월 31일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Saurabh
Saurabh 2024년 9월 30일
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
Tyson
Tyson 2024년 11월 5일
Does that mean I have to uninstall roadrunner and reinstall it to update it?
Simon Silge
Simon Silge 2024년 11월 5일
@Tyson Nguyen yes that is correct. There is no other way to install an update for a certain release that I know of.

댓글을 달려면 로그인하십시오.

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by