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
c1a02dc6
Commit
c1a02dc6
authored
Mar 12, 2019
by
Jesse Heckman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update tdt circuit
parent
212af81e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
27 deletions
+52
-27
setups/vestibular chair/vPrime/core/experiment/block/trial/pb_vSetSound.m
...r chair/vPrime/core/experiment/block/trial/pb_vSetSound.m
+1
-2
setups/vestibular chair/vPrime/lookup/vPrime Measurement.xlsx
...ps/vestibular chair/vPrime/lookup/vPrime Measurement.xlsx
+0
-0
setups/vestibular chair/vPrime/tdt/pb_tdtinit.m
setups/vestibular chair/vPrime/tdt/pb_tdtinit.m
+2
-2
subtools/draft/example_draft.m
subtools/draft/example_draft.m
+22
-23
subtools/tdt/pb_MUX.m
subtools/tdt/pb_MUX.m
+27
-0
No files found.
setups/vestibular chair/vPrime/core/experiment/block/trial/pb_vSetSound.m
View file @
c1a02dc6
...
...
@@ -39,8 +39,7 @@ function pb_vSetSound(snd,cfg,RZ6str)
cfg
.
RZ6_1
.
SetTagVal
(
'type2'
,
snd
.
filter2
.
type
);
cfg
.
RZ6_1
.
SetTagVal
(
'enable2'
,
snd
.
filter2
.
enable
);
MUX
(
cfg
.
(
RZ6str
),
sndsetup
(
1
),
sndsetup
(
2
));
pb_MUX
(
cfg
.
(
RZ6str
),
sndsetup
(
1
),
sndsetup
(
2
));
end
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
...
...
setups/vestibular chair/vPrime/lookup/vPrime Measurement.xlsx
View file @
c1a02dc6
No preview for this file type
setups/vestibular chair/vPrime/tdt/pb_tdtinit.m
View file @
c1a02dc6
...
...
@@ -16,8 +16,8 @@ function handles = pb_tdtinit(handles)
Fs
=
RZ6_1
.
GetSFreq
;
handles
.
cfg
.
RZ6Fs
=
Fs
;
for
muxIdx
=
1
:
2
MUX
(
RZ6_1
,
muxIdx
);
for
muxIdx
=
1
:
4
% muxID
pb_
MUX
(
RZ6_1
,
muxIdx
);
end
%% TDT status
...
...
subtools/draft/example_draft.m
View file @
c1a02dc6
...
...
@@ -4,33 +4,32 @@
pb_clean
;
% Empty
load
(
'exD_saccade'
);
% load example data
cfn
=
0
;
% Initialize current figure number
run
=
2
;
% Set # of blocks to run
run
=
1
;
% Set # of blocks to run
%% Block 1:
% Make figure 1: Plot data
if
run
>
cfn
% Make figure & draft-obj
cfn
=
pb_newfig
(
cfn
,
'size'
,[
0
0
17
17
],
'resize'
,
'off'
);
d
=
pb_draft
(
'x'
,
Saccades
.
GazeLatency
,
'y'
,
Saccades
.
HeadLatency
,
'color'
,
Saccades
.
Modality
);
% Plots
d
.
plot_rawdata
d
.
plot_vline
(
'type'
,
'mode'
);
d
.
plot_hline
(
'type'
,
'mode'
);
% Layout
d
.
set_axcomp
(
Saccades
.
Subject
);
d
.
set_title
(
'Saccade Latencies'
);
d
.
set_labels
(
'x'
,
'Gaze Latency (ms)'
,
'y'
,
'Head Latency (ms)'
);
d
.
set_grid
;
d
.
set_legend
(
'Entries'
,{
'Audio'
,
'Visual'
,
'Audiovisual'
});
% Build
d
.
draft
d
.
print
(
'disp'
,
true
);
end
% if run>cfn
% % Make figure & draft-obj
% cfn = pb_newfig(cfn,'size',[0 0 17 17],'resize','off');
% d = pb_draft('x',Saccades.GazeLatency,'y',Saccades.HeadLatency,'color',Saccades.Modality);
%
% % Plots
% d.plot_rawdata
% d.plot_vline('type','mode');
% d.plot_hline('type','mode');
%
% % Layout
% d.set_axcomp(Saccades.Subject);
% d.set_title('Saccade Latencies');
% d.set_labels('x','Gaze Latency (ms)','y','Head Latency (ms)');
% d.set_grid;
% d.set_legend('Entries',{'Audio','Visual','Audiovisual'});
%
% % Build
% d.draft
% d.print('disp',true);
% end
%% Block 2:
...
...
subtools/tdt/pb_MUX.m
0 → 100644
View file @
c1a02dc6
function
pb_MUX
(
RP
,
Device
,
Channel
)
% PB_MUX()
%
% PB_MUX() ...
%
% See also ...
% PBToolbox (2019): JJH: j.heckman@donders.ru.nl
if
nargin
<
3
Channel
=
0
;
end
RP
.
SetTagVal
(
'DeviceSelect'
,
Device
-
1
);
% select the device
if
Channel
% activate a channel
RP
.
SetTagVal
(
'ChanSelect'
,
Channel
-
1
);
% select the channel
end
RP
.
SoftTrg
(
1
);
end
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
% %
% Part of Programmeer Beer Toolbox (PBToolbox) %
% Written by: Jesse J. Heckman (2019) %
% %
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
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