Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Jesse Heckman
pbtoolbox
Commits
56feb3ff
Commit
56feb3ff
authored
Oct 10, 2018
by
Jesse Heckman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added pb_vRunTrial
parent
4bc478fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
setups/vestibular chair/vPrime/core/experiment/trial/pb_vRunTrial.m
...tibular chair/vPrime/core/experiment/trial/pb_vRunTrial.m
+14
-1
No files found.
setups/vestibular chair/vPrime/core/experiment/trial/pb_vRunTrial.m
View file @
56feb3ff
...
...
@@ -7,8 +7,21 @@ function pb_vRunTrial(handles)
% PBToolbox (2018): JJH: j.heckman@donders.ru.nl
%% Run zBus
cfg
.
zBus
.
zBusTrigA
(
0
,
0
,
2
);
% reset, clock start, (0,0,2): trigger entire rack, with a pulse structure, and 2 ms delay(2 ms = minimum).
%% Trigger event 1
% cfg.zBus.zBusTrigB(0, 0, 2); % start event 1, trial onset
cfg
.
zBus
.
zBusTrigB
(
0
,
0
,
2
);
% start event 1/trial onset; trigger zBus 4 = RA16;
%% Button Press
disp
(
'Waiting for RZ6 button press/sound/led/acquisition'
);
t
=
tic
;
while
~
cfg
.
RZ6_1
.
GetTagVal
(
'Wait'
)
% disp('waiting')
% do nothing
end
% sound is played after this loop exits.
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