Files
ofm/Flowcytometer_Focusing_Jeevan2018/gotoZ.m
moonanjum26 188e46804b first commit
2018-08-10 12:01:05 +05:30

14 lines
550 B
Matlab

function gotoZ(s,check,currzpos)
ZPulseRate = 38400;
if(check<200000 && check>-200000)
str = sprintf('%06d',abs(round(check))); % abs needed so that no +&- in neg numbers
if((check) < 0)
newstr = strcat('-',str);
else
newstr = strcat('+',str);
end
disp(strcat('moving to position:',newstr))
% end formatting ---------- --------------------------------------------
fprintf(s,'M'); fprintf(s, newstr ); pause(0.035);
end
end