Matlab analysis: Reading data from one channel and writing to a different ThingSpeak channel.

In the Matlab analysis option on my Thingspeak channel I chose to experiment with the example in the title regarding humidity average. It works fine but only works once. How can I keep it updating every 5 minutes or so?

Shore
Shore 2023년 2월 7일

Close issue. I missed the instructions on bottom of page.

Christopher Stapels
Christopher Stapels 2023년 2월 6일
Can you describe your overall goal in a little more detail? There are likely many ways to acheive the result you are loking for, but the advice may differ based on the goal.
You can use a TimeControl to automatically schedule a MATLAB analysis to run on a ragular basis, or you can use React to run only when some condition is met - for example in a channel value.
You can also use a derived channel where you write calculated valeues from an existing channel's data and then use analysis on the derived channel to trigger an update.
Shore
Shore 2023년 2월 6일

My goal is to use the Matlab Analysis example given on the Matlab Analysys example page, first choice in second group, here: “ Examples: Sample code to analyze and transform data

Calculate and display average humidity”

I changed the id’s as shown. It works, but works only once. I want to have it update every 5 minutes.

Shore
Shore 2023년 2월 7일

Ooppps, sorry. I didn’t look at bottom of Matlab analysis page where time control is an option. Please close this issue. Thanks very much.

태그

아직 태그를 입력하지 않았습니다.