|
|
@ -8,6 +8,7 @@ Cam_RECduration = 30; %in seconds. (30secs is the maximal time allowed by Matlab |
|
|
|
ard = arduino; % open arduino |
|
|
|
ard = arduino; % open arduino |
|
|
|
%%%%%%%%%%%%%%% |
|
|
|
%%%%%%%%%%%%%%% |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AdaptTime=1; |
|
|
|
|
|
|
|
|
|
|
|
try |
|
|
|
try |
|
|
|
assignin('base','Stop_Press',0)% this works for the STOP experiment button |
|
|
|
assignin('base','Stop_Press',0)% this works for the STOP experiment button |
|
|
@ -613,7 +614,7 @@ sca |
|
|
|
% % % % piVSsecs(:,2) = [0:numSecs/(nFrames-1):numSecs]; |
|
|
|
% % % % piVSsecs(:,2) = [0:numSecs/(nFrames-1):numSecs]; |
|
|
|
catch ME |
|
|
|
catch ME |
|
|
|
warndlg('The program failed to run. Try again.') |
|
|
|
warndlg('The program failed to run. Try again.') |
|
|
|
disp(ME); |
|
|
|
rethrow(ME); |
|
|
|
return |
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|