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
a05cf7ab
Commit
a05cf7ab
authored
Oct 11, 2018
by
Jesse Heckman
Browse files
check
parent
94b31810
Changes
1
Hide whitespace changes
Inline
Side-by-side
setups/vestibular chair/vPrime/core/pb_vRunExp.m
View file @
a05cf7ab
...
...
@@ -39,12 +39,13 @@ function pb_vRunExp(handles)
vs
=
vs_servo
;
vs
.
enable
;
pause
(
1
);
vs
.
start
;
tic
;
vs
.
start
;
blockTime
=
tic
;
end
%% RUN TRIALS
for
iTrl
=
1
:
nTrials
% Runs all trials within one block
trialTime
=
tic
;
updateTrial
(
handles
);
stim
=
handles
.
block
(
iBlck
)
.
trial
(
iTrl
)
.
stim
;
...
...
@@ -59,12 +60,12 @@ function pb_vRunExp(handles)
pb_vTraces
(
handles
);
handles
=
pb_vStoreData
(
handles
,
bDat
);
handles
=
updateCount
(
handles
,
'trial'
,
'count'
);
% update trial
toc
toc
(
trialTime
)
end
% STOP CHAIR
if
~
ismac
&&
~
debug
elapsedTime
=
toc
;
elapsedTime
=
toc
(
blockTime
)
;
if
elapsedTime
<
dur
;
pause
(
dur
-
floor
(
elapsedTime
));
end
% wait untill chair is finished running before disabling.
vs
.
stop
;
...
...
Write
Preview
Supports
Markdown
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