Filter löschen
Filter löschen

Arduino delay in MATLAB Gui

1 Ansicht (letzte 30 Tage)
ishani uthpala
ishani uthpala am 9 Mär. 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

Antworten (0)

Kategorien

Mehr zu Arduino Hardware finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by