Commit d15de6bf authored by Simone Liuzzo's avatar Simone Liuzzo
Browse files

added display of setpa and cv change in FirstTurns.correction

parent 71663bd0
......@@ -730,7 +730,18 @@ while (nbpmu<=length(indBPM)*corropt.maxturns) && ~stopped
num2str(std2(oyc(usebpm))*1e6,'%3.3f') ' um'])
disp(['H cor mean: ' num2str(mean(tothcor*1e6),'%3.3f') ' +/- (std)' num2str(std2(tothcor*1e6),'%3.3f') ' murad']);
disp(['V cor mean: ' num2str(mean(totvcor*1e6),'%3.3f') ' +/- (std)' num2str(std2(totvcor*1e6),'%3.3f') ' murad']);
disp(['RF cor mean: ' num2str(alpha*(deltacor)*f0,'%3.3f') ' Hz'])
if corropt.corRF
disp(['RF : ' num2str(f0) ' --> ' num2str(alpha*(deltacor)*f0,'%3.3f') ' Hz'])
end
if corropt.corTL2
disp(['S12: ' num2str(S120) '-->' num2str(S12)]);
disp(['S3: ' num2str(S30) '-->' num2str(S3)]);
disp(['CV8: ' num2str(CV80) '-->' num2str(CV8)]);
disp(['CV9: ' num2str(CV90) '-->' num2str(CV9)]);
end
clf(f);
set(0,'currentfigure',f);
......@@ -843,18 +854,20 @@ while (nbpmu<=length(indBPM)*corropt.maxturns) && ~stopped
if response == 'r' % REVERT
if corropt.corV
obj.setVSteerers(corv0);
obj.sv.set(corv0);
end
if corropt.corH
obj.setHSteerers(corh0);
obj.sh.set(corh0);
end
if corropt.corTL2
obj.setTL2CV([CV80 CV90]);
obj.setSepta([S120 S30]);
obj.cv8.set(CV80);
obj.cv9.set(CV90);
obj.s12.set(S120);
obj.s3.set(S30);
end
if corropt.corRF
obj.setRFFrequency(f0-alpha*(deltacor0)*f0);
obj.rf.set(f0-alpha*(deltacor0)*f0);
end
disp('Change correction parameters to improve next correction')
corropt = CorrectionParametersUpdate(obj,corropt);
......
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