Commit 1223a27b authored by Jesse Heckman's avatar Jesse Heckman
Browse files

organized vPrime structure

parent 0c2bd26b
function handles = pb_vRecordData(handles, data)
% PB_VRECORDDATA(HANDLES, DATA)
function pb_lightshow
% PB_LIGHTSHOW
%
% PB_VRECORDDATA(HANDLES, DATA) ...
% PB_LIGHTSHOW turns on the spectecular lightshow.
%
% See also PB_VPRIME, PB_VPRIMEGUI, PB_VRUNEXP
% See also PB_VENDEXP
% PBToolbox (2018): JJH: j.heckman@donders.ru.nl
cfg = handles.cfg;
cd([cfg.dname filesep 'trial'])
[~,prefix] = pb_fext(cfg.fname);
fname = [prefix '-' num2str(cfg.trialnumber,'%04d') '.vc'];
import org.zeromq.ZMQ
n = 8;
s = ledpattern(n);
data = data; %% TO DO: <-- FIX: SELECT DATA FOR TRIAL ONLY
cfg = cfg; %% TO DO: <-- FIX: SELECT CFGs FOR TRIAL ONLY
seq1 = [0:2:9 fliplr(16:2:24)];
seq2 = [1:2:9 fliplr(17:2:24)];
ir=50;
ig=ir;
save(fname,'data', 'cfg', '-mat');
for i=1:n
if mod(i,2) == 0
s(i).set(seq1,'r');
else
s(i).set(seq2,'g');
end
s(i).intensity('r', ir);
s(i).intensity('g', ig);
end
leds = ledcontroller_pi('dcn-led06','dcn-led07');
leds.write(s);
handles.cfg = cfg;
for i=1:n
leds.trigger;
pause(0.35);
end
delete(s);
end
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
% %
......
Supports Markdown
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