필터 지우기
필터 지우기

Read data from channel twice a day

조회 수: 2 (최근 30일)
John
John 2023년 9월 29일
댓글: John 2023년 10월 4일
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.
  1. read data from channel A at 6 am and store data into varA
  2. read data from channel A at 10 pm and store data into varB
  3. calculate varC = varB - varA
  4. display varC as barchart
These four steps above should be execute on a dayily basis.
Would be nice if some could help!
Thanks
Viktor

답변 (1개)

Hans Scharler
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.
  댓글 수: 1
John
John 2023년 10월 4일
Hi Hans,
Thanks for the hint. I was now able to solve my issue.
BR, Viktor

댓글을 달려면 로그인하십시오.

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

Help CenterFile Exchange에서 ThingSpeak에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by