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

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





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

Register Lost password?
sp_Feed sp_TopicIcon
MATLAB Error: ThingSpeak encountered an internal error. Try executing your code again.
Avatar
Adarsh_Murthy

Forum Posts: 59
sp_UserOfflineSmall Offline
1
September 16, 2016 - 3:50 pm
sp_Permalink sp_Print

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;

Avatar
Adarsh_Murthy

Forum Posts: 59
sp_UserOfflineSmall Offline
2
September 20, 2016 - 9:06 am
sp_Permalink sp_Print

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:
30 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

candacele1

WilliamBer

roxieob18

Metawatch

ozayagw

ubabeutiti

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee