Why doesn't the Scope block display all the data after I finish running the model in external mode?

30 ビュー (過去 30 日間)
Why doesn't the Scope block display all the data after I finish running the model in external mode?
After I finish a simulation using Real-Time Workshop in external mode, my scope block will not store any data except the last 3 points of the simulation even after I click on the "AutoScale button" in the scope. The "limit data points to last:" option is unchecked in the scope properties box. Also, under the "signal & triggering" window in the "external mode control panel", I have the following settings:
- The scope is set to be triggered since I have checked the checkbox, "arm when connect to target" is checked
- The "source" box is set to manual
- The "mode" is set to normal
- The "duration" is set to 1000.
So, as far as I know, everything is set properly for the scope to display and keep at least 1000 points of data. Why can I not see the data plotted?

採用された回答

MathWorks Support Team
MathWorks Support Team 2013 年 10 月 18 日
This appears to be the case because the system needs more time to create all of the data points, and then the figure would show all of the simulation data. This would not be an issue if sufficient time is allotted to finish letting the scope update.
To confirm this, or as a workaround:
1. Check the "Save data to Workspace" checkbox under the Scope block properties.
2. Rebuild the model.
3. Complete the external mode run and wait until the simulation completes and the scope has data updated.
4. Click on the "AutoScale" button from the Scope block to view all the data.
You may also want to consider setting the "duration" to a larger number.
  2 件のコメント
Babak
Babak 2014 年 8 月 19 日
Is this bug resolved for Simulink 2013b, 2014a?
Amith Kamath
Amith Kamath 2014 年 8 月 27 日
編集済み: MathWorks Support Team 2023 年 4 月 27 日
Hi Babak,
I have confirmed with our developers that this isn't a bug, and I have updated the above answer accordingly. If you still have questions about this, I would suggest contacting Technical Support:
Thanks!
Amith
(Technical Support at MathWorks)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeScopes and Data Logging についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by