Read real time data on raspberry PI
21 views (last 30 days)
Show older comments
Cosimo Mercuro on 10 Feb 2021
Answered: Prasanth Sunkara on 18 Feb 2021
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.
Thanks in advance
Manash Sahoo on 10 Feb 2021
I'm not experienced with directly reading from raspberry Pi/arduino, but this link might help you out.
Vinod on 11 Feb 2021
Prasanth Sunkara on 18 Feb 2021
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.
Find more on Run on Target Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!