Commit dfd7a9f7 authored by Jesse Heckman's avatar Jesse Heckman

implement wait for trigger

parent f497d4f1
......@@ -18,10 +18,11 @@ function pb_vRunTrial(zbus, cfg)
t = tic;
trialdur = cfg.trialdur;
if cfg.trig; trialdur = 10; end
while ~cfg.RZ6_1.GetTagVal('Wait') && toc(t) < trialdur
% pause(0.05);
if ~cfg.trig
while toc(t) < trialdur; pause(0.05); end
while ~cfg.RZ6_1.GetTagVal('Wait') && toc(t) < 10; pause(0.05); 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