Commit 11c5135b authored by Jesse Heckman's avatar Jesse Heckman

implement wait for trigger

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