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

12 次查看(过去 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
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 个评论
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 个)

Community Treasure Hunt

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

Start Hunting!

Translated by