Office of Science U.S. Department of Energy “Traditional” Tools for Beamline Applications Mark Rivers University of Chicago October 16, 2008.

Slides:



Advertisements
Similar presentations
COMPUTERS: TOOLS FOR AN INFORMATION AGE Chapter 3 Operating Systems.
Advertisements

Wayne Lewis Australian Synchrotron Beamline Controls Design and Implementation.
Model Server for Physics Applications Paul Chu SLAC National Accelerator Laboratory October 15, 2010.
EPICS at APS Beamlines Tim Mooney Advanced Photon Source Argonne National Laboratory.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
Guide To UNIX Using Linux Third Edition
Chapter 9: Moving to Design
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
EPICS Meeting, APS, June 14 th 2006 MCS-8 The 8 axes motion control system Rok Šabjan
Agenda Adaptation of existing open-source control systems from compact accelerators to large scale facilities.
SAD and Python with EPICS at IHEP,Beijing, Noboru Yamamoto KEK, JAPAN.
Chapter 9 Elements of Systems Design
Scan System Kay Kasemir, Xihui Chen Jan Managed by UT-Battelle for the U.S. Department of Energy Automated Experiment Control “Scan” should be.
Scan System: Experiment Automation Kay Kasemir, Xihui Chen RAL EPICS Meeting, May 2013.
Patient Location via Received Signal Strength (RSS) Analysis Dan Albano, Chris Comeau, Jeramie Ianelli, Sean Palastro Project Advisor Taib Znati Tuesday.
Imperial College Tracker Slow Control & Monitoring.
EPICS Developments at the Australian Synchrotron DSP EPICS driver for the General Standards 16AIO analog card EPICS driver for the Galil range of motor.
Introduction to EPICS (Ned Arnold, John Maclean).
BLU-ICE and the Distributed Control System Constraints for Software Development Strategies Timothy M. McPhillips Stanford Synchrotron Radiation Laboratory.
BROOKHAVEN SCIENCE ASSOCIATES High level applications and EPICS control GUOBAO SHEN NSLS-II, Control Group May 4 th, 2009.
On-the-fly scanning: Improvements in the EPICS motor and mca modules Mark Rivers University of Chicago.
Dec 8-10, 2004EPICS Collaboration Meeting – Tokai, Japan MicroIOC: A Simple Robust Platform for Integrating Devices Mark Pleško
Materials Science and Protein Crystallography Using the MX Beamline Control Toolkit William M. Lavender
1/15 G. Manduchi EPICS Collaboration Meeting, Aix-en-Provence, Spring 2010 INTEGRATION OF EPICS AND MDSplus G. Manduchi, A. Luchetta, C. Taliercio, R.
The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
The european ITM Task Force data structure F. Imbeaux.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio, CSS Overview.
ATF Control System and Interface to sub-systems Nobuhiro Terunuma, KEK 21/Nov/2007.
Final Review of ITER PBS 45 CODAC – PART 1 – 14 th, 15 th and 16 th of January CadarachePage 1 FINAL DESIGN REVIEW OF ITER PBS 45 CODAC – PART 1.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
EEDEED Tuesday, May 18, VBA & Process Variables  System Overview  Setup (What installations are needed)  What are Process Variables and what.
3.14 Work List IOC Core Channel Access. Changes to IOC Core Online add/delete of record instances Tool to support online add/delete OS independent layer.
9 Systems Analysis and Design in a Changing World, Fourth Edition.
9 Systems Analysis and Design in a Changing World, Fourth Edition.
Control Hardware Design Control Hardware Wiring IOC Software (Low Level) OPI Software (High Level) Final Test Front-End (Connection to SR1 Ring) Done Insertion.
SPEC Socket Programming Logan Daum Mentor: David Schuller CLASSE Physics REU August 13, 2010.
EPICS at APS Beamlines Tim Mooney Advanced Photon Source Argonne National Laboratory.
Petra III Status Teresa Núñez Hasylab-DESY Tango Meeting DESY,
Online Software 8-July-98 Commissioning Working Group DØ Workshop S. Fuess Objective: Define for you, the customers of the Online system, the products.
Project Database Handler The Project Database Handler is a brokering application that mediates interactions between the project database and the external.
Integration of sample automounters at GMCA CAT protein crystallography beamlines Oleg Makarov November 5, 2008 NOBUGS 2008.
© Paradigm Publishing, Inc. 4-1 Chapter 4 System Software Chapter 4 System Software.
1. LabVIEW and EPICS Workshop EPICS Collaboration Meeting Fall 2011.
Controls & Monitoring Overview J. Leaver 03/06/2009.
Motor drivers for asyn motor device support Mark Rivers GeoSoilEnviroCARS, Advanced Photon Source University of Chicago.
Australian Synchrotron Mature GUI’s for protein crystallography beamlines Julian Adams.
A Remote Collaboration Environment for Protein Crystallography HEPiX-HEPNT Conference, 8 Oct 1999 Nicholas Sauter, Stanford Synchrotron Radiation Laboratory.
11 th February 2008Brian Martlew EPICS for MICE Status of the MICE slow control system Brian Martlew STFC, Daresbury Laboratory.
EPICS and LabVIEW Tony Vento, National Instruments
E. Matias Canadian Light Source CLS Beamline Controls.
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
The BaBar Online Detector Control System Upgrade Matthias Wittgen, SLAC.
Motion Control at the Advanced Photon Source Argonne National Laboratory Mark Rivers University of Chicago 7 GeV synchrotron x-ray light source, the largest.
Examples of Matlab Controls Software on ALICE Andy Wolski 24 September 2014 Multiknobs: simultaneous control of a set of magnets Undulator Gap Scan ALICE.
Diamond Light Source Data Acquisition System Paul Gibbons.
Updates to CaPython/CaChannel John Hammonds Beamline Controls and Data Acquisition Group APS Engineering Support Division EPICS Collaboration Meeting INFN.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
Fermilab Control System Jim Patrick - AD/Controls MaRIE Meeting March 9, 2016.
ISC321 Database Systems I Chapter 2: Overview of Database Languages and Architectures Fall 2015 Dr. Abdullah Almutairi.
9 Systems Analysis and Design in a Changing World, Fifth Edition.
Database System Concepts and Architecture
Mark Rivers University of Chicago
Integration of Blu-Ice into
Web App vs Mobile App.
Getting Started with EPICS A lecture Series
Getting Started with EPICS Applications / Special Topics
Diamond is all about data…
Presentation transcript:

Office of Science U.S. Department of Energy “Traditional” Tools for Beamline Applications Mark Rivers University of Chicago October 16, 2008

2 Beamline applications are different from accelerator controls: Data collection is usually the goal, rather than just control Typical data collection involves Change something (usually move 1 or more motors) Wait for change to complete Trigger detectors Wait for detectors to be done Read detectors Overview

3 No one higher-level tool dominates for beamline control This is mostly a natural consequence of the wide variety of experiments performed on synchrotron beamlines, e.g. Protein crystallography – nearly unchanged setup and data collection X-ray scattering experiment: each one different detector, collection scheme, sample environment, etc. Among the solutions in use: sscan record with only medm, scan_see, and save_data sscan record with IDL or Python client on top SPEC controlling EPICS motor, scaler and mca records BluIce (protein crystallography) GDA (Diamond) Many other site-specific and application-specific solutions Overview

4 Simple scans A one-dimensional scan: –Do NPTS times: Set conditionse.g., move motors; wait for completion Trigger detectorse.g., start scaler; wait for completion Acquire dataread detector signals; store in arrays –Write data to disk

5...Simple scans Multidimensional scan: –Outer-loop scan’s detector trigger executes inner-loop scan. –saveData monitors a set of sscan records, determines scan dimension when scan starts, and writes data as it is acquired. –No limit to the number of scan dimensions. inner-loop scan outer-loop scan

6 Scan features 0-4 positioners, 0-4 detector triggers, 0-70 detector signals –Positioner and readback values are of type double –Detector values are of type float Acquisition from scalar and/or array PV's –Array PV’s acquire.NPTS elements Number of data points limited only by IOC memory –Standard max. is 2000 (x i,y i ) points per scan dimension –Can increase to ~ EPICS_CA_MAX_ARRAY_BYTES / 8 Detector/client wait, data-storage wait –Can wait for multiple data-acquisition clients –Only one data-storage client Pause/resume, abort –Data from aborted scans are written to disk Double buffered: writes 1D acquired data after the scan is finished –Can write during next 1D scan

7 …Scan features saveData writes XDR-format (“.mda") files to disk. –Files can be read on any type of computer A positioner can have private scan parameters (scanparm record). –Load preset scan parameters with one mouse click –Useful for alignment After-scan actions include move to peak, valley, +/-edge. –Can, e.g., track a moving peak through a series of scans scanparm record + after-scan action = automated 1-D alignment.

8 IDL or Python clients for real-time (CA) or post-scan (MDA file) viewing EPICS sscan record

9 Sufficient for commissioning Next step: add a client to the front-end which hides the sscan record from the user, but uses the sscan record because it is flexible and can be used to scan anything and read anything EPICS sscan record Matt Newville’s “escan” for EXAFS

10 Commercial software (Certified Scientific Software) X-ray diffraction control and data acquisition Works on Unix and Linux platforms Basically a scripting language with device drivers Supports numerous diffraction geometries with built-in commands and predefined macros Easy to add user macros for specific controls EPICS friendly: built-in channel access interface to control EPICS- based hardware. It “knows about” EPICS motor and scaler records, and provides simple interface to CA. Used at many synchrotrons around the world; sizable user base Overview of spec IOC Motors Detector Power Supply Scaler spec LAN

11 spec Installations at the APS ESRF uses SPEC heavily APS has a site license for 50 “seats” spec is in use at 22 APS sectors/CATs

12 spec pros and cons Pros: Understands the “orientation matrix”, i.e. the relationship of a crystals orientation to the motors in a goniometer. Complex geometries codes exist for holding variables constant (e.g. angle of incidence) with overconstrained geometries. Commercial package with good support Many SPEC macros have been written over the years, so many users are big fans of it For x-ray scattering experiments it remains the best tool in spite of its age – but it really needs to be replaced (e.g. GDA Toolkit?) Cons: Old and idiosyncratic scripting language, not nearly as good as Python or other more recent languages SPEC includes many hardware drivers for motor controllers, detectors, etc., but these are typically not used in an EPICS installation One-person company, long-term support doubtful

13 GM/CA CAT Control system: BluIce-EPICS MOTIVATION: Preserve commonly praised user interface of SSRL BluIce, but make it efficiently working with EPICS hardware. Sergey Stepanov Oleg Markov GMCA CAT, APS

14 Distributed Control System Server (DCSS) Architecture of the original SSRL BluIce User Interface Clients (BluIce) Distributed Hardware Servers (DHS) DHS DCSS The original BluIce is 3-layer system with socket communications between the layers. The DCSS is a central “coordinator” that is supposed to know everything about the beamline status. The GUI is written in Tcl/Tk and the rest in C/C++.

15 BluIce-EPICS architecture: final design EPICS IOC(s) GUI-3 GUI-2 Motion MCA Scaler Shutter Embedded backend controllers for EPICS I/O GUI-1 PV mySQL initialization channel access  EPICS DHS merged with DCSS into a single C++ backend controller  Furthermore the combined controller merged with the GUI and socket calls from the GUI converted into function calls (the calls format was preserved)  Each GUI is standalone MEDM-like EPICS client  Initialization through mySQL and exchange between different GUI instances via EPICS PVs

16 BluIce-EPICS GUI core tabs Older tabs are in Tcl/Tk, newer tabs are in Java. The plan is to convert all tabs into Java.

17 BluIce-EPICS: outsourcing complex controls to helpers All essential beamline operations being moved out of BluIce Rack of helpers Frame proc. engine Fluoresc.scans server Point & click server Robot server Beam alignment Fluor.detector tune Frame audit Big energy move Sample centering Collimator In/Out GUI-3 GUI-2 Embedded backend controllers for EPICS I/O GUI-1 EPICS IOC(s) channel access Helpers include SNL-like servers and external scripts that interact with BluIce via PVs. The advantage of such approach is that each helper is an independent module that can be written in any language without knowledge of the main BluIce application. This widens base of developers. Currently helpers are written in SNL, C, Java, Perl, and Tck/Tk.