Skip to content

Commit

Permalink
completed file load and frame time extraction code in preorocessPhoto…
Browse files Browse the repository at this point in the history
…diodeStrobe
  • Loading branch information
sserene committed Dec 1, 2017
1 parent 7dbae83 commit 795232f
Show file tree
Hide file tree
Showing 3 changed files with 345 additions and 279 deletions.
4 changes: 3 additions & 1 deletion buildAnalysisParamFile.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@
analogInParams.plotFilterResult = 1; %#ok

photodiodeParams.needPhotodiode = 0;
photodiodeParams.channels = [1;2]; %#ok
photodiodeParams.frameRate = 85;
photodiodeParams.frameTriggerChannel = 1;
photodiodeParams.stimulusTriggerChannel = 2; %#ok

% parameters preprocessLogFile, see function for details
stimSyncParams.usePhotodiode = 0; %#ok
Expand Down
3 changes: 2 additions & 1 deletion checkAnalysisParamFile.m
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@
assert(ischar(photodiodeFilename),'Invalid analysis parameter file: photodiodeFilename must be a string');
end
if photodiodeParams.needPhotodiode
assert(isnumeric(photodiodeParams.channels))
assert(isnumeric(photodiodeParams.frameTriggerChannel));
assert(isnumeric(photodiodeParams.stimulusTriggerChannel));
end
end

Expand Down
Loading

0 comments on commit 795232f

Please sign in to comment.