Skip to content
GitLab
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
34b63a4b
Commit
34b63a4b
authored
Oct 16, 2018
by
Jesse Heckman
Browse files
add LSL
parent
c9a2d527
Changes
3
Hide whitespace changes
Inline
Side-by-side
setups/vestibular chair/vPrime/core/pb_vRunExp.m
View file @
34b63a4b
...
...
@@ -35,6 +35,8 @@ function pb_vRunExp(handles)
for
iBlck
=
1
:
nblocks
% Runs blocks of trials with a vestibular condition
ses
.
start
();
nTrials
=
length
(
block
(
iBlck
)
.
trial
);
handles
=
updateCount
(
handles
,
'trial'
,
'reset'
);
[
bDat
(
iBlck
),
profile
,
dur
]
=
pb_vSignalVC
(
handles
);
% reads, checks, creates & plots vestibular signals
...
...
setups/vestibular chair/vPrime/lookup/~$vPrime Measurement.xlsx
deleted
100644 → 0
View file @
c9a2d527
File deleted
subtools/lsl/pb_runLSL.m
View file @
34b63a4b
function
ses
=
pb_runLSL
()
% PB_RUNLSL()
%
% PB_RUNLSL()
..
.
% PB_RUNLSL()
creates a LSL session for VC
.
%
% See also
...
% See also
PB_VRUNEXP
% PBToolbox (2018): JJH: j.heckman@donders.ru.nl
streams
=
{
'type=
''
Digital Events @ lslder00
''
and name=
''
Digital Events 1
''
'
,
...
'type=
''
Pupil Capture @ pupil-desktop
''
and name=
''
Pupil Primitive Data - Eye 0
''
'
,
...
'type=
''
OptiTrack Mocap @ DCN
19
''
and name=
''
Labeled Markers
''
'
};
'type=
''
Pupil Capture @ pupil-desktop
.local
''
and name=
''
Pupil Primitive Data - Eye 0
''
'
,
...
'type=
''
OptiTrack Mocap @ DCN
-VSO3
''
and name=
''
Labeled Markers
''
'
};
ses
=
lsl_session
();
str
=
lsl_istream
.
empty
(
0
,
3
);
for
iStrm
=
1
:
1
%
length(streams)
for
iStrm
=
1
:
length
(
streams
)
% Find, select and make streams for LSL.
tmp
=
strrep
(
streams
(
iStrm
),
'type=
''
'
,
''
);
tmp
=
tmp
{
1
}(
1
:
find
(
tmp
{
1
}
==
'@'
,
1
)
-
2
);
...
...
@@ -32,24 +32,24 @@ function ses = pb_runLSL()
ses
.
add_stream
(
str
(
iStrm
));
end
addlistener
(
str
(
1
),
'DataAvailable'
,
@
ev_listener
);
%
addlistener(str(2),'DataAvailable',@pl_listener);
%
addlistener(str(3),'DataAvailable',@ot_listener);
addlistener
(
str
(
1
),
'DataAvailable'
,
@
ev_listener
);
addlistener
(
str
(
2
),
'DataAvailable'
,
@
pl_listener
);
addlistener
(
str
(
3
),
'DataAvailable'
,
@
ot_listener
);
end
function
ev_listener
(
src
,
event
)
%
disp('ev_listener called')
disp
(
'ev_listener called'
)
event
end
function
pl_listener
(
src
,
event
)
%
disp('pl_listener called');
%
event
disp
(
'pl_listener called'
);
event
end
function
ot_listener
(
src
,
event
)
%
disp('ot_listener called');
%
event
disp
(
'ot_listener called'
);
event
end
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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