To understand how scenarios work is pretty simple. You just build scene + scenario in RoadRunner Scenario and simulate it right there. For this you can refer following documentation - https://www.mathworks.com/help/releases/R2025a/roadrunner-scenario/getting-started-with-roadrunner-scenario.html
After that you can import your RoadRunner Scene into unreal to visualize with UE’s renderer. For more details refer to the following link- https://www.mathworks.com/help/releases/R2025a/sl3d/import-roadrunner-scene-into-unreal-engine-using-simulink.html
Coming to the issue where your RoadRunner Simulink works but when link a behaviour with a Bus Creator the simulation does not start, the reason is that your model must have RoadRunner Scenario block at the root level, otherwise the compilation fails. For this you can refer - https://www.mathworks.com/help/releases/R2025a/driving/ref/roadrunnerscenario.html https://www.mathworks.com/help/releases/R2025a/driving/ref/roadrunnerscenariowriter.html
Now for the Additional Questions you asked –
- Yes, RoadRunner Scenario is an interactive editor and simulator; you can simulate and visualize directly in RoadRunner, design behaviors in MATLAB/Simulink, and create programmatic variants.
- Yes, For Brain signals use LSL(liblsl- Matlab) to read fNIRS in Simulink which would output a simple “brainStop” as either true or false. On keyboard Tiny MATLAB UI sets “keyboardStop” to true when you press Space. Now combine this and do logical OR operation for eg – “stop_now = keyboardStop OR brainStop”.
- Start with the RoadRunner Scenario tutorial series, especially Part 1 (designing) and Part 5 (co-sim with MATLAB/Simulink). Refer to the following videos - https://www.mathworks.com/videos/roadrunner-scenario-tutorial-part-1-designing-scenarios-1717570343996.html , https://www.mathworks.com/videos/roadrunner-scenario-tutorial-part-5-co-simulating-with-matlab-and-simulink-1717570395295.html
- Yes, The RoadRunner API lets you programmatically parameterize scenarios (actors, speeds, triggers), load them into one scene, and generate many variants for experiments. The “Programmatic Interfaces” tutorial demonstrates this workflow in the following documentation. https://www.mathworks.com/videos/roadrunner-scenario-tutorial-part-4-programmatic-interfaces-1717570381372.html