Commit acc5d11e authored by Jesse Heckman's avatar Jesse Heckman

implement wait for trigger

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