function viewref
if(~exist('dcinj.Scan.001','file'))
    error('cannot find Scan file')
end

X = load('dcinj.Scan.001');

if (isempty(findobj('Tag','scan')))
   scrsz = get(0,'ScreenSize');
   figure('Position',[scrsz(3)/3 100 scrsz(3)/2.5 scrsz(4)/2.5], 'Tag', 'scan', 'Name', 'viewscan');
else
    figure(findobj('Tag', 'scan'));
end

plot(X(:,1),X(:,3),'.-b');
xlabel('scanned parameter');
ylabel('output value');
