Commit e689d0cb authored by Jesse Heckman's avatar Jesse Heckman
Browse files

fixed runtrial memory leak

parent 1223a27b
......@@ -11,17 +11,12 @@ function pb_vRunTrial(zbus, trialdur)
zbus.zBusTrigA(0, 0, 2); % reset, clock start, (0,0,2): trigger entire rack, with a pulse structure, and 2 ms delay(2 ms = minimum).
%% Trigger event 1
% cfg.zBus.zBusTrigB(0, 0, 2); % start event 1, trial onset
zbus.zBusTrigB(0, 0, 2); % start event 1/trial onset; trigger zBus 4 = RA16;
%% Button Press
% disp('Waiting for RZ6 button press/sound/led/acquisition');
t = tic;
while toc(t) < trialdur
% disp('waiting')
% do nothing
end % sound is played after this loop exits.
pause(0.05);
end
end
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment