Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Jesse Heckman
pbtoolbox
Commits
d5f8a5fb
Commit
d5f8a5fb
authored
Jun 13, 2019
by
Jesse Heckman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement wait for trigger
parent
236657f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
setups/vestibular chair/vPrime/core/experiment/block/trial/pb_vRunTrial.m
...r chair/vPrime/core/experiment/block/trial/pb_vRunTrial.m
+3
-7
No files found.
setups/vestibular chair/vPrime/core/experiment/block/trial/pb_vRunTrial.m
View file @
d5f8a5fb
...
@@ -17,14 +17,10 @@ function pb_vRunTrial(zbus, cfg)
...
@@ -17,14 +17,10 @@ function pb_vRunTrial(zbus, cfg)
disp
(
'Waiting for RZ6 button press/sound/led/acquisition'
);
disp
(
'Waiting for RZ6 button press/sound/led/acquisition'
);
t
=
tic
;
t
=
tic
;
while
~
cfg
.
RZ6_1
.
GetTagVal
(
'Wait'
);
pause
(
0.05
);
end
trialdur
=
cfg
.
trialdur
;
trialdur
=
cfg
.
trialdur
;
if
cfg
.
trig
;
trialdur
=
1
5
;
end
if
cfg
.
trig
;
trialdur
=
1
0
;
end
while
toc
(
t
)
<
trialdur
||
cfg
.
RZ6_1
.
GetTagVal
(
'Active'
)
while
~
cfg
.
RZ6_1
.
GetTagVal
(
'Wait'
)
||
toc
(
t
)
<
trialdur
;
pause
(
0.05
);
end
pause
(
0.05
);
end
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