Scan System Kay Kasemir, Xihui Chen Jan. 2013. 2Managed by UT-Battelle for the U.S. Department of Energy Automated Experiment Control “Scan” should be.

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.
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.
EPICS Collaboration meeting Fall 2012, SDD status and plansPage 1 Self-Described Data - SDD status and plans Lana Abadie, ITER CODAC.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS April 2013 Control System Studio Training - Workspaces, Shared.
Control System Studio (CSS)‏ Kunal Shroff EPICS Training Meeting 07/10/2010.
Scan System: Experiment Automation Kay Kasemir, Xihui Chen RAL EPICS Meeting, May 2013.
© 2012 LogiGear Corporation. All Rights Reserved Robot framework.
From the ChannelArchiver to the Best Ever Archive Utility, Yet July 2009.
Managed by UT-Battelle for the Department of Energy Kay Kasemir, Ph.D. ORNL/SNS July 2011 at Control System Studio - CSS - Overview.
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.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio Training - Web OPI.
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.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Oct EPICS Meeting, PAL, Korea Control System Studio Training.
Jan Hatje, DESY CSS ITER March 2009: Technology and Interfaces XFEL The European X-Ray Laser Project X-Ray Free-Electron Laser 1 CSS – Control.
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.
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.
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 With slides from Xihui Chen May 2014 Control System Studio Training.
Integrating EPICS and LabVIEW on Windows using DCOM Freddie Akeroyd ISIS Computing Group.
CSS – Control System Studio
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.
Jan Hatje, DESY CSS GSI Feb. 2009: Technology and Interfaces XFEL The European X-Ray Laser Project X-Ray Free-Electron Laser 1 CSS – Control.
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.
Applications Kay Kasemir ORNL/SNS Using Information and pictures from Matthias Clausen, Jan Hatje, and Helge Rickens (DESY) October 2007.
Jan Hatje, DESY SNL Editor and Debugger EPICS collaboration meeting SNL Editor and Debugger EPICS collaboration meeting 2008 Shanghai Institute.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio Training - Extension Points:
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
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.
Managed by UT-Battelle for the Department of Energy Quest for the Best Ever Alarm System Tool Kay Kasemir Oct
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
Presentation transcript:

Scan System Kay Kasemir, Xihui Chen Jan. 2013

2Managed by UT-Battelle for the U.S. Department of Energy Automated Experiment Control “Scan” should be easy Graphical: … 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

3Managed 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

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

5Managed 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(); }

6Managed 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  “Loop” command  Pause, Resume  Eclipse RCP instead of Spring  Eclipse build instead of Maven  CSS PV instead of new PV layer  Tight CSS GUI integration AND basic script access

7Managed 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

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

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

10Managed 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

11Managed by UT-Battelle for the U.S. Department of Energy Scan Plot Plot variables used by scan Get data from Running or Finished scans

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

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

14Managed 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

15Managed by UT-Battelle for the U.S. Department of Energy Scripted Scan … or use ‘vi’, shell Jython editor, debugger Jython console

16Managed 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)

17Managed 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.

18Managed 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

19Managed 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?

20Managed 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

21Managed by UT-Battelle for the U.S. Department of Energy Summary Scan Server: Experiment Automation – BOY Panels, Scan Editor, Scripts – Monitor, Pause, Resume, even adjust

22Managed 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, …

23Managed by UT-Battelle for the U.S. Department of Energy Plans, Ideas RESTful web interface – Submit scan – Monitor scans – Abort scan Allows non-Java tools to ‘close the loop’