%%
curr_exp = CorrGui.ExperimentConstructor('EyeMovement', 'D:\secure\Data\Analyzed\SWJ\SWJtest');
PSPSessions = { 'emPSPApril10' 'emPSPApril11' 'emPSPApril3' 'emPSPFeb13' 'emPSPFeb27' 'emPSPHoff' 'emPSPSheld' 'emPSPSmit' 'emPSPSten' 'emPSPWilk'  };

samples = {};
isInTrial = {};
blinks = {};
for i=1:length(PSPSessions)
    samples{i} = curr_exp.db.getsessvar( PSPSessions{i},'samples');
    isInTrial{i} = curr_exp.db.getsessvar( PSPSessions{i},'isInTrial');
    blinks{i} = curr_exp.db.getsessvar( PSPSessions{i},'blinkYesNo');
end

[ parameters ] = getswjparameters( samples, isInTrial, blinks, 500 );
parameters