Skip to content

Commit f27cc6f

Browse files
author
Jai Bhagat
committed
add Nick's changes from #164
1 parent c2d3ab5 commit f27cc6f

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

+hw/+ptb/Window.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ function applyCalibration(obj, cal)
479479
tt = (1:ns)/acqRate;
480480

481481
figure; plot(tt,clock);
482+
ylabel('clock signal'); title('Clock');
482483

483484
upCrossings = find(diff( clock > 1 ) == 1);
484485
dnCrossings = find(diff( clock > 1 ) == -1);
@@ -490,7 +491,7 @@ function applyCalibration(obj, cal)
490491
end
491492
plot( tt, light ); hold on
492493
xlabel('Time (s)');
493-
ylabel('Signal (Volts)');
494+
ylabel('Photodiode Signal (Volts)');
494495
set(gca,'ylim',[0 1.1*max(light)]);
495496
title(sprintf('In this plot. digital has been delayed by %2.2f ms', delay));
496497

+srv/expServer.m

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,11 +359,13 @@ function whiteScreen()
359359
function calibrateGamma()
360360
stimWindow = rig.stimWindow;
361361
DaqDev = rig.daqController.DaqIds;
362-
lightIn = 'ai0'; % defaults from hw.psy.Window
363-
clockIn = 'ai1';
364-
clockOut = 'port1/line0 (PFI4)';
365-
log(['Please connect photodiode to %s, clockIn to %s and clockOut to %s.\r'...
366-
'Press any key to contiue\n'],lightIn,clockIn,clockOut);
362+
lightIn = 'ai1'; % defaults from hw.psy.Window
363+
clockIn = 'ai0';
364+
clockOut = 'port1/line0';
365+
clockOutHint = 'PFI4';
366+
log(['Please connect photodiode to %s, clockIn to %s and clockOut to '...
367+
'%s (%s).\r Press any key to contiue\n'],...
368+
lightIn,clockIn,clockOut, clockOutHint);
367369
pause; % wait for keypress
368370
stimWindow.Calibration = stimWindow.calibration(DaqDev); % calibration
369371
pause(1);

cortexlab/+git/changes.m

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)