Read real time data on raspberry PI
3 次查看(过去 30 天)
显示 更早的评论
Hi.
Is there any way to read realtime, live, data produced on a raspberry PI directly on Matlab ( don't using ThigSpeak)?
I.e. I'd like to read live Raspberry CPU temp in matlab without using ThingSpeak.
Any idea?
Thanks in advance
0 个评论
回答(3 个)
Manash Sahoo
2021-2-10
I'm not experienced with directly reading from raspberry Pi/arduino, but this link might help you out.
https://www.mathworks.com/help/supportpkg/raspberrypiio/ref/raspi.serialdev.read.html
Prasanth Sunkara
2021-2-18
Hi Cosimo,
One approach is to use the "timer" feature in MATLAB and in the timer callback, you can call the function which reads the cpu temperature( probably using "system" command of Raspbery Pi Support package).
Please see the below timer example for reference:
Alternatively, you may find the "Raspberry Pi Resource Monitor App" handy for similar usecases.
Thanks,
Prasanth
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Run on Target Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!