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
70f37c58
Commit
70f37c58
authored
Oct 16, 2018
by
Jesse Heckman
Browse files
add LSL
parent
697e4e54
Changes
1
Hide whitespace changes
Inline
Side-by-side
subtools/lsl/pb_runLSL.m
View file @
70f37c58
...
...
@@ -8,13 +8,13 @@ function ses = pb_runLSL()
% PBToolbox (2018): JJH: j.heckman@donders.ru.nl
streams
=
{
'type=
''
Digital Events @ lslder00
''
and name=
''
Digital Events 1
''
'
,
...
'type=
''
Pupil Capture @ pupil-
hp
desktop
''
and name=
''
Pupil Primitive Data - Eye 0
''
'
,
...
'type=
''
Pupil Capture @ pupil-desktop
''
and name=
''
Pupil Primitive Data - Eye 0
''
'
,
...
'type=
''
Optitrack @ MOTIVE
''
and name=
''
Motive Data
''
'
};
ses
=
lsl_session
();
str
=
lsl_istream
.
empty
(
0
,
3
);
for
iStrm
=
1
:
length
(
streams
)
for
iStrm
=
1
:
1
%
length(streams)
% Find, select and make streams for LSL.
tmp
=
strrep
(
streams
(
iStrm
),
'type=
''
'
,
''
);
tmp
=
tmp
{
1
}(
1
:
find
(
tmp
{
1
}
==
'@'
,
1
)
-
2
);
...
...
@@ -33,7 +33,7 @@ function ses = pb_runLSL()
end
addlistener
(
str
(
1
),
'DataAvailable'
,
@
ev_listener
);
addlistener
(
str
(
2
),
'DataAvailable'
,
@
pl_listener
);
%
addlistener(str(2),'DataAvailable',@pl_listener);
% addlistener(str(3),'DataAvailable',@ot_listener);
end
...
...
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