SET_70MEV Summary of this function goes here Detailed explanation goes here linac fired 5 ms before (70 MeV versus 110 MeV)
0001 function set_70MeV 0002 %SET_70MEV Summary of this function goes here 0003 % Detailed explanation goes here 0004 % linac fired 5 ms before (70 MeV versus 110 MeV) 0005 0006 % % Get initial 110 MeV value 0007 % temp=tango_read_attribute2('ANS/SY/CENTRAL', 'TInjTimeDelay'); 0008 % TInj0=temp.value(1); 0009 % temp=tango_read_attribute2('ANS/SY/CENTRAL', 'ExtractionOffsetTimeValue'); 0010 % TExt0=temp.value(1); 0011 % save 'initial110MeV.mat' TInj0 TExt0 0012 0013 0014 % Step by delai Tinj and Text of central 0015 load 'initial110MeV.mat' TInj0 TExt0 0016 0017 delai=-5000; % in µs 0018 TInj=TInj0 + delai; 0019 tango_write_attribute2('ANS/SY/CENTRAL', 'TInjTimeDelay',TInj); 0020 0021 %TExt=TExt0 + delai; 0022 %tango_write_attribute2('ANS/SY/CENTRAL', 'TSprTimeDelay',TExt);