Simulink scope only save the last 1 second data to workspace?
25 ビュー (過去 30 日間)
古いコメントを表示
Hi, I have tried to run my program on Simulink desktop real-time workshop in externel mode. My MATLAB version is R2017a and I want to run my program with 0.001 sampling time for 60 seconds. I want to save the simulation data with the scope block. I have already unchecked the "limit data points to last" parameter. However, when I check the workspace the scope only save the last 1 second data to workspace. Is there any setting I missed or is there any solution to this problem.
0 件のコメント
回答 (1 件)
Thomas Marullo
2018 年 12 月 22 日
If you are using a Target Scope set to File Scope, you need to check the "Auto Restart" option at the bottom of the File Scope window. This will capture all data. Otherwise, you can use the Simulink Signal Logging capabilities by right clicking the signals you want to log and checking Log Signal. And then after a real-time run, you can observe the data in the Simulink Inspector.
0 件のコメント
参考
カテゴリ
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!