Presentation is loading. Please wait.

Presentation is loading. Please wait.

Michael Borland Advanced Photon Source Using SDDS for Accelerator Commissioning and Operation Michael Borland Operations Analysis Group Advanced Photon.

Similar presentations


Presentation on theme: "Michael Borland Advanced Photon Source Using SDDS for Accelerator Commissioning and Operation Michael Borland Operations Analysis Group Advanced Photon."— Presentation transcript:

1 Michael Borland Advanced Photon Source Using SDDS for Accelerator Commissioning and Operation Michael Borland Operations Analysis Group Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml

2 Michael Borland Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml Introduction 1 High-level applications at APS are based on - A common self-describing file protocol. - A toolkit of commandline programs that manipulate such files. - Tcl/Tk scripts to manage these programs and create GUIs. 1 The protocol and programs are called "SDDS", for Self-Describing Data Sets

3 Michael Borland Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml Outline of Presentation 1 Concept and implementation 1 What is self-describing data? 1 SDDS file protocol and applications 1 SDDS toolkit programs 1 Advantages and problems 1 Who uses SDDS? 1 Applications 1 Demos

4 Michael Borland Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml Concept 1 A generic data processing algorithm: Output = O n... O 2 O 1 Input 1 Write programs that act as operators. 1 Define a generic data-containing object for the operand. 1 Applying sequences of programs creates arbitrarily complex transformations. 1 Programs are re-used in many unrelated applications.

5 Michael Borland Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml Examples of the Concept 1 Simple lifetime measurement: acquireData | compute(Log) | fitPolynomial | display 1 Robust lifetime measurement: acquireData | compute(Log) | fitPolynomial | removeOutliers | fitPolynomial | display 1 Beam history analysis: acquireData | FFT | smooth | peakfind | collect(ByBPM) | display 1 Find the noisiest power supply: acquireData | compute(Stats) | collect(BySupply) | sort | display

6 Michael Borland Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml Implementation 1 Consistently used a simple, common self-describing file protocol for data. 1 Wrote generic, commandline programs using these files - Data collection - Data analysis - Graphics - Process control 1 Used Tcl/Tk script language to - Record/create sequences - Create GUIs

7 Michael Borland Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml What is Self-Describing Data? 1 Identified and accessed by name only 1 Units, data type, and other meta-data are included. 1 Advantages: - Truly generic programs possible - Programs can verify and adapt to file contents - Augment file contents without breaking applications - Self-documenting - Integrates simulation, control system, and other data sources

8 Michael Borland Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml SDDS File Protocol

9 Michael Borland Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml Examples of Uses of SDDS Files 1 Back-up and restore files (BURT) 1 Archival data from machine monitoring 1 Alarm history data 1 Magnet conditioning instructions 1 Waveforms from scopes and network analyzers 1 Beam profile and images 1 Feedback matrices 1 Orbit correction configuration data 1 Beam position monitor status database

10 Michael Borland Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml SDDS Toolkit Programs 1 SDDS is used by a group of about 70 generic programs 1 Most of these "SDDS Toolkit" programs both read and write SDDS files, so - They can be used sequentially - Even simple tools become useful and productive 1 About 20 EPICS-specific programs use SDDS 1 Programs are commandline driven and hence scriptable

11 Michael Borland Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml SDDS Toolkit Capabilities 1 Device-independent graphics 1 Equation evaluation 1 Data filtering, sorting, collection, and cross-referencing 1 Statistics, correlation analysis, and histograms 1 Polynomial, exponential, and gaussian fitting 1 Outlier analysis and removal 1 Matrix operations 1 FFT and digital filtering 1 Derivatives and integrals 1 Conversion to/from text and other formats

12 Michael Borland Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml SDDS/EPICS Toolkit Capabilities 1 Time-series data collection and statistics collection* 1 Glitch/trigger initiated data collection* 1 Synchronized data collection 1 Alarm data collection* 1 Experiment execution** 1 Snapshot save, restore, and ramp** 1 Feedforward, feedback**, and optimization** *Used at APS for continuous archiving. **Used at APS for routine operations.

13 Michael Borland Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml Advantages of SDDS 1 Tools for on-the-fly experiments, data analysis, etc. 1 Permits very rapid testing, implementation of ideas 1 Gives "muscle" to Tcl/Tk scripts 1 Simplifies the development of new applications 1 New programs have an amplified and often unexpected payoff 1 Analysis capabilities comparable to MATLAB or IDL, but SDDS is free 1 Open source

14 Michael Borland Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml Problems/Complaints 1 SDDS commandline tools are hard to use for newcomers and occassional users. 1 SDDS files are not random-access files. A page is read into memory, following which the application requests copies of needed data. 1 Does not provide cross-platform reading of binary files. (Solved in next release.) 1 Slower execution than custom code.

15 Michael Borland Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml Who Uses SDDS? 1 APS depends on SDDS for accelerator operation, archiving, data analysis, and simulation. 1 IPNS uses SDDS for archiving, analysis, and display. 1 RHIC uses SDDS files throughout the control system but doesn't use SDDS tools at present. 1 BESSY II uses SDDS files and tools for data archiving, automated processing, and some applications. 1 DESY is adopting SDDS files for their data archives. 1 SNS has some limited experimental use of SDDS. 1 Accelerator simulators (ANL, DESY, LBL, SLAC,...)

16 Michael Borland Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml Selected Accelerator Physics Activities Performed with SDDS 1 Magnetic measurement data analysis 1 Magnet conditioning and configuration* 1 Model-independent steering* 1 Obit/trajectory response matrix measurement* 1 Orbit correction* 1 Insertion device beamline steering* 1 Tune and chromaticity measurement* 1 Beta-function and dispersion measurement and correction* *GUI application

17 Michael Borland Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml Selected Accelerator Physics Activities Performed with SDDS 1 Dynamic aperture measurement* 1 Energy aperture measurement* 1 Physical aperture search 1 BPM-to-quadrupole offset measurements with beam* 1 BPM intensity dependence measurement and compensation* 1 Automated BPM timing scans and timing setup.*

18 Michael Borland Advanced Photon Source www.aps.anl.gov/asd/oag/oaghome.shtml Selected Accelerator Physics Activities Performed with SDDS 1 Transport line emittance measurement and beta-function matching* 1 Bunch length measurement using rf zero-phasing* 1 Automated processing of beam spot images from SASE FEL experiments*


Download ppt "Michael Borland Advanced Photon Source Using SDDS for Accelerator Commissioning and Operation Michael Borland Operations Analysis Group Advanced Photon."

Similar presentations


Ads by Google