Los Piratas del FTA

donaciones BTC: 33WxfNYutrPhhZ1SPyxos3Mmuthjuzb82x

Herramientas de usuario

Herramientas del sitio


Barra lateral

matlab:cputemp

http://www.mathworks.com/matlabcentral/fileexchange/52244-thingspeak-support-toolbox

https://thingspeak.com/channels/89828

http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/

http://www.mathworks.com/help/matlab/ref/timer-class.html

http://www.mathworks.com/help/matlab/matlab_prog/timer-callback-functions.html

http://www.mathworks.com/matlabcentral/fileexchange/8452-example--using-nested-functions-for-timers

ejemplo usado para datos de temperatura http://www.mathworks.com/matlabcentral/fileexchange/32440-cpu-temperature

% por caredepedal y atarvaneitor
%%
clear all
clc
%%
 z=timer;
 z.ExecutionMode = 'fixedRate';  % Run continuously
 %z.TasksToExecute = 5;          % Runs x times at default period of 1 second
 z.TimerFcn = @escribir;         % Run MyTimerFcn at each timer event
 z.Period = 30;
%%
start(z)
function Escribir(~,~)
 info = getCPUTemperature;
 o=info.CurrentTemperature_C;
 thingSpeakWrite(00000, o, 'WriteKey','xxxxxxxxxxx');
end
matlab/cputemp.txt · Última modificación: 2018/11/08 08:02 (editor externo)