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

Shore on 6 Feb 2023
Latest activity Reply by Shore on 7 Feb 2023

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 on 7 Feb 2023

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

Christopher Stapels
Christopher Stapels on 6 Feb 2023
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 on 6 Feb 2023

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 on 7 Feb 2023

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.