- Use rate transition blk. to reduce sampling rate.
- Attach File Log blk. at the signal for the full data(if necessary, this will log data at the target machine, and after simulation ends, all the data will be transferred through TCP/IP).
Plot serial data in realtime with sample time of 1ms
2 次查看(过去 30 天)
显示 更早的评论
Hello,
My MCU is sending data with sample rate of 1000 samples/sec via serial port. how can i visualize this data in realtime on scope? please find attached simulnik model snapshot.
Regards,
Jaydeep
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/943409/image.jpeg)
0 个评论
采纳的回答
Hyunuk Ha
2023-4-29
You can easily log signal and check the signal from Simulink Data Inspector :
But I think 1kHz is too high for data visualization,
1 个评论
Walter Roberson
2023-4-29
If each data point were allocated 1 pixel, then 1 kHz would fill the width in 1 to 2 seconds.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 View and Analyze Simulation Results 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!