Simulink scope only save the last 1 second data to workspace?

25 ビュー (過去 30 日間)
Ming Chun Hsu
Ming Chun Hsu 2018 年 10 月 1 日
回答済み: Thomas Marullo 2018 年 12 月 22 日
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.

回答 (1 件)

Thomas Marullo
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.

カテゴリ

Help Center および File ExchangeTarget Computer Setup についてさらに検索

製品


リリース

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by