% XC02 Analysis

% Load XC01 data to compare to XC02
cd('C:\Magnet_Data\LCLS-II\Corr\XC01');
Wire_XC01 = Plot_wireplt_intstr_dev(4,3,1,1); 

% Load XC02 data
cd('C:\Magnet_Data\LCLS-II\Corr\XC02');
Wire_XC02 = Plot_wireplt_intstr_dev(1,3,1,1); 
Load_wirepltvsx(1);
Load_wirepltvsx(2);
Load_wirepltvsx(3);


% Compare integrated strength at +/-3 amps.  Subtract zero current reading

SL_ratio_XC02_XC01_3A = (Wire_XC02.SL(13)-Wire_XC02.SL(1))/(Wire_XC01.SL(13)-Wire_XC01.SL(1));

SL_ratio_XC02_XC01_m3A = (Wire_XC02.SL(37)-Wire_XC02.SL(25))/(Wire_XC01.SL(37)-Wire_XC01.SL(25));

SL_ratio_XC02_XC01_3A_nc = (Wire_XC02.SL(13))/(Wire_XC01.SL(13));

SL_ratio_XC02_XC01_m3A_nc = (Wire_XC02.SL(37))/(Wire_XC01.SL(37));