खोज…


MATLAB में सरल टाइमर

निम्नलिखित एक टाइमर है जो एक निश्चित अंतराल पर फायर करता है। यह समयबाह्य Period द्वारा परिभाषित किया गया है और यह टाइमआउट पर Timerfcn द्वारा परिभाषित कॉलबैक को आमंत्रित करता है।

t = timer;
t.TasksToExecute = Inf;
t.Period = 0.01; % timeout value in seconds
t.TimerFcn = @(myTimerObj, thisEvent)disp('hello'); % timer callback function
t.ExecutionMode = 'fixedRate';
start(t)
pause(inf);


Modified text is an extract of the original Stack Overflow Documentation
के तहत लाइसेंस प्राप्त है CC BY-SA 3.0
से संबद्ध नहीं है Stack Overflow