Commit c1a02dc6 authored by Jesse Heckman's avatar Jesse Heckman

update tdt circuit

parent 212af81e
......@@ -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
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
......
......@@ -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
......
......@@ -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:
......
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) %
% %
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment