Commit dfd7a9f7 authored by Jesse Heckman's avatar Jesse Heckman

implement wait for trigger

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