Simulink Real Time: Logging non-virtual bus
11 views (last 30 days)
Running on a Speedgoat here. We have a very large Simulink Real Time model (compile time is ~10 minutes), and we're not so experienced with Simulink Real Time. We are trying to log many different non-virtual bus signals, but we have not been able to do without breaking the signals apart into their respective signals and pushing that into a File Scope. And that is still not preferable because we only have 8 (including Target scopes....).
I was looking into the Simulation Data Inspector. I was able to get some data back into the target computer, but not a lot (I think like 1 second in total), and nothing in the non-virtual buses was recorded. I'm going to guess that File Scopes are simply the best option we have here, but it's annoying that we can't feed a bus signal into one directly.
What am I doing wrong here?
We are integrating lots of other people's Simulink work here. We are mostly locked into the overall structure of this model.
Jon Lobo on 14 Dec 2018
Non-virtual buses should work when you select them for logging to the Simulation Data Inspector. I suspect that you currently have them configured for "Immediate" logging which streams data from the Speedgoat target to the host.
If you right click on the data logging icon (above the signal), and select properties you should see a window that has a pane for Simulink Real-Time as in the example linked below. Try using "Buffered" mode. In this mode, the data is logged to disk on the target. The data is then transferred to the host when the execution on the target stops.