Scan System: Experiment Automation Kay Kasemir, Xihui Chen RAL EPICS Meeting, May 2013.

Slides:



Advertisements
Similar presentations
Managed by UT-Battelle for the Department of Energy Best Ever Archive Utility, Yet (BEAUtY) Kay Kasemir April 2013.
Advertisements

Control System Studio (CSS)
Control System Studio (CSS) Data Access Layer (DAL) Kay Kasemir, Xihui Chen July 2009.
ORNL is managed by UT-Battelle for the US Department of Energy Control System Studio: First Steps Kay Kasemir ORNL/SNS June 2014.
Managed by UT-Battelle for the Department of Energy Kay Kasemir, Xihui Chen ORNL/SNS April, 2013 Getting Started with CSS.
SNS Beamline Experiment Control (Future) Xihui Chen, Kay Kasemir 4/15/2013.
Best Ever Alarm System Toolkit Kay Kasemir, Xihui Chen, Katia Danilova SNS/ORNL April, 2013.
Update on CSS at SNS Xihui Chen, Kay Kasemir June 2010.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS A lot of material from Nadine Utzel, ITER and BOY online help.
Model Server for Physics Applications Paul Chu SLAC National Accelerator Laboratory October 15, 2010.
Controlled Scanning of Microtiter Plates through the Use of LabVIEW® Erica Chin Anton Edmund Samir Laoui May 14, 2008.
Diane Fairley High Level October 24-28, 2005 High Level Physics Applications LCLS Week / FAC October 24-28, 2005.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio Training - Alarm System Use.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS April 2013 Control System Studio Training - Alarm System Use.
Managed by UT-Battelle for the Department of Energy Kay Kasemir, Xihui Chen ORNL/SNS 2012, April at SLAC Eclipse Products, Features, Plugins,
Agenda Adaptation of existing open-source control systems from compact accelerators to large scale facilities.
8/21/2015J-PARC1 Data Management Machine / Application State Data.
Control System Studio (CSS)‏ Kunal Shroff EPICS Training Meeting 07/10/2010.
Scan System Kay Kasemir, Xihui Chen Jan Managed by UT-Battelle for the U.S. Department of Energy Automated Experiment Control “Scan” should be.
“Automate Anything You See” Uses image recognition to identify and control GUI components Useful when there is no easy access to a GUI's internal or source.
ORNL is managed by UT-Battelle for the US Department of Energy Control System Studio: Overview Kay Kasemir, SNS/ORNL June 2014.
© 2012 LogiGear Corporation. All Rights Reserved Robot framework.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS 2012, April at SLAC Control System Studio - Introduction.
Managed by UT-Battelle for the Department of Energy Kay Kasemir, Ph.D. ORNL/SNS July 2011 at Control System Studio - CSS - Overview.
Deutsches Elektronen-Synchrotron DESY Helmholtz Association of German Research Centres Hamburg, Germany The European X-Ray Laser Project.
ORNL is managed by UT-Battelle for the US Department of Energy Control System Studio: BOY Kay Kasemir ORNL/SNS A lot of material from.
Magnetic Field Measurement System as Part of a Software Family Jerzy M. Nogiec Joe DiMarco Fermilab.
STAC usage at Diamond Richard Fearn Software Engineer.
Mantid Scientific Steering Committee Nick Draper 10/11/2010.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Oct EPICS Meeting, PAL, Korea Control System Studio Training.
Control System Studio (CSS) Overview Kay Kasemir, July 2009.
The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Feb Material copied from the IOC Application Developer's.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio Training - Archive System Setup.
ORNL is managed by UT-Battelle for the US Department of Energy EPICS Automation Kay Kasemir, SNS/ORNL June 2014.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Oct EPICS Meeting, PAL, Korea Control System Studio Training.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio, CSS Overview.
EPICS for Neutron Scattering Beam Lines Steven Hartman EPICS Meeting, 2 May 2013.
ORNL is managed by UT-Battelle for the US Department of Energy CS-Studio PVTable and Autosave Kay Kasemir Oct
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS With slides from Xihui Chen May 2014 Control System Studio Training.
Matthias Clausen, DESY CSS GSI Feb. 2009: Synoptic Display Studio and ArchiveBrowser XFEL The European X-Ray Laser Project X-Ray Free-Electron.
Managed by UT-Battelle for the Department of Energy Kay Kasemir, Xihui Chen ORNL/SNS April Control System Studio Training - Development.
Managed by UT-Battelle for the Department of Energy CSS Update Matthias Clausen, Helge Rickens, Jan Hatje and DESY Delphy Armstrong, Xihui Chen,
WebOPI -Bring BOY OPI to the Web and Mobile Xihui Chen, Kay Kasemir Spring 2012 EPICS Meeting.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS 2012, January 9-12 at NSRRC, Taiwan Control System Studio Training.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS 2011, October at CEA Saclay, France Control System Studio.
Not Yet Another EPICS Display Manager!? Kay Kasemir, Xihui Chen Kobe EPICS Meeting October.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS April 2013 Control System Studio, CSS Overview.
Things that we offer Controls Software Team Web-based tools development Xihui Chen, Katia Danilova, Kay Kasemir, Dave Purcell.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS A lot of material from Nadine Utzel, ITER and BOY online help.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS 2012, January 9-12 at NSRRC, Taiwan Control System Studio Training.
Jan Hatje, DESY SNL Editor and Debugger EPICS collaboration meeting SNL Editor and Debugger EPICS collaboration meeting 2008 Shanghai Institute.
EPICS and LabVIEW Tony Vento, National Instruments
ORNL is managed by UT-Battelle for the US Department of Energy CSS: OPI Views Kay Kasemir, Jan
TRIUMF HLA Development High Level Applications Perform tasks of accelerator and beam control at control- room level, directly interfacing with operators.
Managed by UT-Battelle for the Department of Energy Kay Kasemir Jan Experimental Physics and Industrial Control System.
CSS Synoptic Display Comments Kay Kasemir, July 2009.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS May 2014 Control System Studio Training - Hierarchical Preferences.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS 2012, April at SLAC Control System Studio Training - Alarm System.
Scan System Update Kay Kasemir, May Managed by UT-Battelle for the U.S. Department of Energy Scan Server Sample Environment Equipments Sample Environment.
Implementation and Testing of RDB Channel Archiver with MySQL Richard Ma, DePauw University Supervisor: Richard Farnsworth, Argonne National Laboratory.
Diamond Light Source Data Acquisition System Paul Gibbons.
ORNL is managed by UT-Battelle for the US Department of Energy Status Report: Data Acquisition and Instrument Controls for the Spallation Neutron Source.
Best Ever Alarm System Toolkit Kay Kasemir, Xihui Chen, Katia Danilova, SNS/ORNL ICALEPCS 2009, Kobe, Japan, Oct 2009.
BOY, A Modern Graphical Operator Interface Editor and Runtime Xihui Chen, Kay Kasemir RAD Control Group.
LCLS Commissioning & Operations High Level Software
LCLS Commissioning & Operations High Level Software
Automation with Gwen Introduction.
A Virtual Implementation of VELA (CLARA)
NICOS – IBEX Interactions
Presentation transcript:

Scan System: Experiment Automation Kay Kasemir, Xihui Chen RAL EPICS Meeting, May 2013

2Managed by UT-Battelle for the U.S. Department of Energy Scope Automate the experiment “Scan” = Sequence of commands Interact via Channel Access (pvManager) Start/stop/monitor a long-running sequence Not: – Closed-loop control – Data acquisition – Data analysis

3Managed by UT-Battelle for the U.S. Department of Energy Should be Easy GUI: … or script: Robust execution Monitor, pause, resume, abort Open Shutter Wait for certain beam charge to accumulate Step motor X += 1 Step motor X += 1 X < 10 ? No Yes Set motor X = 0 Close Shutter

4Managed by UT-Battelle for the U.S. Department of Energy BOY Example 1. Configure 2. Start 3. Monitor

5Managed by UT-Battelle for the U.S. Department of Energy Tabular OPI

6Managed by UT-Battelle for the U.S. Department of Energy Neutron Imaging Beamline ORNL HFIR CG-1D First EPICS/CSS operation with beam, Jan. 8, 2013 Scans

7Managed by UT-Battelle for the U.S. Department of Energy Scan Monitor List Scans on Server – Idle: To be executed next – Running: With progress report – Finished, Failed: Past runs

8Managed by UT-Battelle for the U.S. Department of Energy Scan Plot Plot variables used by scan Get data from Running or Finished scans Not data acquisition! Just another way to monitor progress of scan.

9Managed by UT-Battelle for the U.S. Department of Energy Scan Editor Add commands Set parameters Open, save Drag/drop commands or PV names (also as XML text) “Undo” Device PVs (or alias) can be picked from beamline-specific configuration

10Managed by UT-Battelle for the U.S. Department of Energy Scan Commands Set – Set device (PV) to a value. – Optional wait for read-back, same or other PV, with timeout. Wait – Wait until a device (PV) reaches a certain value. Support condition: >, =, <=, increment-by, decrease-by. Optional timeout. Loop – Command that performs a loop, optional read-back and timeout. Log – Log data for plot in addition to variables used by Set, Wait, Loop Delay – Delay for a certain time. Discouraged. Use Wait. Script – Execute jython code. Use with care. Custom commands can be added via Eclipse extension points.

11Managed by UT-Battelle for the U.S. Department of Energy Simulation Mode Simulated PV changes Estimates times

12Managed by UT-Battelle for the U.S. Department of Energy Monitor, Adjust Live Scan Active Command Scan Info Adjust properties of live scan Adjust properties of live scan

13Managed by UT-Battelle for the U.S. Department of Energy Scripted Scan … or use ‘vi’, shell: from scan_client import * help(scan) scan('Demo', ('xpos', 1, 10)) Jython editor, debugger Jython console

14Managed by UT-Battelle for the U.S. Department of Energy Matlab Create Scan Monitor Analyze (maybe submit follow- up scan) Analyze (maybe submit follow- up scan)

15Managed by UT-Battelle for the U.S. Department of Energy Web Interface Prototype

16Managed by UT-Battelle for the U.S. Department of Energy Scan Server Submitted scans are queued for execution – Pre- and Post-Scan commands: open/close shutter, … CSS/Eclipse ‘headless’ application ‘PV’: EPICS, simulated – Alias names for PVs as well as plain PV names Telnet interface: Status, pause, resume, … Java RMI interface: Submit, status, pause, resume, get data, … – Scans transferred in XML format – RMI = Java, Jython, Matlab, Scala, JRuby, … Web Interface – REST

17Managed by UT-Battelle for the U.S. Department of Energy Overall Picture for SNS Sample Environment Equipments Sample Environment Detector Instrument Events Aggregator Translation Service Mantid Histogram Service Histogram Service Data Stream GUI: CSS EPICS IOCs Scan Server Channel Access

18Managed by UT-Battelle for the U.S. Department of Energy Summary: Experiment Automation Building Block

19Managed by UT-Battelle for the U.S. Department of Energy

20Managed by UT-Battelle for the U.S. Department of Energy Experiment Control for EPICS Sample Environment Equipments Sample Environment Equipment GUI: CSS Jython, Matlab, … GUI: CSS Jython, Matlab, … EPICS IOCs Scan Server Channel Access

21Managed by UT-Battelle for the U.S. Department of Energy EPICS Sequencer? − Compile, link, … − No GUI − No progress, pause, resume − Can do anything Excellent for “permanent” automation, not for changing scan scenarios

22Managed by UT-Battelle for the U.S. Department of Energy Scripts (Python, Jython, Scala, …) − No progress, pause, resume − Can do most anything “Works”, but…

23Managed by UT-Battelle for the U.S. Department of Energy Allow Anything = Robust set(setpoint, 30); # Assume OK after 10 seconds wait(10.0); set(nonexisting_channel, 42); while (readback < 10) { /* busy loop */ } set(setpoint, 30); # Wait for readback to match waitForValue(readback, 30); if (notConnected(…)) reportError(); while (readback < 10) { sleep(1); if (timeout_exceeded) reportError(); }

24Managed by UT-Battelle for the U.S. Department of Energy APS “Scan Engine” Claude Saunders, Mitch McCuiston, Brian Tieman, Tim Mooney “Scan Engine” executes submitted scans Scan = List of robust commands Scan System adds  “Loop” command  Pause, Resume  CSS PV instead of new PV layer  Tight CSS GUI integration AND basic script access

25Managed by UT-Battelle for the U.S. Department of Energy Performance Command Execution – commands/second: Delay 0 sec, Set w/o read- back – 4500 commands/second: Set w/ read-back, Loop Download scan into Editor – commands: 1 second – commands: 15 seconds

26Managed by UT-Battelle for the U.S. Department of Energy Beam Line Configuration Required (soft) IOCs – Used by separate tools to start/stop as required Scan System Aliases – Available within scans Simulation Info – Slew rates DAQ info – Which channels to log with neutron data?