MATLAB Error: ThingSpeak encountered an internal error. Try executing your code again. | MATLAB IoT Analytics | Forum

The ThingSpeak community site has been upgraded to a new site. This site is currently in read-only mode. You can ask questions or post and read discussions on the new site.
Avatar

Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
MATLAB Error: ThingSpeak encountered an internal error. Try executing your code again.
No permission to create posts
September 16, 2016
3:50 pm
Avatar
Adarsh_Murthy

MathWorks
Members
Forum Posts: 62
Member Since:
August 25, 2015
sp_UserOfflineSmall Offline

The MATLAB plot() function to visualize ThingSpeak data:

plot(xdata, ydata)

might generate the following error if xdata is a datetime vector:

ThingSpeak encountered an internal error. Try executing your code again.

 

To resolve the error, use the following commands instead:

 

plot(datenum(xdata), ydata)

datetick;

September 20, 2016
9:06 am
Avatar
Adarsh_Murthy

MathWorks
Members
Forum Posts: 62
Member Since:
August 25, 2015
sp_UserOfflineSmall Offline

The plot function on ThingSpeak has been updated to resolve the error. You can now visualize ThingSpeak channel data using the plot function even when xdata is a datetime vector. For example:

[data, time] = thingSpeakRead(12397, 'NumPoints', 10, 'Fields', 4);

plot(time, data);

title('Temperature Plot');

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

kusmumichael, petersmith99, Rambant, blakeharriss09, optisol, Niyonzima Fils

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457