migrate to latex document

This commit is contained in:
2019-01-31 14:42:50 +01:00
parent ad5e162d73
commit 0d0eb2fe7a
31 changed files with 3220 additions and 76003 deletions

View File

@@ -62,7 +62,7 @@ function [mot1,mot2]=identifyFxFyStage()
s=str2ndOrd(tfc);
t=(0:199)*50E-6;
[y,t]=step(tfc,t);
figure();
f=figure();f.Position=[200,100,900,500]
subplot(1,2,1);
plot(t*1000,obj.currstep.OutputData(11:210),'b',t*1000,y*1000,'r');
xlabel('ms')
@@ -73,6 +73,8 @@ function [mot1,mot2]=identifyFxFyStage()
subplot(1,2,2);
h=bodeplot(tfc,'r');
setoptions(h,'FreqUnits','Hz','Grid','on');
%print(sprintf('figures/currstep_%d',obj.id),'-dpng','-r0');
print(f,sprintf('figures/currstep_%d',obj.id),'-depsc');
end
function s=str2ndOrd(tf)
@@ -109,13 +111,17 @@ function [mot1,mot2]=identifyFxFyStage()
function plotBode(mot)
t1=tf(mot.ssPlt);t2=tf(mot.ssMdl_c1);t3=tf(mot.ssMdl_12);h=bodeplot(mot.meas,'r',t1(3,1),'g',t2(3,1),'b',t3(1,1),'m',mot.w);
setoptions(h,'FreqUnits','Hz','Grid','on');
p=getoptions(h);p.YLim{2}=[-360 90];p.YLimMode='manual';setoptions(h,p);
ax=h.getaxes();
legend(ax(1),'Location','sw',{'real','plant','no res','no cur + 1 res'});
print(gcf,sprintf('figures/plotBode_%d',mot.id),'-depsc');
end
function mot=fyStage()
motid=1;
mot=loadData('/home/zamofing_t/Documents/prj/SwissFEL/epics_ioc_modules/ESB_MX/python/MXTuning/18_10_02/',motid);
%mot=loadData('/home/zamofing_t/Documents/prj/SwissFEL/epics_ioc_modules/ESB_MX/python/MXTuning/18_10_02/',motid);
mot=loadData('/home/zamofing_t/Documents/prj/SwissFEL/epics_ioc_modules/ESB_MX/python/MXTuning/19_01_29/',motid);
mot.id=motid;
mot.tfc=currstep(mot);
@@ -207,7 +213,8 @@ function [mot1,mot2]=identifyFxFyStage()
function mot=fxStage()
motid=2;
mot=loadData('/home/zamofing_t/Documents/prj/SwissFEL/epics_ioc_modules/ESB_MX/python/MXTuning/18_10_02/',motid);
%mot=loadData('/home/zamofing_t/Documents/prj/SwissFEL/epics_ioc_modules/ESB_MX/python/MXTuning/18_10_02/',motid);
mot=loadData('/home/zamofing_t/Documents/prj/SwissFEL/epics_ioc_modules/ESB_MX/python/MXTuning/19_01_29/',motid);
mot.id=motid;
currstep(mot);