Borrar filtros
Borrar filtros

Arduino delay in MATLAB Gui

1 visualización (últimos 30 días)
ishani uthpala
ishani uthpala el 9 de Mzo. de 2021
I want to turn on air pump when press the push button and it should automatically turn off after 3 seconds. I'm very begginer of MATLAB gui. So kindly request for answer.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global a;
writeDigitalPin(a,'D3',1);
pause(3);
But above code has problem it will never stop after 3 seconds

Respuestas (0)

Categorías

Más información sobre Arduino Hardware en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by