Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pbtoolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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