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
ccf6674e
Commit
ccf6674e
authored
Nov 21, 2018
by
Jesse Heckman
Browse files
update vPrime signal
parent
974bcb9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
setups/vestibular chair/vPrime/core/experiment/trial/pb_vStoreData.m
View file @
ccf6674e
function
handles
=
pb_vStoreData
(
handles
,
data
,
stim
)
function
handles
=
pb_vStoreData
(
handles
,
data
)
% PB_VSTOREDATA(HANDLES, DATA)
%
% PB_VSTOREDATA(HANDLES, DATA) stores all the trial data and configurements
...
...
@@ -15,21 +15,21 @@ function handles = pb_vStoreData(handles, data,stim)
fname
=
[
prefix
'-'
num2str
(
cfg
.
trialnumber
(
2
),
'%04d'
)
'.vc'
];
data
=
data
;
%% TO DO: <-- FIX: SELECT DATA FOR TRIAL ONLY
beta
=
setCFG
(
cfg
,
stim
);
%% TO DO: <-- FIX: SELECT CFGs FOR TRIAL ONLY
beta
=
setCFG
(
cfg
);
%% TO DO: <-- FIX: SELECT CFGs FOR TRIAL ONLY
save
(
fname
,
'data'
,
'beta'
,
'-mat'
);
handles
.
cfg
=
cfg
;
end
function
beta
=
setCFG
(
cfg
,
stim
)
function
beta
=
setCFG
(
cfg
)
% stores relevant handles into a new trial cfg
beta
=
struct
(
'blocknumber'
,[],
...
'trialnumber'
,[],
...
'vestibularsignal'
,[],
...
'nstim'
,[],
...
'stim'
,
stim
);
'stim'
,
[]
);
beta
.
blocknumber
=
cfg
.
blocknumber
;
beta
.
trialnumber
=
cfg
.
trialnumber
;
...
...
setups/vestibular chair/vPrime/core/pb_vRunExp.m
View file @
ccf6674e
...
...
@@ -72,7 +72,7 @@ function pb_vRunExp(handles)
pb_vRunTrial
(
handles
.
cfg
.
zBus
,
handles
.
cfg
.
trialdur
);
pb_vTraces
(
handles
);
handles
=
pb_vStoreData
(
handles
,
sig
,
stim
);
handles
=
pb_vStoreData
(
handles
,
sig
);
handles
.
cfg
=
updateCount
(
handles
.
cfg
,
'trial'
,
'count'
);
toc
(
trialTime
)
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