function [info xnum xtxt xraw]=parsexls(fn)

if(~exist('fn','var') || isempty(fn))
	fn='*.xls';
end
dr=dir(fn);

if(isempty(dr))
	fprintf('XLS file missing\n');
	info='noxls';
	return;
end

[xnum,xtxt,xraw]=xlsread(dr(1).name);

info.Folder=xraw{1,2};
info.nAviClips=xraw{2,2};
info.CellWidth=xraw{4,2};
info.CellHeight=xraw{5,2};
info.FileNameTemplate=xraw{7,2};
info.ContShoot=xraw{8,2};
info.LVShoot=xraw{9,2};
info.Prescamble=xraw{10,2};
info.Voltage1=xraw{12,2};
info.VoltStartJpg1=xraw{14,3};
info.VoltStartHex1=xraw{16,4};
info.VoltStartFnum1=fname2fnum(xraw{14,3});
info.SecondRun=xraw{18,2};
info.PauseStartJpg=xraw{19,3};
info.PauseStartHex=xraw{21,4};
info.PauseStartFnum=fname2fnum(xraw{19,3});
info.Voltage2=xraw{24,2};
info.VoltStartJpg2=xraw{26,3};
info.VoltStartHex2=xraw{28,4};
info.VoltStartFnum2=fname2fnum(xraw{26,3});
info.RunEndJpg=xraw{30,3};
info.RunEndHex=xraw{31,4};
info.RunEndFnum=fname2fnum(xraw{30,3});
info.Nf=xraw{32,2};
