Thanks Walter. I got an error message when I tried this. It said "Error while evaluating StopFcn for timer 'timer-1'. I'm assuming I need to modify the line
function acquisitionTimerCleanup(acquisitionTimer,~)
Is that correct? I'm not exactly what the ~ means in this case. Also was wondering if you describe why you used the @(src, evt) . I've never quite been able to figure out what the @ symbol means in these callback functions.
Thanks Walter.