Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to control the LED flashing and extinguish it where in a loop! I hope that i can stop it with another pushbutton callback

조회 수: 1 (최근 30일)
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)
set(handles.activex4,'value',0);
for i=1:9999
if mod(i,2)==1
set(handles.activex3,'value',1);
pause(0.5);
else
set(handles.activex3,'value',0);
pause(0.5);
end
end

답변 (1개)

Walter Roberson
Walter Roberson 2012년 10월 22일
if get(handles.activex4, 'Value') ~= 0
break
end

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by