Real time Scope from Arduino dont work on external mode
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I'm using Arduino Due and I cant display scopes or even save data to workspace in external mode.
I tried running this model to check if someting is wrong with my Arduino.
![בלה בלה מטלאב.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/245300/%D7%91%D7%9C%D7%94%20%D7%91%D7%9C%D7%94%20%D7%9E%D7%98%D7%9C%D7%90%D7%91.png)
But when I ran it, the simulation time runs normally while on the simulink scope screen
the time stays at 0 and I cant get any data.
I tried to use the display block and also the to workspace block and I still dont get any data.
I know the arduino is connected because when I use the model for servo it works.
0 个评论
回答(1 个)
Arun Kumar
2019-10-29
Hi,
You need to mark the signals for logging while using XCP external mode. Refer the following documentation for more details: <https://in.mathworks.com/help/supportpkg/arduino/ref/communicate-with-arduino-using-xcp-based-external-mode-simulation.html>
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!