필터 지우기
필터 지우기

Arduino delay in MATLAB Gui

조회 수: 1 (최근 30일)
ishani uthpala
ishani uthpala 2021년 3월 9일
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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by