Skip to content

Commit

Permalink
okay finally okay to record now
Browse files Browse the repository at this point in the history
  • Loading branch information
balajisriram committed Jul 28, 2017
1 parent 4f69caf commit 6b4ccbe
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
10 changes: 7 additions & 3 deletions classes/core/BCoreUtil.m
Original file line number Diff line number Diff line change
Expand Up @@ -975,9 +975,13 @@ function replicateTrialRecords(paths,deleteOnSuccess)
try
out = max(ranges(2,:));
catch ex
getReport(ex);
keyboard
out = 0;
switch ex.identifier
case 'MATLAB:badsubscript'
disp('came here because this is probably the first trial for the animal');
out = 0;
otherwise
rethrow(ex)
end
end
end

Expand Down
2 changes: 0 additions & 2 deletions classes/core/protocols/trialManagers/trialManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,6 @@
= tm.updateFrameIndexUsingTextureCache(frameIndexed, loop, trigger, timeIndexed, frameIndex, indexedFrames, size(stim,3), isRequesting, ...
i, frameNum, timedFrames, responseOptions, done, doFramePulse, didPulse, scheduledFrameNum);
indexPulse=getIndexPulse(spec,i);
fprintf('\ndone is %d\n',done)
switch strategy
case 'textureCache'
tm.drawFrameUsingTextureCache(window, i, frameNum, size(stim,3), lastI, dontclear, textures(i), destRect, ...
Expand Down Expand Up @@ -1187,7 +1186,6 @@
end

timestamps.enteringPhaseLogic=GetSecs;
fprintf('\ndone is %d\n',done)
if ~paused
result = trialRecords(trialInd).result;
tD = trialRecords(trialInd).trialDetails;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function sendZMQ(s,str)
while keepWorking
trialNum=trialNum+1;

s.sendZMQ(sprintf('TrialStart::%d'),trialNum+lastTrialNumForSubject);
s.sendZMQ(sprintf('TrialStart::%d',trialNum+lastTrialNumForSubject));
[subject, r, keepWorking, ~, trialRecords, s]= ...
subject.doTrial(r,s,rn,trialRecords,sessionNumber,compiledRecords);
s.sendZMQ('TrialEnd');
Expand Down
Binary file added util/phys/zeromq/libzmq-v120-mt-4_0_4.dll
Binary file not shown.
Binary file added util/phys/zeromq/zeroMQwrapper.mexw32
Binary file not shown.

0 comments on commit 6b4ccbe

Please sign in to comment.