Read data from channel twice a day
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I am new to thingspeak and not familiar to Matlab. May you can help me to do a simple calculation on daily basis. I have the following requirement that I am not able to implement.
- read data from channel A at 6 am and store data into varA
- read data from channel A at 10 pm and store data into varB
- calculate varC = varB - varA
- display varC as barchart
These four steps above should be execute on a dayily basis.
Would be nice if some could help!
Thanks
Viktor
0 件のコメント
回答 (1 件)
Hans Scharler
2023 年 9 月 30 日
You need three TimeControls that call thee MATLAB Analytics scripts (thingSpeakRead / thingSpeakWrite) and then one final MATLAB Visualization to make a bar chart. I would break the problem down just like you described and start with the MATLAB script to read and write to a channel. Then, add the TimeControls to run them.
コミュニティ
その他の回答 ThingSpeak コミュニティ
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!