Skip to content

Commit bd66a9f

Browse files
committed
Attempt to decrease timestamp jitter by recording the timestamp before the data are plotted. Not sure this helps.
1 parent d00b772 commit bd66a9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

completed/private/plotImageData.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ function plotImageData(imData,h,saveFname,scanPattern)
2626
%The number of points on one line (larger then imSize if fillFraction < 1)
2727
pointsPerLine = ceil(size(imData,1) / imSize);
2828

29-
29+
timeStamp = now*60^2*24*1E3; %MATLAB serial date in ms. This is used for saving.
30+
3031
for chan = 1:size(imData,2)
3132

3233
im = reshape(imData(:,chan), pointsPerLine, imSize);
@@ -84,7 +85,6 @@ function plotImageData(imData,h,saveFname,scanPattern)
8485
thisFname = saveFname;
8586
end
8687
im = im * 2^16/2 ; %ensure values span 16 bit range (TODO: hard-coded, above)
87-
timeStamp = now*60^2*24*1E3; %MATLAB serial date in ms
8888

8989
imwrite(uint16(im), thisFname, 'tiff', ...
9090
'Compression', 'None', ...

0 commit comments

Comments
 (0)