Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jesse Heckman
pbtoolbox
Commits
d5f8a5fb
Commit
d5f8a5fb
authored
Jun 13, 2019
by
Jesse Heckman
Browse files
implement wait for trigger
parent
236657f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
setups/vestibular chair/vPrime/core/experiment/block/trial/pb_vRunTrial.m
View file @
d5f8a5fb
...
...
@@ -17,14 +17,10 @@ function pb_vRunTrial(zbus, cfg)
disp
(
'Waiting for RZ6 button press/sound/led/acquisition'
);
t
=
tic
;
while
~
cfg
.
RZ6_1
.
GetTagVal
(
'Wait'
);
pause
(
0.05
);
end
trialdur
=
cfg
.
trialdur
;
if
cfg
.
trig
;
trialdur
=
15
;
end
while
toc
(
t
)
<
trialdur
||
cfg
.
RZ6_1
.
GetTagVal
(
'Active'
)
pause
(
0.05
);
end
if
cfg
.
trig
;
trialdur
=
10
;
end
while
~
cfg
.
RZ6_1
.
GetTagVal
(
'Wait'
)
||
toc
(
t
)
<
trialdur
;
pause
(
0.05
);
end
end
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment