Commit 56feb3ff authored by Jesse Heckman's avatar Jesse Heckman

added pb_vRunTrial

parent 4bc478fa
......@@ -7,8 +7,21 @@ function pb_vRunTrial(handles)
% PBToolbox (2018): JJH: j.heckman@donders.ru.nl
%% Run zBus
cfg.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
cfg.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 ~cfg.RZ6_1.GetTagVal('Wait')
% disp('waiting')
% do nothing
end % sound is played after this loop exits.
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