Error in Scenario Server: WorldRunTimeLogging logging has not been enabled

54 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Simon Silge
Simon Silge il 5 Nov 2024 alle 20:42
It looks like this problem has been fixed in Update 1 for RoadRunner. Please reinstall R2024b from our website to receive the newest version.

Più risposte (1)

Saurabh
Saurabh il 30 Set 2024
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 Commenti
Tyson Nguyen
Tyson Nguyen il 5 Nov 2024 alle 17:11
Does that mean I have to uninstall roadrunner and reinstall it to update it?
Simon Silge
Simon Silge il 5 Nov 2024 alle 20:42
@Tyson Nguyen yes that is correct. There is no other way to install an update for a certain release that I know of.

Accedi per commentare.

Prodotti


Release

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by