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

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | 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: 114

Currently Online:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

harriettlf60, ShaToow, Aleftinfenny, DiaBentee, hugo11dom@gmail.com, Pisaruk530

Administrators: Hans: 387, lee: 457