How do you control the time TimerFcn takes to perform its function?
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Background and Parallel Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!