Read data from channel twice a day

1 visualización (últimos 30 días)
John
John el 29 de Sept. de 2023
Comentada: John el 4 de Oct. de 2023
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

Respuestas (1)

Hans Scharler
Hans Scharler el 30 de Sept. de 2023
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 comentario
John
John el 4 de Oct. de 2023
Hi Hans,
Thanks for the hint. I was now able to solve my issue.
BR, Viktor

Iniciar sesión para comentar.

Comunidades de usuarios

Más respuestas en  ThingSpeak Community

Categorías

Más información sobre ThingSpeak en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by