NEC'2011 VARNA BULGARIA Time-of-flight system for controlling the beam composition P.Batyuk, I.Gnesi, V.Grebenyuk, A.Nikiforov, G.Pontecorvo, F. Tosello JINR, 2011 Time-of-flight system for controlling the beam composition Monitoring the beam composition Two main reasons for composition change: instability of currents in the elements of magnetic optics inaccurate positioning of target station For monitoring the beam composition by transit time the system was built based on CAMAC (Computer-Aided Measurement and Control) modules and ETHERNET Crate Controller from CAEN. The system block diagram Remote connection To connect the CAMAC Create with remote PC were used: C111C Ethernet CAMAC Create Controller program for remote connection PC with CAMAC Create Four main parts of program: socket creation (socket with two parameters: IP address, port number) establish a client - server connection data exchange socket destruction Socket connection The server is a controller and a program is a client Data exchange mode command F24 is used to stop the spectrum accumulation in memory module; command F17 makes output in the line; after LAM signal program switches into spectrum reading mode; command F16 is used to read data from memory. Results Spectra were obtained at different currents in the lens ML31, which focuses beam on the target. ML31=-21,14 0,43ns/ch 18000 16000 14000 12000 N 10000 8000 6000 4000 2000 0 0 10 20 30 40 50 60 70 80 90 100110120130140150160170180190200 time Results Spectra were obtained for study of the beam Spectra shows suitability of the system work ML31=-21,14 0,43ns/ch 18000 16000 14000 12000 N 10000 8000 6000 4000 2000 0 0 10 20 30 40 50 60 70 80 90 100110120130140150160170180190200 time References V. F. Boreyko, Y. M. Valuev, V. M. Grebenuk and oth. JINR report R10-85-661, Dubna, 1985; V. M. Grebenuk, A. V. Selikov, JINR preprint R10-90-335, Dubna, 1990; V. A. Antuhov, D. Vasilev, N. I. Jouravlev and oth. JINR report R10-86-854, Dubna, 1985; V. A. Antuhov, D. Vasilev, N. I. Jouravlev and oth. JINR report R10-85-922, Dubna, 1985; CAEN Technical Information Manual. Revision n.9 27 May 2009.