How do you control the time TimerFcn takes to perform its function?
이전 댓글 표시
I made the following timer to trigger a NI USB-60008 ADC device so that it pulses from zero volts to 5 volts:
t_stim = timer('TimerFcn','putsample(ao, [0 0]); putsample(ao, [5 5]); disp(''.'')', 'Period', 1/10, 'TasksToExecute', N_stimulus,'ExecutionMode', 'fixedRate');
I then start and stop t_stim within a for loop. What I want to know is whether or not there is a way to control the time TimerFcn allots to all the functions that define it? For instance, my TimerFcn here has three tasks: send a zero volts signal, send a 5 volts signal, and show a "." on the screen for each task executed.
My ideal is to have is to have it split 50% between 0 and 5 volts... and have the "." done in little to no time ;)
Thank you,
Zoe
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Background and Parallel Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!