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
4f91f445
Commit
4f91f445
authored
May 07, 2019
by
Jesse Heckman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fix runLSL
parent
184e3d68
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
setups/vestibular chair/vPrime/core/experiment/data/pb_vStoreData.m
...tibular chair/vPrime/core/experiment/data/pb_vStoreData.m
+5
-5
setups/vestibular chair/vPrime/core/experiment/pb_vRunExp.m
setups/vestibular chair/vPrime/core/experiment/pb_vRunExp.m
+1
-1
setups/vestibular chair/vPrime/led/pb_vSimuLED.m
setups/vestibular chair/vPrime/led/pb_vSimuLED.m
+1
-1
No files found.
setups/vestibular chair/vPrime/core/experiment/data/pb_vStoreData.m
View file @
4f91f445
function
pb_vStoreData
(
h
,
dat
)
function
pb_vStoreData
(
h
,
dat
,
bn
)
% PB_VSTOREBLOCKDAT
%
% PB_VSTOREBLOCKDAT(cfg, Dat) stores 'Dat' Data in files.
...
...
@@ -9,10 +9,10 @@ function pb_vStoreData(h, dat)
cfg
=
h
.
cfg
;
dat
(
iBlck
)
.
event_data
=
str
(
1
)
.
read
;
dat
(
iBlck
)
.
pupil_labs
=
str
(
2
)
.
read
;
dat
(
iBlck
)
.
optitrack
=
str
(
3
)
.
read
;
dat
(
iBlck
)
.
block_info
=
handles
.
block
(
iBlck
);
dat
(
bn
)
.
event_data
=
str
(
1
)
.
read
;
dat
(
bn
)
.
pupil_labs
=
str
(
2
)
.
read
;
dat
(
bn
)
.
optitrack
=
str
(
3
)
.
read
;
dat
(
bn
)
.
block_info
=
handles
.
block
(
bn
);
[
~
,
fn
]
=
pb_fext
(
cfg
.
fname
);
file
=
[
cfg
.
dname
filesep
'block_info_'
fn
'.mat'
];
...
...
setups/vestibular chair/vPrime/core/experiment/pb_vRunExp.m
View file @
4f91f445
...
...
@@ -95,7 +95,7 @@ function pb_vRunExp(handles)
pb_stopLSL
(
ses
);
% store data
pb_vStoreData
(
handles
,
Dat
);
pb_vStoreData
(
handles
,
Dat
,
iBlck
);
% update block information
handles
.
cfg
=
pb_updatecount
(
handles
.
cfg
,
'block'
,
'count'
);
...
...
setups/vestibular chair/vPrime/led/pb_vSimuLED.m
View file @
4f91f445
...
...
@@ -15,7 +15,7 @@ function led = pb_vSimuLED(led)
led
(
iT
)
.
ondelay
==
led
(
iT
-
1
)
.
ondelay
&&
...
led
(
iT
)
.
offdelay
==
led
(
iT
-
1
)
.
offdelay
if
led
(
iT
)
.
Z
~=
tmp
(
ctmp
)
.
Z
% but different location (sanity check)
tmp
(
ctmp
)
.
Z
=
[
tmp
(
ctmp
)
.
Z
,
led
(
iT
)
.
Z
];
tmp
(
ctmp
)
.
Z
=
[
tmp
(
ctmp
)
.
Z
,
led
(
iT
)
.
Z
];
end
else
ctmp
=
ctmp
+
1
;
...
...
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