@@ -120,13 +120,19 @@ if ~isfield(qemres,'bvrot'), qemres.bvrot=ones(nbpm,1); end
qemres.brot=0.5*(qemres.bhrot+qemres.bvrot);
% store wrong BPMS
try
bpms_dev=tango.Device('sr/d-bpmlibera/all');
qemres.wrongbpms=find(bpms_dev.All_Status.read~=0);% index of BPMS that are not green in libera manager.
catcherr
disp(err);
qemres.wrongbpms=[];
warning('tango not available');
if~isfield(qemres,'wrongbpms')% if this command is reached from Browse, the wrong BPMS must be those defined during the measurement and thus not changed.