% This function was written by Tom Spinka on Sept. 28, 2007 for converting
% the stacked-ascii format of position in the Lambda-Physik FL3001/3002 Dye
% Laser to an integer position count.
function ConvertedOutput = DyeLaserAsciiToDec(ConvertInput)
StrLen = length(ConvertInput);
ConvertMid = ConvertInput;
for n = 1:StrLen
ConvertMid(StrLen + 1 - n) = dec2hex(ConvertInput(n) - 'A');
end
ConvertedOutput = hex2dec(ConvertMid);