Presentation is loading. Please wait.

Presentation is loading. Please wait.

+ SwissFEL Matlab Toolbox ADAQA used for Emittance Measurements Bolko Beutner, Rasmus Ischebeck PSI / DESY / KIT Mini-Workshop on Longitudinal Diagnostics.

Similar presentations


Presentation on theme: "+ SwissFEL Matlab Toolbox ADAQA used for Emittance Measurements Bolko Beutner, Rasmus Ischebeck PSI / DESY / KIT Mini-Workshop on Longitudinal Diagnostics."— Presentation transcript:

1 + SwissFEL Matlab Toolbox ADAQA used for Emittance Measurements Bolko Beutner, Rasmus Ischebeck PSI / DESY / KIT Mini-Workshop on Longitudinal Diagnostics for FELs

2 + SwissFEL Introduction ADAQA “Do it yourself! - Scan Tools” SITF Emittance Measurement Application Overview 11.03.20132Beutner PSI / DESY / KIT Mini-Workshop

3 + SwissFEL Optics based emittance measurements: –Beam moments are determined at a reference point using either: one screen while varying the quadrupole settings at multiple positions along a constant lattice –Slice resolved measurements in combination with a transverse deflecting rf-structure Introduction to Emittance Measurements Beutner PSI / DESY / KIT Mini-Workshop11.03.20133 screen quadrupole reference point

4 + SwissFEL Beam size at point i as a function of initial beam moments: From the beam moments emittance (and twiss parameters) are determined: In an ideal measurement three data points are sufficient: In a real measurement more then three data points are taken and the beam moments are determined by a least square fit: Emittance Measurements Beutner PSI / DESY / KIT Mini-Workshop11.03.20134 determined by diagnostics provided by beam dynamics

5 + SwissFEL These measurements need to be automatised for standard operation and commissioning, task are e.g.: –moving screens in and out –varying quadrupole settings –restore initial lattice configuration A successful measurement procedure (high level application) needs to be reliable, robust, and usable “Always have the operator at the end of the night shift in mind!” Accelerator operation in general relies on data acquisition and parameter scans In the various applications the requirements are actually quite similar  Tasks should be unified and standardised to prevent that every application developer “reinvents the wheel”  ADAQA - An Accelerator Data Acquisition & Analysis Framework Scan Framework 11.03.2013Beutner PSI / DESY / KIT Mini-Workshop5

6 + SwissFEL Have a universal scan and data acquisition software Well-tested scan core Universal GUI to set up scan easily Specialized GUIs for easy access for regularly performed scans Error checking and treatment Common HDF5-based file format for easy access from any data analysis code Automatic generation of logbook entries Link to auxiliary information on accelerator configuration Synchronized data acquisition ADAQA Goals Beutner PSI / DESY / KIT Mini-Workshop11.03.20136

7 + SwissFEL Hierarchical format to store Instruments Based on HDF5 Readable from Matlab, Root, Mathematica Meta information stored together with raw data ADAQA Data File Format Beutner PSI / DESY / KIT Mini-Workshop11.03.20137

8 + SwissFEL ADAQA consists of several separate building blocks Applications, written by different programmers, make use of the same data acquisition code Instruments gather connected devices Logbook Common data storage format Online model* Device information server* Synchronized data acquisition ongoing work, not yet ready for prime time ADAQA Layers Beutner PSI / DESY / KIT Mini-Workshop11.03.20138

9 + SwissFEL Abstraction Layers Beutner PSI / DESY / KIT Mini-Workshop EPICS Machine Interface EPICS call Error handling Image data conversion 11.03.20139

10 + SwissFEL Abstraction Layers Beutner PSI / DESY / KIT Mini-Workshop Instruments and Knobs Assemble several connected values On-line data processing and actions Machine Interface EPICS call Error handling Image data conversion XML files 11.03.201310

11 + SwissFEL Scans Write data file Make entry in electronic logbook Abstraction Layers Beutner PSI / DESY / KIT Mini-Workshop Instruments and Knobs Assemble several connected values On-line data processing and actions Machine Interface EPICS call Error handling Image data conversion HDF5 files eLog 11.03.201311

12 + SwissFEL Graphical User Interfaces Programmed by different people Include Data Analysis Scans Write data file Make entry in electronic logbook Abstraction Layers Beutner PSI / DESY / KIT Mini-Workshop Instruments and Knobs Assemble several connected values On-line data processing and actions Machine Interface EPICS call Error handling Image data conversion 11.03.201312

13 + SwissFEL General purpose camera display and analysis tool In every day use for different kinds of cameras and screen monitors ScreenMonitorTool Beutner PSI / DESY / KIT Mini-Workshop Dione and Saturn http://www.ciclops.org 11.03.201313

14 + SwissFEL General Purpose Scan Tool Beutner PSI / DESY / KIT Mini-Workshop11.03.201314

15 + SwissFEL Scans can be stored in Template files The last scan is always stored as template –“Repeat Last Scan…”-Button Data files are scan templates as well –All scans can be exactly repeated Templates can handed over to the scan tool at startup –example: extracted charge vs. gun phase scan Scan Templates Beutner PSI / DESY / KIT Mini-Workshop11.03.201315

16 + SwissFEL Automatised logbook entries Beutner PSI / DESY / KIT Mini-Workshop11.03.201316

17 + SwissFEL General and specialised scan tools are possible with ADAQA –a wide variety of tools is available Common data format Templates –data files are templates – for all tools Actions –e.g. automatic screen insertion or background subtraction Analysis functions Automatic logbook entries Scan Tools Summary Beutner PSI / DESY / KIT Mini-Workshop11.03.201317

18 + SwissFEL “Atomic” Scan Tool Beutner PSI / DESY / KIT Mini-Workshop knob{1} = LoadKnobDefinition('beispielknopf');% setup Knob and Instrument knob{1}.SetpointValues = [1, 2.4, 3, 3.78, 92];% scan setpoints instrument{1} = LoadInstrumentDefinition('messgerät'); Setup.Function = 'scan';% define scan setup Setup.Repeat = 10;% “shots” per scan step Info.Author = 'Beutner';% human readable info Info.Title = 'PSI / DESY / KIT Mini-Workshop'; Info.Purpose = 'this is a small scan tool demo...'; [DAQFileName, Setup, knob, instrument, Info] =... daq(Setup,knob,instrument,Info);% execute scan % …insert your analysis code here… 11.03.201318

19 + SwissFEL Specialised Scan Tools Beutner PSI / DESY / KIT Mini-Workshop11.03.201319 Slit phase space measurements SFITF Phase I: 0.69+- 0.04 mm mrad (28.5.2010 22h36 240pC 4mm) Beutner

20 + SwissFEL Specialised Scan Tools Beutner PSI / DESY / KIT Mini-Workshop11.03.201320 details on the recent results in Eduards talk

21 + SwissFEL PhaseAdvanceScanYquads103050screen10 Phase advance scan for the SwissFEL Injector Test Facility Eduard Prat -30 115 5...... deg Example: Phase Advance Scan 11.03.2013Beutner PSI / DESY / KIT Mini-Workshop21 single knob definitions conversion definition multi knob definition Knobs can be complex objects elementary “real” physical devices, e.g. quardupoles combined knobs (“multiknobs”), e.g. phase advance

22 + SwissFEL FINXB_MQUA10 First quadrupole of triplet Rasmus Ischebeck FINXB-MQUA10:I-SET WaitForReadback FINXB-MQUA10:I-READ 0.01 30 -150 150 1 FINXB_MQUA30 Third quadrupole of triplet … FINXB_MQUA50 Quadrupole … single knob definitions 11.03.2013Beutner PSI / DESY / KIT Mini-Workshop22 knobs are defined together with meta information, e.g: Setpoint address Readback address Readback tolerance …

23 + SwissFEL [-30 2.04273683539658;-25 0.748887309389077;-20 0.0971496335411706;-15 -0.000918121618946049;-10 -0.0216119000232438; -5 0.00980251341760294;0 -0.0557424381418463;5 -0.116459427825846;10 -0.113380094019817;15 -0.246108126071639;20 -0.239298853871064; 25 -0.255596617640531;30 -0.25208977320422;35 -0.24595654357643;40 -0.266997068545583;45 -0.314186784499536;50 -0.358880874569263; 55 -0.401698937460339;60 -0.443058835646288;65 -0.487015259672127;70 -0.532098000869052;75 -0.579884231166207;80 -0.632870562506094; 85 -0.0629517265780923;90 2.15743693295165;95 2.37972964927422;100 2.69990368248615;105 3.18968966646168;110 3.38522034329962; 115 0.5287268545] [-30 -0.880723697602403;-25 0.00191133963863379;-20 3.15464833100623e-06;-15 0.0493722346639612;-10 0.0193248455497592; -5 0.0486940469799789;0 0;5 -0.0530772259347929;10 0.0483840355928447;15 -0.00313530484042866;20 -0.0211390140192314; 25 -0.0618041496377237;30 0.0486867334674523;35 -0.000268841391451621;40 -0.00834071752680627;45 -0.0578479281176601; 50 -0.105492863587517;55 -0.150286829312131;60 -0.194666265400403;65 -0.23987294666494;70 -0.286921778432734;75 -0.337549447955252; 80 -0.392248292399852;85 -1.14368299221449;90 -3.20028985613526;95 -3.20100027647703;100 -3.20267200123957;105 -3.20624348543728; 110 -2.71519873090041;115 1.07825787149935] [-30 -0.851651294449646;-25 -0.640318705119204;-20 -0.0824426718693631;-15 -0.0619035102966705;-10 0.0376900343358146; -5 -0.0639471131227083;0 0;5 -0.0635502192265349;10 0.0557315951293681;15 -0.0490755211064848;20 0.0447548514484068; 25 -0.0537334242106087;30 0.0647969893282539;35 -0.056401150513535;40 -0.0596318950518255;45 0.053871325541084; 50 0.163950099357457;55 0.267763061466868;60 0.368342467681773;65 0.474890675924827;70 0.584246249541997;75 0.700976456799814; 80 0.828546796590293;85 0.719489679075439;90 0.810024431476871;95 0.286349537972304;100 -0.129493886656587;105 -0.709815400339985; 110 -1.38789144848763;115 -2.33804985707657] conversion definition 11.03.2013Beutner PSI / DESY / KIT Mini-Workshop23 The abstract multiknob (phase advance) is connected to the physical knobs (quadrupoles) by a conversion table. Conversions can be given as numerical tables or formulas.

24 + SwissFEL An Accelerator Data Acquisition & Analysis Framework was developed for SwissFEL (and other facilities) ADAQA is routinely used at the SFITF Scope of applications is not restricted to simple scans, e.g. phase advance scans or slice emittance measurements are a standard application Thank You for Your Attention! Summary 11.03.2013Beutner PSI / DESY / KIT Mini-Workshop24


Download ppt "+ SwissFEL Matlab Toolbox ADAQA used for Emittance Measurements Bolko Beutner, Rasmus Ischebeck PSI / DESY / KIT Mini-Workshop on Longitudinal Diagnostics."

Similar presentations


Ads by Google