Information on precautionary site access restrictions to Fermilab's Batavia site in response to coronavirus/COVID-19
We continue to review all events currently planned for the next sixty days and organizers will be notified if their event must be cancelled, postponed, or held remotely.

# Spring 2015 EPICS Collaboration Meeting

from to (EST5EDT)
at 1200 Molecular Plant Science Building, Michigan State University
 Description The Spring 2015 EPICS Collaboration meeting is hosted by the Facility for Rare Isotope Beams (FRIB) and the National Superconducting Cyclotron Laboratory (NSCL) and takes place at Michigan State University (MSU) from 18-22 May 2015. The collaboration meeting will consist of one day pre-meeting sessions on Monday, 18 May 2015 (held at FRIB/NSCL in Conference Room 1221B) followed by the main EPICS meeting on Tuesday-Thursday, 19-20 May 2015 (held at the Molecular Plant Sciences Building, Rm. 1200) and post-meeting sessions on Friday, 22 May 2015 (held at FRIB/NSCL in Conference Room 1221B). Please enter through the main lobby of FRIB/NSCL and the receptionist will direct you to 1221B. In addition, a Code-A-Thon is being organized for Monday-Friday, 11-15 May 2015 (NSCL/FRIB). EPICS (Experimental Physics and Industrial Control System) is a set of open source software tools, libraries and applications developed collaboratively and used worldwide to create distributed soft real-time control systems for scientific instruments such as particle accelerators, telescopes, and large scientific experiments. These collaboration meetings provide a chance for developers and managers from the various different sites to come together and discuss their work and progress, and make plans for the future. They give a chance to see what is being done at other laboratories, and to review the specifications for new tools or enhancements to existing ones in order to maximize their usefulness to the whole community and avoid duplication of effort. Venue: The Spring 2015 EPICS Collaboration meeting will take place in the Molecular Plant Sciences Building located on the campus on Michigan State University in Rm 1200.  All pre- and post- meeting sessions will be held at FRIB/NSCL on the campus of MSU. Interactive MSU Campus Map Parking Map - Wharton Center Parking Ramp is recommended for parking. FRIB/NSCL Address (Mon & Fri) 640 S. Shaw Lane East Lansing, MI 48824 Molecular Plant Sciences (Rm. 1200) (Tues - Thurs) 1066 Bogue St East Lansing, MI 48824 Registration: Please see "Registration Form" at the left to register for the meeting.  Morning and afternoon breaks will be included in the registration. Meals: Lunch tickets are no longer available for purchase at the special rate of $6.00ea which can be used at most of the MSU Dining Halls. You can still purchase lunch each day at the dining hall with cash or credit card. A dinner is being organized for Wednesday, 20 May 2015. Join us for a casual evening at HopCat. Price will be$20.00 per person and drinks will be available for purchase. http://hopcat.com/east-lansing  Follow the link below to purchase dinner tickets before May 14th, 2015. (Dinner tickets can also be purchased at registration on Tuesday with cash or certified check (payable to Michigan State University, Attn: EPICS, 640 South Shaw Lane, East Lansing, MI 48824, USA): Dinner tickets HopCat Address (Map) 300 Grove St East Lansing, MI 48823 Support Email: epics2015@frib.msu.edu
Go to day
• Monday, May 18, 2015
• 09:00 - 17:00 Steering committee meetings
• Tuesday, May 19, 2015
• 08:30 - 10:00 Registration and Coffee
• 10:00 - 12:00 Status Reports
• 10:00 FRIB Status 15'
FRIB Status
 Speaker: Mr. Lawrence Hoff (Facility for Rare Isotope Beams) Material:
• 10:15 ITER and CODAC Core System - Status and Road Map 15'
ITER is a large international project building a fusion facility in the South of France. Most contributions are in-kind - integration of more than 200 plant systems will be the main challenge when building the control system.
To support controls development of plant systems, ITER created CODAC Core System (CCS), a Linux Distribution based on RedHat Enterprise Linux, EPICS and ITER specific tools.
 Speaker: Mr. Ralph Lange (ITER Organization) Material:
• 10:30 ESS Status 15'
ESS Status
 Speaker: Mr. Torsten Bögershausen (European Spallation Source) Material:
• 10:45 NSLSII Status 15'
NSLSII Status
 Speaker: Mr. Bob Dalesio (BNL) Material:
• 11:00 LCLS-II Status 15'
The new LCLS-II facility at the SLAC National Accelerator Laboratory is a significant addition to the LCLS-I FEL, designed to dramatically decrease data acquisition time by providing high repetition rate over a broad energy range. The new design consisting of a CW superconducting linac with bunch repetition rates of up to one MHz and beam power of several hundred kilowatts requires major enhancements to the LCLS-I controls system.  LCLS-II will retain the system architecture based on EPICS while implementing additional technologies to meet the new requirements. This includes new designs for SC LLRF, timing system to allow MHz operation, data acquisition electronics for the beam position monitors and other beam diagnostic systems, and a new beam-based feedback facility. The high beam rate and power also necessitate faster beam abort mechanisms, requiring enhanced machine and personnel protection systems as well as a new radiation containment system. This talk will present an overview of the LCLS-II controls and discuss the design status of the critical systems including the development of a general purpose electronic system to serve as a common platform for several applications.
 Speaker: Debbie Rogind (SLAC National Accelerator Laboratory) Material:
• 11:15 SNS Status 15'
SNS Data Acquisition and Instrument Controls Status
 Speaker: Steven Hartman (ORNL) Material:
• 11:30 Status of RAON control system 15'
The Rare Isotope Science Project (RISP) at the Institute for Basic Science (IBS) constructs the rare isotope accelerator facility in South Korea. Since the facility uses stable ion beams and rare isotope beams dependently, independently, or both, possible operation modes and its combination could be a complex of different accelerator sub-systems. Therefore it will be a challenge to build an integrated control systems for the rare isotope accelerator named as RAON. In this report, we will present current status of the overall RAON control systems based on EPICS.
 Speaker: Dr. Jeong Han Lee (Institute for Basic Science) Material:
• 11:45 Overview and Status of the SwissFEL Project at PSI 15'
Recently, the installation of the components for the free electron laser SwissFEL has started at the Paul Scherrer Institute (PSI). In February 2016, beginning of the injector commissioning is planned and first lasing is foreseen a year later. New hardware, like VME64x­boards (IFC 1210, an P2020 based intelligent FPGA controller from IOxOS) and ­crates (Trenew), timing system (from MRF with advanced features), motion controllers (Power PMAC from Delta Tau, and MDrive from Schneider), among others, as well as modern field buses, pose great challenges to the controls team. The close interaction of machine­ and experiment­components require advanced software concepts for data­acquisition, ­distribution, and ­archiving. An overview of the project will be presented and the different HW and SW solutions based on the experience gained from preliminary implementations at other facilities of PSI will be explained. First results of the HW commissioning at the SwissFEL will be reported.
 Speaker: Dr. Markus Janousch (Paul Scherrer Institut) Material:
• 12:00 - 13:30 Lunch
• 13:30 - 15:35 Low-level Controls
• 13:30 NSLS-II BEAM DIAGNOSTICS CONTROL SYSTEM 15'
A correct measurement of NSLS-II beam parameters (beam position, beam size, circulating current, beam emittance, etc.) depends on the effective combinations of beam monitors, control and data acquisition system, and high level physics applications. This talk will present EPICS-based control system for NSLS-II diagnostics and give detailed descriptions of diagnostics controls interfaces including classifications of diagnostics, electronics and EPICS IOC platforms, and interfaces to other subsystems. Commissioning results of NSLS-II accelerators, including Linac, Booster, and Storage Ring, are also presented.
 Speaker: Dr. Yong Hu (Brookhaven National Lab) Material:
• 13:45 Connecting EPICS to a TwinCAT system 15'
While evaluating motion control systems,
the Motion Control and Automation Group
created "The EPICS Communication Module" to connect EPICS
to a Beckhoff/TwinCAT system via TCP/IP.

EPICS Streamdevice can be used as well as the motorRecord.
 Speaker: Mr. Torsten Bögershausen (European Spallation Source) Material:
• 14:00 LCLS-I MPS upgrade: Adding BSA (Beam Synchronous Acquisition) capability 15'
LCLS-I MPS has been upgraded by adding BSA (Beam Synchronous Acquisition) IOC running on linuxRT which is already receiving BSA data from all 6 BLM MPS link nodes. Updating the rest of the 9 PIC MPS link nodes is in progress. We will also briefly present the roadmap to add automatic rate recovery capability to the LCLS-I MPS.
 Speaker: Gasper Jansa (Cosylab) Material:
• 14:15 From VME/RTEMS to Industrial PC/LinuxRT: A Migration Story 15'
Until recently VME RTEMS-based IOCs have been the platform of choice for control systems at SLAC.  Cost and hardware availability make industrial PCs running Linux an attractive option for EPICS based IOCs.  The CONFIG_PREEMPT_RT patch has been used to significantly improve the real-time performance of Linux.  We will discuss real-time performance issues and migration experience for LinuxRT based EPICS IOCs.
 Speaker: Mitch D'Ewart (SLAC) Material:
• 14:30 LCLS Magnet Power Supply Upgrade 15'
The Linac Coherent Light Source is a free electron laser (FEL) facility operating at the SLAC National Accelerator Laboratory (SLAC).   The controls for low current powered magnets use a multi-channel power supply controller system (MCOR) to meet the requirements for LCLS.  It has a modular architecture that consists of a rack mounted crate, with 16 removable power modules and 1 crate controller. A bulk power supply provides the main DC power for one or more crates.  The I/O signals are read by the control system from VME, with an MVME 6100 Power PC CPU, 16-bit, 16-channel ADC and DAC IPAC modules, and a PMC-Event Receiver (EVR) to provide timing for fast feedback over a dedicated network.   The MCOR system provides long term stability of 1000ppm over diurnal range of +/-15 degrees C, and can operate up to 120Hz, to meet fast feedback requirements.   The upgrade to this system is a SLAC designed slot-0 controller with 2 Gigabit Ethernet ports, USB and serial port,  4 8-channel ADC,  4 8-channel DAC, Digital input and output channels, removable COMx CPU, Xilinx  FPGA,  timing supporting multi-mode or single mode, and interrupts.   A prototype installation has been operating in LCLS Linac for 6 months and will be used for LCLS-II. This paper presents the controls upgrade motivation and commissioning results.
 Speaker: Ms. Kristi Luchini (SLAC National Accelerator Laboratory) Material:
• 14:45 Getting Timestamps right 15'
EPICS control systems attach timestamps to data at the hardware or IOC level. This presentation will give an overview of available times (local time, UTC, GPS time, international atomic time), discuss their advantages/disadvantages and describe the planned implementation for FRIB.
 Speaker: Dr. Martin Konrad (Facility for Rare Isotope Beams) Material:
• 15:00 softGlue: user programmable digital electronics 15'
softGlue is an EPICS module that supports the Acromag IP-EP20x IndustryPack module (FPGA-based digital I/O).  It enables users and application developers to construct small, simple, digital electronic circuits, and to connect those circuits to field wiring, all by writing to EPICS PV's.  Because the circuits and field connections are defined entirely by EPICS PV's, they can be autosaved and restored, saved as text files (for example, as BURT snapshot files), emailed from one user to another, etc. softGlue also provides simple and safe (throttled) user control over how hardware interrupts are generated by field I/O signals, and how they are dispatched to cause EPICS record processing.
 Speaker: Tim Mooney (Advanced Photon Source, Argonne National Lab.) Material:
• 15:15 EPICS integration of Raspberry Pi Monitoring System for simple applications and user trainings 15'
The Raspberry Pi is a very small size computer and it can connect to various sensors via GPIO ports. So It can be used not only IOC but also control device itself. In this report we'd like to present how to use and integrate into epics system. The first one is environment monitoring system which is consist of temperature sensor and serviced via web browser. The next one is a raspberry pi training kit for education. Because of low cost, The raspberry pi is very good device for epics start user.
 Speaker: Mr. Changwook Son (Institute for Basic Science) Material:
• 15:30 Benchmark and Use of ElasticSearch as a EPICS Directory Service 5'
Using Apache Camel to setup routes from FRIB IOC Info JSON Service to ElasticSearch.
 Speaker: Mr. Evan Daykin (Facility for Rare Isotope Beams) Material:
• 15:35 - 17:00 Facility Tour
• Wednesday, May 20, 2015
• 08:30 - 09:15 Tools & Clients
• 08:30 RAON EPICS integration of SNMP and its realization at early stage 15'
The Rare Isotope Science Project (RISP) at the Institute for Basic Science (IBS) constructs the rare isotope accelerator facility in South Korea. The accelerator control system uses various Ethernet-based devices and equipment, and most Ethernet-based devices support Simple Network Management Protocol (SNMP). Therefore, SNMP is useful to build a unified Network-based control system. In this presentation, we will present our trials and the status for EPICS integration of SNMP.
 Speaker: Ms. Mi Jeong Park (Institute for Basic Science) Material:
• 08:45 Deploying CS-Studio at DLS 15'
About one year ago, it was decided to evaluate CS-Studio as a replacement for EDM at Diamond.  Since then, much work has gone into making CS-Studio and BOY a viable replacement for the many existing deployed EDM screens without disrupting existing ways of working.

This talk describes the problems and solutions found, including the new work on OPI Shells, and shows how CS-Studio may finally be deployed for both machine and beamline operation at DLS.
 Speaker: Mr. Will Rogers (Diamond Light Source) Material:
• 09:00 Integration of Lua Embedded Scripting Language into EPICS Base 15'
Enhancements to EPICS Base integrating Lua Embedded Scripting Language.
 Speaker: Mr. Jeff Hill (LANL) Material:
• 09:15 - 10:15 Tools & Clients
• 09:15 Deployment process for multiple facilities 15'
We have improved our process for deploying IOC/high level applications/scripts to multiple facilities. We've migrated to using static builds for IOC's and making the software packages self-contained. This presentation describes cram - the tool/scripts we have collectively developed for managing software deployment to multiple facilities.
 Speaker: Mr. Murali Shankar (SLAC) Material:
• 09:30 Monitoring Dynamic IOC Installations Using the alive Record 15'
The alive record is part of a system used at the Advanced Photon Source for monitoring the IOCs on the experimental floor.  These IOCs are spread across many subnets, are maintained by multiple people, run different versions of software, and some travel between sectors.  For the beamline support groups, monitoring and maintaining these IOCs can be time-consuming as one is not sure of the current or most recent state for an IOC. The alive record allows an IOC to ping a central server across subnets, as well as provide upon demand from the server certain environment variables set at boot-time. This provides at the server an active list of IOC operational statuses, as well as configuration information about each IOC with information specific to an OS.  At the APS, over 100 IOCs on the floor are in this sytem, with such systems as traditional VME-based ones as well as mobile detector computers.
 Speaker: Dr. Dohn Arms (Argonne National Laboratory) Material:
• 09:45 Status Monitoring of the EPICS Control System at the Canadian Light Source 15'
The CLS uses the EPICS Distributed Control System (DCS) for control and feedback of a linear accelerator, booster ring, electron storage ring, and numerous x-ray beamlines. The number of host computers running EPICS IOC applications has grown to 200, and the number of IOC applications exceeds 700. The first part of this paper will present the challenges and current efforts to monitor and report the status of the control system itself by monitoring the EPICS network traffic. This approach does not require any configuration or application modification to report the currently active applications, and then provide notification of any changes. The second part will cover the plans to use the information collected dynamically to improve upon the information gathered by process variable crawlers for an IRMIS database, with the goal to eventually replace the process variable crawlers.
 Speaker: Mr. Glen Wright (Canadian Light Source) Material:
• 10:15 - 10:30 Coffee Break
• 10:30 - 12:00 Five Minute Talks
• 10:30 Driver/Device Support sis3316/ip 5'
Driver/Device Support sis3316/ip

We have developed a driver support for the digitizer Struck sis3316 which uses the Gbit-Ethernet interface on that card. To communicate with the digitizer we are using a C-library supported by Struck. The communication is based on the UDP protocol. Within the library unfortunately error cases are not threaded properly. We had to customize the library in some places that, e. g. Packet losses are properly handled. We are still in the process to integrate the time stamp of the card into the created EPICS record.
I hope that it is possible to compare our implementation with the standard vmebus driver up to our meeting. I just ordered a MVME6100 to continue with the comparative tests.
 Speaker: Heinz Junkes (Fritz-Haber-Institut) Material:
• 10:35 Adding site-specific laser-shot-numbers to timestamp 5'
To keep the data obtained at the user stations synchronously with the machine data we have added to the time stamp at a particular EPICS waveform record (pyroArray) a laser-shot-number. Unfortunately we are still not sure how to handle this timestamp very sensible. Therefore, I would like to encourage a general discussion on the timing and how the time stamp should be used.
 Speaker: Heinz Junkes (Fritz-Haber-Institut) Material:
• 10:40 Accessing NI Network Shared Variables from EPICS IOCs 5'
Network Variables are a convenient method for sharing information between National Instruments (NI) software and hardware. We have developed a configurable EPICS IOC for accessing information from such sources and exporting them as process variables, the intention being to use the shared variables as a clean interface between our EPICS control system and some specific third party provided equipment. The IOC software uses the LabWindows/CVI Network Variable Library and so can be run on Windows and several flavours of Linux.
 Speaker: Dr. Frederick Akeroyd (ISIS facility, STFC, GB) Material:
• 10:45 Providing remote access to the LIGO interferometers with EPICS based tools 5'
A review of how the EPICS tools are used to provide remote access to the LIGO interferometers.  This will include discussion of the current tools being used, the customizations that we have made, and the effort to easily package and distribute the tools to a distributed user base.
 Speakers: Mr. Jonathan Hanks (LIGO, California Institute of Technology), Keith Thorne (LIGO Livingston Observatory) Material:
• 10:50 EPICS Independent Test Suite for PCI-based controls devices using PythonQT 5'
In this paper we present the generic solution for testing PCI-based hardware devices on Linux. For simple device manipulation, EPICS provides additional layer of complexity, which is usually not desired by the people who are just interested that device works on its own. The paper presents four software modules that were developed to ease the testing of such hardware devices remotely, without the usage of EPICS. The complete solution provides a server that exposes device data on the network, client Python API to modify the data remotely, and PythonQt GUIs that enable the user to change the data easily as well as run automated Python tests and generate their reports. Implemented software package was successfully used for testing EMCOR controller at SLAC National Accelerator Laboratory. Since it has been made with reusability in mind, it can be used for any other PCI-based hardware device without additional effort.
 Speaker: Mr. Gasper Jansa (Cosylab) Material:
• 10:55 pvWebMonitor: post EPICS PVs to read-only (static) web page(s) 5'
The pvWebMonitor package provides a background service that monitors EPICS PVs and writes them into customized HTML files in a WWW server directory. The service can be started and stopped by a manage.csh script for automated startup in a cron task or at system startup.
 Speaker: Dr. Pete Jemian (Advanced Photon Source) Material:
• 11:00 EPICS-controlled OWI Edge Robotic Arm using a Raspberry Pi IOC 5'
The OWI Edge Robotic Arm is a child's toy that is built from a kit.  An optional USB interface is available through which communication from a Linux computer is possible.  Using the Raspberry Pi and asyn support, this hands-on IOC demonstrates how modestly a "complete" control system might be constructed, including GUI.
 Speaker: Dr. Pete Jemian (Advanced Photon Source) Material:
• 11:05 Controls for the Multi-bend acromat APS upgrade 5'
A controls centric status update concerning the various systems, the R&D and the project plans for the Multi-bend acromat (MBA) upgrade planned for the Argonne photon source. The MBA upgrade will rebuild the current third generation light source storage ring with a new lattice which, among other things will dramatically increase x-ray brightness, will reduce the electron beam emittance from the present value of 3.1 nm to under 100 pm and increase the beam current to 200 mA. To install the new storage ring, the old one will be removed and be replaced with the new one, along with the control system in a nine months window and allow three months to recommission.
 Speaker: Mr. Richard Farnsworth (Argonne National Labs) Material:
• 11:10 ALLEN-BRADLEY PLC-5 CONTROL WITH AN EPICS ‘SOFT IOC’ 5'
This talk describes how to use an EPICS “soft IOC" to control and monitor an Allen-Bradley PLC-5 through a TCP/IP link. I will explain how we converted twenty accelerator process water station PLC'S from a slow obsolete serial copper wire system to a fast network TCP/IP interface.
 Speaker: James Stevens (Argonne National Laboratory) Material:
• 11:15 Development Plan for Reliable Card-size IOC 5'
Recent card-size PCs, such as Raspberry Pi or BBB (Beagle bone black),
have enough performance to use as EPICS IOCs. In ERL in KEK-Tsukuba, a
few pieces of BBB IOCs with serial lines were developed to monitor
radiation-monitoring instruments [1]. However, due to lack of long-term
reliability and hardness, mass introduction to accelerator controls is
not realistic.
We have started study to develop a customized card-size PC. It will:
1) use long-term guaranteed parts, 2) has simple IOs (1 LAN, 2 serials,
8bit io), 3) be used with a hard metal-chassis, and 4) be not low-cost
but ...
We hope to develop a prototype by the end of FY2015. After 2016, it
will be used for newly introduced devices. In addition, part of legacy
VME-bus IOCs in J-PARC MR will be replaced by them.

[1] T.Obina, "Development of Compact Device Server with EPICS", PASJ2014-MOOL08, 11th Annual Meeting of Particle Accelerator Society of Japan, 2014
 Speaker: Dr. Norihiko Kamikubota (J-PARC/KEK) Material:
• 11:20 Managing BEAST alarm history 5'
Even after alarms have been addressed, maintaining the alarm history is useful to detect noisy alarms, find correlations, etc. We are using ElasticSearch, Lucene, and Kibana (ELK) along with Apache Camel to archive alarm messages and provide tools to query and visualize them.
 Speaker: Mr. Kunal Shroff (Brookhaven National Lab) Material:
• 11:25 Dynamic logging configuration in CS-Studio 5'
Additional information from the logger in CS-Studio would make it easier to identify and resolve issues. It is not possible to have the logger's default configuration set to a very fine level due to the volume of messages it would produce. The logging configuration tool provides a user interface which lists all the JVM loggers and allows users to dynamically change their logging levels. This allows acquiring detailed logs for only the potentially problematic pieces.
 Speaker: Mr. Kunal Shroff (Brookhaven National Lab) Material:
• 11:30 Rare Isotope Beam Transport at 30 kV 5'
The stopped-beam system at NSCL provides rare-isotope beams for precision measurements and for reacceleration.  Controls for beam transport and isotope selection are described
 Speaker: Mathias Steiner (Michigan State University) Material:
• 11:35 EPICS Base development at NSLS2 5'
Progress of developments for EPICS Base undertaken at NSLS2 with the goal of improving the performance and scalability of the process database on modern hardware.  Much work has also been done to expand unit test coverage in Base in an effort to maintain release quality.
 Speaker: Mr. Michael Davidsaver (BNL) Material:
• 11:40 NSLS-II Fast Orbit Feedback System Status 5'
We will present the NSLS-II fast orbit feedback system commissioning results. It includes the system architecture, the system characteristics measurement and system performance. In the system architecture section, we will describe the overall hardware architecture of the system and the communication between hardware. In the system characteristics section, we will present the measurement in real space and in eigenspace. In the system performance section, we will present the orbit long term drift, the orbit stability results from BPM SA data and the orbit stability results from the BPM FA data. We also discuss the spike issues we observed in the system, and how do we find the noise source using noise locator algorithm.
 Speaker: Mr. Yuke Tian (Brookhanven National Lab) Material:
• 11:45 Hour Log: A system for managing facility status 5'
Hour Log manages information about current experiment,  source, vault, beams, breakdowns, and shifts at NSCL. Operational staff use it to record notes and the corresponding facility status. It generates usage and breakdown reports for the funding agencies.  It interfaces with Olog, Archiver Appliance, Training,  and Trouble Record systems. It provides a RESTful API  which is used to display current and historical facility status on hallway and experiment displays.
 Speaker: Dr. Vasu Vuppala (FRIB) Material:
• 12:00 - 13:30 Lunch
• 13:30 - 14:45 Experimental Controls
• 13:30 areaDetector EPICSv4 modules 15'
A plugin and a driver for areaDetector were developed to allow data to be transported between areaDetector instances using EPICSv4's pvAccess protocol. This presentation discusses implementation details and test results for them, demonstrating the feasibility of real time data processing at rates above 10Gbps with very few frame losses.
 Speaker: Mr. Michael Davidsaver (BNL) Material:
ADnED is an areaDetector driver that can monitor neutron event data in an Epics V4 structure that was defined for use at the SNS. An overview of ADnED is presented. It is used for experimental data acquisition and provides real time views of accumulated neutron events and neutron time-of-flight data.
 Speaker: Dr. Matthew Pearson (ORNL) Material:
• 14:00 areaDetector: What’s New? 15'
areaDetector:  What’s New?

M. L. Rivers, Center for Advanced Radiation Sources (CARS), The University of Chicago, Chicago, IL 60637

This talk will focus on enhancements to the areaDetector package since it was last presented at the 2014 collaboration meeting at Saclay.  These include:
- New driver for cameras from QImaging.
- New driver for Dexela flat-panel CMOS detectors from Perkin Elmer.
- New driver for detectors from Princeton Instruments using their PICam library.
- New driver for the Merlin detector from Quantum detectors.
- Added the modules ffmegViewer, ffmegServer, aravisGogE, and firewireDCAM to the github repository.  These modules were written at Diamond Light Source and were previously hosted there.
- NDPluginROIStat: New plugin that supports multiple regions-of-interest with simple statistics on each. It is more efficient and convenient than the existing NDPluginROI and NDPluginStats when many regions of interest with simple statistics are needed.
- NDPluginCircularBuff: New plugin that implements a circular buffer. NDArrays are stored in the buffer until a trigger is received. When a trigger is received it outputs a configurable number of pre-trigger and post-trigger NDArrays. The trigger is based on NDArray attributes using a user-defined calculation.
- NDPluginAttribute: New plugin that exports attributes of NDArrays as EPICS PVs. Both scalar (ai records) and time-series arrays (waveform records) are exported.
- iocs/simDetectorNoIOC: New application that demonstrates how to instantiate a simDetector driver and a number of plugins in a standalone C++ application, without running an EPICS IOC.  Applications only need the libCom library from EPICS base and the asyn library.

The talk will also discuss future plans for the areaDetector package.
 Speaker: Mark Rivers (Univ. of Chicago) Material:
• 14:15 nED - EPICS-based neutron data acquisition and detector control software 15'
This talk will present an overview of nED software, with a focus on the software architecture and design.
 Speaker: Mr. Gregory Guyotte (ORNL / SNS) Material:
• 14:30 Time source callback and attribute plugin for areaDetector 15'
Timestamp tagging to data and aligning data to individual beam pulse are important part of data acquisition system for pulse machine. We have utilized Beam Synchronous Acquisition (BSA) for LCLS, FACET and other accelerator facilities in SLAC. BSA provides a common interface for the timestamp tagging and aligning data to beam pulse. Unfortunately, we could not get benefit from the BSA for camera image data due to the image is an array data and it should be stored as image file format. BSA only supports scalar type epics PV. Our timing system in SLAC has 360Hz granularity. Most of image processing and acquiring cycles are non-deterministic in time domain and spend longer time than the 360Hz timestamp update period. These bring difficulty of timestamp tagging for image data.
We have discussed with Mark Rivers, author for the areaDetector module, about time source callback to implement the driver level timestamp tagging with user defined function. The driver level timestamp tagging gives more deterministic and real-time behavior. The timestamp is stored as a part of meta-data of the image and can be utilized by downstream plugins such as file plugin which saves the timestamp into image file format. We also discussed to extend attribute plugin to post out the timestamp related data to epics PVs.  He reflected our requirements for the time source callback in the latest areaDetector module and the attribute plugin also.
We are going to describe the details about the time source callback and attribute plugin.
 Speaker: Kukhee Kim (SLAC National Accelerator Laboratory) Material:
• 14:45 - 15:00 Coffee Break
• 15:00 - 17:00 Services
• 15:00 Fast Data Storage system for PAL-XFEL 15'
We have developed a fast data storage and archiving system for the PAL-XFEL project. The system monitors around 5000 EPICS PVs, updated at 60Hz, most of which are scalars. The system keeps, at a minimum, 5 minutes of short-term history available for retrieval at any time. On the other hand, the system allows for long-term preservation of data from specific time intervals. This includes preservation of both past buffered data as well as future data. For example, the system can be configured to preserve the last 5 minutes and the next 2 minutes of data in the event of an interlock, or upon manual request by a user. As the basic interface, the system accepts HTTP requests to preserve a specific time frame of data. There is also an option to issue such data preservation requests based on updates of PVs. The system is based on the EPICS Archiver Appliance software with modifications that implement the data preservation logic, along with various improvements related to the data storage logic and general performance.
 Speaker: Ambrož Bizjak (Cosylab) Material:
• 15:15 infoServ 15'
An IOC task to provide PV and configuration information to scripting languages over HTTP
 Speaker: Mr. John Priller (NSCL/FRIB) Material:
• 15:30 Scan Server Update 15'
Addition of 'parallel' commands.
Ongoing work on Python client library.
Update on how it's used at SNS.
 Speaker: Dr. Kay Kasemir (ORNL/SNS) Material:
• 15:45 Traveler and cable web applications at FRIB 15'
The traveler and cable web applications have been actively developed at FRIB since the beginning of 2013. The traveler application V2 entered production usage in March 2014. FRIB cable data has been imported into the cable application in production since Dec. 2014.

The traveler and cable applications shares a similar technology stack: node.js, Express, and MongoDB. In this talk, I will give a demo of the two applications. I will report the requirements, design, and implementation of the two applications. I will also present how they have been evolved over the last two years, and the lessons that we have learnt.
 Speaker: Dong Liu (FRIB) Material:
• 16:00 Software Architecture of a Remotely Monitored Dosimetry System 15'
A study of absorbed dose in undulator magnets at SLAC's Linac Coherent Light Source (LCLS) was performed using RADFET dosimeters. An extrapolation of the dose rate observed with the present LCLS, at 120 Hz, to the 1-MHz rate planned for LCLS II suggests the new system's permanent magnets could have an unacceptably short useable lifespan. In order to study factors affecting integrated dose rate in real time, a networked system was designed to monitor up to 168 RADFETs, with the accumulate/read cycle implemented in Keithley's Test Script Builder (TSB). TSB is an extension of the Lua language, used for local control and serial communications. Thus we had the opportunity to design and implement both a streamdevice based EPICS IOC and the device it controls. Design of both sides of the system and the overall system will be presented. Functionality is divided by where it can best be performed, with a minimal and specialized protocol to bridge the parts.
 Speaker: Mr. Garth Brown (SLAC) Material:
• 16:15 Ophyd: Software for Data Collection, Management, and Analysis 15'
Ophyd is a Python-based framework for experiment control under development at Brookhaven National Lab and deployed for use on NSLS-II beamlines. The software supports device control, data collection and distribution, reciprocal space operations, integration with electronic logging, and more. Ophyd is coupled with searchable back-end storage and retrieval components, which together form an end-to-end data management architecture for the NSLS-II. An overview of Ophyd’s architecture and its accompanying data management infrastructure will be discussed.
 Speaker: Arman Arkilic (Brookhaven National Lab) Material:
The beamlines at NSLS-II are among the highest instrumented, and controlled of any worldwide. Each beamline can produce unstructured data sets in various formats. This data should be made available for data analysis and processing for beamline scientists and users. Various data flow systems are in place in numerous synchrotrons, however these are very domain specific and cannot handle such unstructured data. We have developed a data flow service, metadatastore, that manages experimental data in NSLS-II beamlines. This service enables data analysis and visualization clients to access this service either directly or via databroker api in a consistent and partition tolerant fashion, providing a reliable and easy to use interface to our state-of-the-art beamlines.
 Speaker: Arman Arkilic (Brookhaven National Lab) Material:
• 16:45 NSLS-II Data Management 15'
Each NSLS-II beamline can generate 72,000 data sets per day, over 2 M data sets in one year. The large amount of data files generated by our beamlines poses a massive file management challenge. In response to this challenge, we have developed filestore, as means to provide users with an interface to stored data.  By leveraging features of Python and MongoDB, filestore can store information regarding the location of a file, access and open the file, retrieve a given piece of data in that file, and provide users with a token, a unique identifier allowing them to retrieve each piece of data. Filestore does not interfere with the file source or the storage method and supports any file format, making data within files available for NSLS-II data analysis environment.
 Speaker: Arman Arkilic (Brookhaven National Lab) Material:
• 17:00 - 17:30 Group Picture
Group picture
 Location: Horticulture Gardens
• 19:00 - 21:00 Dinner ( 300 Grove, East Lansing, MI 48823 ( HopCat ) )
• Thursday, May 21, 2015
• 08:30 - 10:00 Services
• 08:30 Archiver appliance update 15'
Summary of recent changes to the EPICS archiver appliance; this has been in production in LCLS for more than a year. Support for V4, decimation and other features.
 Speaker: Mr. Murali Shankar (SLAC) Material:
• 08:45 Archiver Appliance at NSLS2 15'
The SLAC Archiver Appliance has been deployed for NSLS2 (BNL).  This work included testing of the server and development of client tools. Performance numbers, progress on a data file converter, and other aspects of the software ecosystem will also be discussed.
 Speaker: Mr. Michael Davidsaver (BNL) Material:
• 09:00 Past, present, and future of EPICS Qt 15'
A serious drawback that exists today is the lack of comprehensive frameworks on which to develop high level applications on top of EPICS. The lack of modern alternatives to antiquated codes has stalled progress in control systems development and presents impending difficulties for both private and public users to maintain EPICS. In the past few years, controls engineers from different accelerator facilities have proposed to extend code-reuse to higher level applications by advocating a modern framework, Qt. The goal of this presentation is to communicate the recent progress of the EPICS Qt collaboration. The EPICS Qt framework is Python, C/C++, and Qt environment. Unlike MEDM and EDM, EPICS Qt is modern, well-documented, and backed by a healthy community.  Like Tk, EPICS Qt is free and open source. EPICS Qt offers the potential of seamless integration of MATLAB-like software. Like LabVIEW, EPICS Qt allows for fast prototyping. EPICS Qt's many-language bindings offer existing facilities a smooth transition to a modern high-level framework.  EPICS Qt will be viable alternative to CSS through the involvement of the EPICS community and the development of open source tools, ultimately providing a strong foundation for many types of control systems across DOE labs as well as private industries that use DOE accelerator technology.
 Speaker: Mr. Emmanuel Mayssat (EPICS Qt)
• 09:15 EPICS on SNS Instruments 15'
The SNS is in the process of converting from a Windows/Labview based control system to a Linux/EPICS based system for our instrument controls. I will present an overview of our computing infrastructure, EPICS device control, our use of CS-Studio as the main user interface, and our plans for the future.
 Speaker: Dr. Matthew Pearson (ORNL) Material:
• 09:30 Moving towards Continuous Delivery 15'
The complexity of the FRIB control system requires high code quality while, particularly during the commissioning phase, short turn-around times are desirable. We will present the status of our efforts moving towards automated software builds, deploying and managing FRIB's controls infrastructure. The tools used in this process include a revision control system (Git), software packaging (for Debian), continuous integration services (Jenkins), configuration management (Puppet) and automatically installed virtual machines for development (Vagrant).
 Speaker: Dr. Martin Konrad (Facility for Rare Isotope Beams) Material:
• 09:45 CS-Studio Collaboration Status 15'
CS-Studio Collaboration Status
 Speaker: Mr. Eric Berryman (Facility for Rare Isotope Beams) Material:
• 10:00 - 10:15 Coffee Break
• 10:15 - 12:00 Services
• 10:15 caputRecorder: a "macro" recorder for EPICS 15'
caputRecorder supports the recording and playback of sequences of caputs. It records each caput as a python command, and a sequence of caputs as a python function (users call this a "macro"). caputRecorder can also serve as a simple user interface for delivering canned python functions to end users. caputRecorder communicates with users via an EPICS database, so it allows any EPICS record or channel-access client to record and run python functions, and to wait for them to complete.

See http://www.aps.anl.gov/bcda/synApps/caputRecorder/caputRecorder.html
 Speaker: Tim Mooney (Advanced Photon Source, Argonne National Lab.) Material:
• 10:30 Paired Redundant IOCs with Redundant Hardware 15'
Last year we installed a dual redundant master timing system at LANSCE.  A fiber-optic fanout concentrator module acts as a switch to select which timing generator is used to control the accelerator. Each generator consists of two IOCs, which must fail over as a pair.  We modified the redundant IOC software from DESY to be able to synchronize some PVs but not others, and allow both IOCs to control hardware simultaneously.  If the master stops generating timing signals, our software on the slave first commands the switch and then tells the IOCs to follow suit.  I will discuss the modifications we made, and our experience in operating these IOCs.
 Speaker: Dr. Scott Baily (LANL) Material:
• 10:45 DISCS Status 15'
Distributed Information Services for Control Systems (DISCS) is a framework for building high-level applications for commissioning, operation, and maintenance of an experimental physics facility. It provides programmatic as well as graphical interfaces to its data and services.  It is comprised of a set of cooperating services and applications, and manages data such as naming, machine configuration, lattice, measurements, alignment, cables, machine state, inventory, operations, calibration, and design parameters. The services/applications include Logbook, Traveler, Unit Conversion, Online Model, and Save-Restore. Each component of the system has a database, an API, and a set of applications. The services are accessed through RESTful and EPICS V4 interfaces.

We present the current status of DISCS.
 Speaker: Dr. Vasu Vuppala (FRIB) Material:
• 11:00 Developing a user interface for experiment control at the ISIS neutron and muon spallation source 15'
For over ten years the beamline instruments at the ISIS neutron and muon spallation source have been operating successfully using a LabVIEW-based control system.  However, a range of new instruments are being built, offering the potential to implement very complex experiments. For this reason, the long-term suitability of the control system was reviewed. Based on this review, it was decided that switching to an EPICS-based system would offer many advantages in terms of flexibility, code reuse and collaboration.

Over the last two years, the ISIS Computing Group has been developing this new EPICS-based control system whilst maintaining the existing system. The new system, which is still under active development, is currently being used to commission a new instrument on ISIS’s second target station.

This presentation will describe:
•	The strengths and weaknesses of the existing control system and how this has fed into the design of the new EPICS-based system
•	The architecture of the new system
•	The development of a new graphical user interface
•	The current state of the control system and thoughts about the progress so far
 Speaker: Dr. Matt Clarke (Science and Technology Facilities Council) Material:
• 11:15 EPICS for Hard Real-Time? 15'
The existing EPICS Database covers soft real-time applications in the range up to ~1kHz. What would it need to go beyond that? Which existing concepts would hold? Which would have to be replaced?
This talk shows common features of existing real-time frameworks in the fusion community, and presents ideas for a deterministic processing engine in EPICS.
 Speaker: Mr. Ralph Lange (ITER Organization) Material:
• 11:30 WebPODS: web gateway and HTML/CSS widgets 15'
There is an increasing interest to access data coming out of the control system through web technology. Use cases includes the integration with other web tools, applications on tablets/devices, office network live reports/status and off campus access for monitoring beamlines. WebPODS aims to provide a specification based on HTTP/WebSockets/JSON to access the data, a server implementation to act as a gateway, a javascript client library, a set of pure HTML/CSS widgets to display such data and a Java client library. The server utilizes DIIRT as the connection layer, the same engine used in CS-Studio, and therefore makes already available a broad set of functionality (e.g. support for different protocols, formulas, …). As the project has completed its first official release, we go through its status, its functionality and its future.
 Speaker: Mr. Gabriele Carcassi (Carcassi LLC) Material:
• 11:45 Updates from Data Integration In Real-Time (DIIRT) 15'
We present the status and future plans for DIIRT (Data Integration In Real-Time), the Java Connection layer used in CS-Studio, WebPODS and available to any Java program. The features in the new 3.0 release will be presented, including the improved support for services, the improved support for real-time formulas, improved color maps for intensity graphs and the integration with JavaFX.
 Speaker: Mr. Gabriele Carcassi (Carcassi LLC) Material:
• 12:00 - 13:30 Lunch
• 13:30 - 16:00 Future
• 13:30 EPICS Base Releases and Plans, 2015 edition 15'
Recent releases of Base and plans for future versions.
 Speaker: Mr. Andrew Johnson (Argonne National Laboratory) Material:
• 13:45 EPICS V4 Overview 2h0'  Speakers: Marty Kraimer, Dr. David Hickin (Diamond Light Source) Material: Slides
• 15:45 Concluding Remarks 5'
• 16:00 - 16:30 Free discussions and coffee
• Friday, May 22, 2015
• 08:00 - 12:00 EPICS V4 Working group: Satellite/Follow up meeting