Scan System Update Kay Kasemir, May 2015. 2Managed by UT-Battelle for the U.S. Department of Energy Scan Server Sample Environment Equipments Sample Environment.

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.
Managed by UT-Battelle for the Department of Energy Xihui Chen, Kay Kasemir ORNL/SNS April 2013 at IHEP Control System Studio Setup - Hierarchical.
Introduction Main technologies: core written in Java embedded Jython interpreter code managed using the Eclipse plugin framework client program uses Eclipse.
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 Integrated Control System Running IOC Core on Windows and Linux Dave Thompson Wim Blokland Ernest Williams.
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.
Model Server for Physics Applications Paul Chu SLAC National Accelerator Laboratory October 15, 2010.
Fundamentals of Python: From First Programs Through Data Structures
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS April 2013 Control System Studio Training - Workspaces, Shared.
ORNL is managed by UT-Battelle for the US Department of Energy EPICS State Notation Language (SNL), “Sequencer” Kay Kasemir, SNS/ORNL Many slides from.
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.
“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.
From the ChannelArchiver to the Best Ever Archive Utility, Yet July 2009.
Imperial College Tracker Slow Control & Monitoring.
Automatic Regression Test Facility for Support Modules Jon Thompson, Diamond Light Source Vancouver, 1 May 2009.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
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.
ASP.NET Programming with C# and SQL Server First Edition Chapter 3 Using Functions, Methods, and Control Structures.
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.
MASAR Service Guobao Shen Photon Sciences Department Brookhaven National Laboratory EPICS Collaboration Workshop Oct 05, 2013.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Oct EPICS Meeting, PAL, Korea Control System Studio Training.
MASAR Server & Application Guobao Shen Photon Sciences Department Brookhaven National Laboratory Collaboration Working Group Oct 02, 2013.
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 Jan Control System Studio Training - Development Setup.
For each customer interface record, a new instance of Workflow main process is kicked off, as below Click to proceed…………
ATF2 Mover Software 19 June 2008 Janice Nelson, Doug McCormick (SLAC) Glen White (LAL/SLAC) Justin May (no longer at SLAC)
Chapter 3 Functions, Events, and Control Structures JavaScript, Third Edition.
Guide to Linux Installation and Administration, 2e1 Chapter 11 Using Advanced Administration Techniques.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS 2011, October at CEA Saclay, France Control System Studio.
Managed by UT-Battelle for the Department of Energy EPICS Sequencer Kay Kasemir, SNS/ORNL Many slides from Andrew Johnson, APS/ANL Feb
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,
Not Yet Another EPICS Display Manager!? Kay Kasemir, Xihui Chen Kobe EPICS Meeting October.
David Adams ATLAS DIAL: Distributed Interactive Analysis of Large datasets David Adams BNL August 5, 2002 BNL OMEGA talk.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS April 2013 Control System Studio, CSS Overview.
1 BROOKHAVEN SCIENCE ASSOCIATES High Level Applications Infrastructure and Current Status Guobao Shen, Lingyun Yang* Controls Group & Accelerator Physics.
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.
K. Harrison CERN, 22nd September 2004 GANGA: ADA USER INTERFACE - Ganga release status - Job-Options Editor - Python support for AJDL - Job Builder - Python.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio Training - Extension Points:
1 EPICS Flow of Control: EPICS Workshop at IHEP, Beijing, August 2001 EPICS Flow of Control Marty Kraimer APS.
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.
16th Oct 08 Tom Cobb - Python at DLS 1 Uses of Python at Diamond Light Source.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC , the State of Michigan.
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.
Esri UC 2014 | Technical Workshop | Administering ArcGIS for Server with Python Jon Bodamer.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC , the State of Michigan.
Workload Scheduler plug-in for JSR 352 Java Batch IBM Workload Scheduler IBM.
LCLS Commissioning & Operations High Level Software
Scan Library.
LCLS Commissioning & Operations High Level Software
Presentation transcript:

Scan System Update Kay Kasemir, May 2015

2Managed by UT-Battelle for the U.S. Department of Energy Scan Server Sample Environment Equipments Sample Environment Equipment GUI: CSS Script GUI: CSS Script EPICS IOCs Scan Server Channel Access REST

3Managed by UT-Battelle for the U.S. Department of Energy What it is and isn’t* Is Automation via Channel Access Scan = Batch of commands Queue multiple scans Basic value logging Submit, monitor, pause, resume, abort *.. depends on your definition of “is” Isn’t  Synchronization of actions beyond Channel Access  Data Acquisition (log every event, catalog, keep forever)

4Managed by UT-Battelle for the U.S. Department of Energy Set, Loop Commands Set “some_pv” = 3.14 Loop “some_pv” = 1..10, step 0.5 Optionally Await completion (put-callback) Check read-back to match written value (same or other pv).. With numeric tolerance Timeout

5Managed by UT-Battelle for the U.S. Department of Energy Direction of (Nested) Loops Loop(‘x’, 0, 5, 1)  0, 1, 2, 3, 4, 5 Loop(‘y’, 5, 0, -1)  5, 4, 3, 2, 1, 0 Loop(‘x’, 0, 5, 1, Loop(‘y’, 0, 5, -1))  Alternate direction on ‘mismatch’

6Managed by UT-Battelle for the U.S. Department of Energy Other Commands Wait for “pv1” > 100 Wait for “pv2” to increment by 200 Get-callback for initial value, then monitors Log “pv1”, “pv2”, “pv2” Get-callback for current value, to RDB Invoke ‘MyScript’ Jython-based custom commands

7Managed by UT-Battelle for the U.S. Department of Energy Like Sequencer? Yes: Read/write Channel Access No compilation Monitor & control progress of scan Basic data log Schedule multiple scans  No arbitrary C code  No ‘if-then-else’ command

8Managed by UT-Battelle for the U.S. Department of Energy Like Scan Record? Loop y=1..10: Loop x=1..5: Set “det_trigger”=1 with completion, Log “x.RBV”, “y.RBV”, “det_counts” Monitor, pause, resume, abort. Save, edit, resubmit scans vs. save/restore scan records. Add 3 rd loop without rebooting IOC to add 3 rd scan record Queue multiple scans  Logs to RDB w/ REST readout. No MDA/XDR/Nexus.

9Managed by UT-Battelle for the U.S. Department of Energy REST Interface

10Managed by UT-Battelle for the U.S. Department of Energy Scan Editor Add commands Set parameters Open, save

11Managed by UT-Battelle for the U.S. Department of Energy Python API

12Managed by UT-Battelle for the U.S. Department of Energy Site-Specific Settings class BeamlineScanSettings(ScanSettings): def __init__(self): self.defineDeviceClass("chopper:.*", completion=True) self.defineDeviceClass("motor.*", completion=True, readback=True) def getReadbackName(self, device_name): if "motor" in device_name: return device_name + ".RBV“ return device_name “Set(‘x’, 42)”  Set(‘x’, 42’) “Set(‘motor_x’, 42)”  Set(‘motor_x’, 42, completion=True, readback=‘motor_x.RBV)

13Managed by UT-Battelle for the U.S. Department of Energy GUI for Routine Beam Line Task

14Managed by UT-Battelle for the U.S. Department of Energy Under the hood Scan Server

15Managed by UT-Battelle for the U.S. Department of Energy Alignment Scan

16Managed by UT-Battelle for the U.S. Department of Energy Table Scan Load/save *.csv, *.xls

17Managed by UT-Battelle for the U.S. Department of Energy Scripted Scan

18Managed by UT-Battelle for the U.S. Department of Energy Parallel Command

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

20Managed by UT-Battelle for the U.S. Department of Energy Scan Monitor

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

22Managed by UT-Battelle for the U.S. Department of Energy Summary Scan System helps automate SNS since 2013 Scan Server: REST instead of JNI Python API: Pure Python instead of Jython  Thanks to Qui Yongxiang, Guobao Shen, Dylan Maxwell New Parallel & Sequence commands Biggest Issue:  Can’t use numpy (Fortran) inside Script command (Jython)