Azzera filtri
Azzera filtri

Arduino delay in MATLAB Gui

1 visualizzazione (ultimi 30 giorni)
ishani uthpala
ishani uthpala il 9 Mar 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

Risposte (0)

Categorie

Scopri di più su Arduino Hardware in Help Center e File Exchange

Prodotti


Release

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by