Replace sendEvent.m
Compare changes
+ 14
− 6
@@ -95,6 +95,8 @@ function [tme, decEvents] = sendEvent(stdEvents, extraEvents, camEvents)
@@ -95,6 +95,8 @@ function [tme, decEvents] = sendEvent(stdEvents, extraEvents, camEvents)
@@ -102,7 +104,7 @@ global SETUP
@@ -102,7 +104,7 @@ global SETUP
@@ -111,7 +113,7 @@ if(strcmpi(stdEvents, 'trlmtch'))
@@ -111,7 +113,7 @@ if(strcmpi(stdEvents, 'trlmtch'))
binVec = rem(floor((stdEvents+extraEvents) ./ SETUP.events.powersOf2),2) & SETUP.events.pinsLen > 3;
@@ -123,13 +125,14 @@ end
@@ -123,13 +125,14 @@ end
@@ -138,11 +141,16 @@ if strcmpi(SETUP.ephysSetup,'Deuteron') && ~strcmpi(stdEvents, 'itiOn')
@@ -138,11 +141,16 @@ if strcmpi(SETUP.ephysSetup,'Deuteron') && ~strcmpi(stdEvents, 'itiOn')
bIO(SETUP.events.pins, binVec(1:length(SETUP.events.pins))); % same as previous event code architecture
bIO(SETUP.events.pins, binVec(1:length(SETUP.events.pins))); % same as previous event code architecture