Skip to content

Commit

Permalink
added drafts of photodiode strobe level calibrator and analysisParamF…
Browse files Browse the repository at this point in the history
…ile checker, added function to convert to degree measured polar coordinates to place stimulus at center of mapped rf quickly, modified preprocessSpikes to exit after extracting triggers if specified by needSpikes switch, and added isfield checks before plotSwitch checks in runAnalyses to streamline analysisParamFiles and make them more easily compatible across versions. Note siginficant current issue: cannot handle analog inputs from blackrock at different sampling frequencies.
  • Loading branch information
sserene committed Oct 17, 2017
1 parent 78ac63b commit 281d04c
Show file tree
Hide file tree
Showing 6 changed files with 833 additions and 49 deletions.
12 changes: 6 additions & 6 deletions buildAnalysisParamFile.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@


%%%%%%% USER PARAMETERS, EDIT ROUTINELY %%%%%%%%
runNum = '001';
dateSubject = '171004ALAN';
machine = 'laptop';
runNum = '005';
dateSubject = '171009ALAN';
machine = 'rig';

switch machine
case 'rig'
Expand Down Expand Up @@ -78,7 +78,7 @@
analogInParams.analogInChannels = [138,139,140];
analogInParams.channelNames = {'eyeX','eyeY','eyeD'};
analogInParams.analogInChannelScaleBy = [5/32764 5/32764 5/32764]; %converts raw values to volts
analogInParams.decimateFactorPass1 = 1; %note: product of the two decimate factors should be 30, if 1 khz samples desired
analogInParams.decimateFactorPass1 = 1;
analogInParams.decimateFactorPass2 = 1;
analogInParams.samPerMS = 1; %THIS IS AFTER DECIMATION, and applies to analogIn (should be raw rate/productOfDecimateFactors)
% see http://www.mathworks.com/help/signal/examples/filter-design-gallery.html
Expand Down Expand Up @@ -197,11 +197,11 @@
plotSwitch.prefImRaster = 0;
plotSwitch.prefImRasterEvokedOverlay = 0;
plotSwitch.prefImMultiChRasterEvokedOverlay = 0;
plotSwitch.imageTuningSorted = 1;
plotSwitch.imageTuningSorted = 0;
plotSwitch.stimPrefBarPlot = 1;
plotSwitch.stimPrefBarPlotEarly = 0;
plotSwitch.stimPrefBarPlotLate = 0;
plotSwitch.tuningCurves = 1;
plotSwitch.tuningCurves = 0;
plotSwitch.tuningCurvesEarly = 0;
plotSwitch.tuningCurvesLate = 0;
plotSwitch.RF = 1;
Expand Down
Loading

0 comments on commit 281d04c

Please sign in to comment.