Commit bdd9ad59 authored by Jesse Heckman's avatar Jesse Heckman

vPrime implement auditory stimulation

parent 85b805d8
...@@ -10,8 +10,6 @@ function [stim, cfg] = pb_vSetupTrial(stim,cfg) ...@@ -10,8 +10,6 @@ function [stim, cfg] = pb_vSetupTrial(stim,cfg)
%% Set TDT parameters %% Set TDT parameters
selled = strcmpi({stim.modality},'LED'); selled = strcmpi({stim.modality},'LED');
selacq = strcmpi({stim.modality},'data acquisition');
% seltrg = strcmpi({stim.modality},'trigger');
selsnd = strcmpi({stim.modality},'sound'); selsnd = strcmpi({stim.modality},'sound');
%% LED %% LED
...@@ -69,16 +67,18 @@ function [stim, cfg] = pb_vSetupTrial(stim,cfg) ...@@ -69,16 +67,18 @@ function [stim, cfg] = pb_vSetupTrial(stim,cfg)
end end
%% Sound %% Sound
% [RP2tag1,RP2tag2,~,MUXind,MUXbit1,SpeakerChanNo] = GvB_SoundSpeakerLookUp(azrnd(ii),elrnd(ii),RP2_1,RP2_2,LedLookUpTable);
% GvB_MUXSet(RP2tag1,RP2tag2,MUXind,MUXbit1,'set');
if any(selsnd) if any(selsnd)
snd = stim(selsnd); snd = stim(selsnd);
nsnd = numel(snd); nsnd = numel(snd);
for sndIdx = 1:nsnd for sndIdx = 1:nsnd
%% FOR NOW I LEAVE THIS OUT!! sndsetup = cfg.lookup(snd(sndIdx).Z+1,2:4);
%pb_vSetSound(snd(sndIdx),cfg,'RZ6_1'); switch sndsetup(1)
%% FOR NOW I LEAVE THIS OUT!! case 1
maxSamples = setSound(snd(sndIdx),cfg,'RP2_1');
case 2
maxSamples = setSound(snd(sndIdx),cfg,'RP2_2');
end
end end
end end
......
...@@ -14,7 +14,7 @@ function pb_vRunExp(handles) ...@@ -14,7 +14,7 @@ function pb_vRunExp(handles)
% load & read experiment % load & read experiment
% set debug mode % set debug mode
debug = true; debug = false;
% set handles % set handles
pb_setupShow(handles); pb_setupShow(handles);
......
...@@ -26,7 +26,7 @@ end ...@@ -26,7 +26,7 @@ end
function auth = getcredentials(srv) function auth = getcredentials(srv)
% obtains authentication credentials for server % obtains authentication credentials for server
doi = [userpath '.credentials']; doi = [userpath filesep '.credentials'];
if ~isfolder(doi); mkdir(doi); end if ~isfolder(doi); mkdir(doi); end
fn = [doi filesep srv '.crd']; fn = [doi filesep srv '.crd'];
......
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