TimeControl (ThingSpeak) stopped running

조회 수: 6 (최근 30일)
Vince Nguyen
Vince Nguyen 2023년 5월 7일
댓글: chris weedon 2023년 10월 18일
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
Christopher Stapels 2023년 5월 8일
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 커뮤니티

카테고리

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