Simulink Real Time: Logging non-virtual bus
9 ビュー (過去 30 日間)
古いコメントを表示
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?
Note:
We are integrating lots of other people's Simulink work here. We are mostly locked into the overall structure of this model.
0 件のコメント
回答 (1 件)
Jon Lobo
2018 年 12 月 14 日
Hi Kelly,
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.
3 件のコメント
Ayush Agrawal
2019 年 8 月 23 日
Is it possible to specify the file name (similar to file scopes) for the log data using this method? My current setup requires booting up and running the target application through a USB drive and I generally copy the .dat files (stored through file scopes) after the end of an excution of the target application. However, I am now considering using buses since I have a bunch of signals that I'd like to log. This seems like a feasible option but I'm unsure on how to use it.
参考
カテゴリ
Help Center および File Exchange で Target Computer Setup についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!