TimeControl (ThingSpeak) stopped running

6 次查看(过去 30 天)
I have a TimeControl to trigger Matlab Analysis that fetches some external data to write to my ThingSpeak channels. It has been working just fine, until around May 6 2023 11:30AM UTC when it stopped working all of a sudden.
I could see in my Matlab Analysis that it Timed out. I fixed the issue in the Analysis. It ran just fine (manually). But when I set it up to be triggered from the TimeControl, it didn't work, even if I changed the frequency or made it a one-time thing. I even removed the TimeControl and made a new one but still nothing works. The Last Ran field remains empty even after the supposed trigger time.
Can someone please look into this issue? Thank you very much in advance.
  8 个评论
Perky Whale
Perky Whale 2023-5-8
编辑:Perky Whale 2023-5-8
Looks like it's up and running again as of about half an hour ago. 🤙
Vince Nguyen
Vince Nguyen 2023-5-8
Cool, thanks! Waiting for an official explanation for why this happened

请先登录,再进行评论。

采纳的回答

Christopher Stapels
TimeControls are working fine as of May 8 12:45 UTC. If you continue to see missing TimeControls, please comment here.
  25 个评论
Christopher Stapels
Christopher Stapels 2023-10-16
We should probably start a new thread for this.But Ill put a quick example here. If you get stuck, please start a new post. If you wanted to catch an error for example with the thingSpeakRead command, you could use the following.
Since you dont have acess to the code when its triggered by timeControl, in the catch part at the bottom, you could replace
disp(ME.message)
with something like
thingSpeakWrite(channelId, ME.message,, 'WriteKey', writeKey);
that way the error message would get recorded to a channel.
try
thingSpeakRead(channelID, data, 'WriteKey', writeKey);
catch ME
disp(ME.message);
end
I recently had an error form reading data and calculating the mean because in some instances, I didnt realize there wasnt any data to read and the code was failing. You might try wrapping the calculaiton part of your code in a try catch loop. It wont make the calculation fail, but it will make it so the code continues running even when it hits the error.
chris weedon
chris weedon 2023-10-18
thanks it seems to be working, I'll keep an eye on it

请先登录,再进行评论。

更多回答(0 个)

社区

更多回答在  ThingSpeak Community

类别

Help CenterFile Exchange 中查找有关 Visualize Data 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by