Commit ae924bf1 authored by Simone Liuzzo's avatar Simone Liuzzo

MeasureOrbitResponseMatrix: reintroduced try catch for each corrector in the scan

parent 1625a9bc
......@@ -453,7 +453,7 @@ bv(2).YDataSource ='stdv';
disp(['Measure Orbit RM for ' num2str(length(hlist)) ' / ' num2str(NHall) ' horizontal correctors']);
for ii = 1:length(hlist)
% try
try
% measure
resp = measure('H',deltah,ii);
......@@ -469,10 +469,10 @@ for ii = 1:length(hlist)
refreshdata(axH,'caller');
drawnow;
% catch err
% disp(err);
% error(['Error evaluating response for ' hnames{ii}]);
% end
catch err
disp(err);
error(['Error evaluating response for ' hnames{ii}]);
end
end
if RF
......@@ -503,7 +503,7 @@ end
disp(['Measure Orbit RM for ' num2str(length(vlist)) ' / ' num2str(NVall) ' vertical correctors']);
for ii = 1:length(vlist)
% try
try
% measure
resp = measure('V',deltav,ii);
......@@ -519,10 +519,10 @@ for ii = 1:length(vlist)
refreshdata(axV,'caller');
drawnow;
% catch err
% disp(err);
% error(['Error evaluating response for ' vnames{ii}]);
% end
catch err
disp(err);
error(['Error evaluating response for ' vnames{ii}]);
end
end
save(['OrbitResponseMatrix' measurementtime '.mat'],...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment