Change Simulink Working Directory when using Road Runner.
Show older comments
I have looked everywhere and can't seem to find any solutions for it.
I am currently using Simulink to model the behavior of some actors in Road Runner. I believe my model works but I can't seem to use it in Road Runner. When I run the Road Runner Scenario/Simulation in Road Runner, it loads up Matlab like it's going to run the model with my scenario/simulation but then it crashes. It's barely on screen long enough for me to get a screenshot of the error it does throw.
The model is just a basic model that pulls the actors stats (pose, velocity, ID) and passes them to a script I wrote and then passes them back to the Road Runner scenario. It doesn't alter this data in anyway.
The error it throws:

I'm not worried about the warnings, I know how to fix them and since this screenshot I have. I'm just curious as to how to change teh working directory of this simulink model that's called through Road Runner. All my Road Runner files are from my project folder and the simulink model is in a working directory with no relation to the Road Runner bin. I'm just confused as to how and why it defaulted to the working directory it has.
Accepted Answer
More Answers (0)
Categories
Find more on PX4 Autopilots 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!