SynApps status and plans Tim Mooney Beamline Controls & Data Acquisition Group June 13, 2006.

Slides:



Advertisements
Similar presentations
Control System Studio (CSS)
Advertisements

SNS Integrated Control System SNS RDB Requirements, wish list, status A little history l Oracle RDB used exclusively by accelerator physics group l JERI.
1 1999/Ph 514: Channel Access Concepts EPICS Channel Access Concepts Bob Dalesio LANL.
Linux IOC Operations at NSTX - An Overview P. Sichta 28Mar2005.
Wayne Lewis Australian Synchrotron Beamline Controls Design and Implementation.
Finding, Deploying and Managing EPICS Support Modules Andrew Johnson Computer Scientist, AES Controls.
EPICS at APS Beamlines Tim Mooney Advanced Photon Source Argonne National Laboratory.
9-12 Oct 2000PCaPAC 2000, DESY Hamburg Epics to TINE translator Matthias Clausen, DESY Hamburg Phil Duval, DESY Hamburg Zoltan Kakucs, DESY Hamburg.
16 - Nov. 2000EPICS Workshop Oak Ridge1 Epics to TINE translator Matthias Clausen, DESY Hamburg Phil Duval, DESY Hamburg Zoltan Kakucs, DESY Hamburg.
Pete Owens MICE Controls & Monitoring Workshop 25th September 2006 MICE Control and Monitoring: General Architecture Subsystem Integration User Interface.
V4 – Executive Summary 1.Provide online add/delete of I/O to support continuous operation. 2.Provide redundant control of remote I/O to support improved.
Summary of EPICS Beamline Controls SIG Workshop Mark Rivers University of Chicago June 14, 2006.
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
Systems Software Operating Systems.
Linux-MVME Targets Using Motorola Board Support
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.
EPICS Meeting, APS, June 14 th 2006 MCS-8 The 8 axes motion control system Rok Šabjan
INTRODUCTION TO WEB DATABASE PROGRAMMING
Input/Output Controller (IOC) Overview Andrew Johnson Computer Scientist, AES Controls Group.
Lesson 6 Operating Systems and Software
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.
Topics Introduction Hardware and Software How Computers Store Data
Automatic Regression Test Facility for Support Modules Jon Thompson, Diamond Light Source Vancouver, 1 May 2009.
EPICS Developments at the Australian Synchrotron DSP EPICS driver for the General Standards 16AIO analog card EPICS driver for the Galil range of motor.
EPICS for Experiments. Programme 09:30: Introduction to EPICS (Nick Rees) 09:45: Asyn (Jon Thompson) –C++, extending AsynPortDriver base class –Parameters,
TANGO on embedded devices: the Bimorph Mirror application case Fulvio Billè Roberto Borghes, Roberto Pugliese, Lawrence Iviani Instrumentation & Measurement.
Debby Quock November 13, 2012 IRMIS at CLS. IRMIS Currently at CLS PV Crawler –Perl modules that parse EPICS IOC st.cmd, db, and dbd files. Information.
BLU-ICE and the Distributed Control System Constraints for Software Development Strategies Timothy M. McPhillips Stanford Synchrotron Radiation Laboratory.
Conversion to EPICS R3.14 Mark Rivers. New capabilities Progress in converting synApps/GSECARS Outstanding issues Work to be done Outline.
Beamline Controls with EPICS at NSLS Zhijian Yin NSLS, BNL EPICS Collaboration Meeting, SSRF, March 2008.
LCLS Undulator Positioning Control System Shifu Xu, Joseph Xu, Josh Stein Control Group, AES/APS, ANL June 15, 2006.
Materials Science and Protein Crystallography Using the MX Beamline Control Toolkit William M. Lavender
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.
Elder Matias, Diony Medrano, Dong Liu (At Michigan State University - Nov 2011) IRMIS at CLS.
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.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio, CSS Overview.
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.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
Experience Running Embedded EPICS on NI CompactRIO Eric Björklund Dolores Baros Scott Baily.
Automated Testing Presentation to EPICS Collaboration Meeting DESY Paul Gibbons PhD Diamond Light Source Ltd.
“Recent” developments in EPICS-based beamline software 7/24/02 Tim Mooney Beamline Controls & Data Acquisition Group Advanced Photon Source Argonne National.
ATF2 Mover Software 19 June 2008 Janice Nelson, Doug McCormick (SLAC) Glen White (LAL/SLAC) Justin May (no longer at SLAC)
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.
Integrating EPICS and LabVIEW on Windows using DCOM Freddie Akeroyd ISIS Computing Group.
EPICS at APS Beamlines Tim Mooney Advanced Photon Source Argonne National Laboratory.
Managed by UT-Battelle for the Department of Energy CSS Update Matthias Clausen, Helge Rickens, Jan Hatje and DESY Delphy Armstrong, Xihui Chen,
EPICS Application Development At The Canadian Light Source Glen Wright.
EPICS to TANGO Translator Rok Šabjan on behalf of Rok Štefanič Presented at ICALEPCS, Knoxville, October.
Source Controller software Ianos Schmidt The University of Iowa.
EPICS Detector and Feedback Software Mark Rivers GeoSoilEnviroCARS, Advanced Photon Source University of Chicago.
1 1999/Ph 514: Supported Hardware EPICS Supported Hardware Ned D. Arnold APS.
1 Channel Access Concepts – IHEP EPICS Training – K.F – Aug EPICS Channel Access Concepts Kazuro Furukawa, KEK (Bob Dalesio, LANL)
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.
Motion Control at the Advanced Photon Source Argonne National Laboratory Mark Rivers University of Chicago 7 GeV synchrotron x-ray light source, the largest.
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.
Office of Science U.S. Department of Energy “Traditional” Tools for Beamline Applications Mark Rivers University of Chicago October 16, 2008.
Monitoring Dynamic IOC Installations Using the alive Record Dohn Arms Beamline Controls & Data Acquisition Group Advanced Photon Source.
Using COTS Hardware with EPICS Through LabVIEW – A Status Report EPICS Collaboration Meeting Fall 2011.
SynApps status and plans Mark Rivers October 16, 2008 based on material provided by Tim Mooney Beamline Controls & Data Acquisition Group Advanced Photon.
Topics Introduction Hardware and Software How Computers Store Data
Using EPICS for Beamline Control and Data Acquisition
synApps status and plans
Getting Started with EPICS A lecture Series
synApps status and plans
Topics Introduction Hardware and Software How Computers Store Data
Channel Access Concepts
Presentation transcript:

synApps status and plans Tim Mooney Beamline Controls & Data Acquisition Group June 13, 2006

2 What is synApps? EPICS-based software for use at synchrotron beamlines Commissioning-level software for ~80% of a new beamline –Basic support for common beamline devices Support for higher level, beamline-specific applications –Code libraries, implementation tools, examples Run-time tools to help users meet unanticipated needs –Can build software machines, feedback loops, serial support Support for collaborative development of beamline software –A vehicle by which developers at one beamline can easily contribute to software running on other beamlines. On the web: –

3...What is synApps? A collection of EPICS Applications for use at synchrotron beamlines Tools for translating user requirements into running code: –USER: “I need 40 motors, two scaler banks, an MCA, a monochromator, two optical tables, four current preamplifiers, 8 serial ports, four DAC channels, three slits, a mirror, run-time calcs, scans,...” –DEVELOPER: edit startup files to configure hardware and load databases

4 Scope Mostly infrastructure and generic capabilities, as opposed to experiment/technique-specific programs –E.g., things like motors, scalers, and scans, as opposed to things like EXAFS, small-angle scattering, and protein crystallography –Why? Economics – Generic has the wider audience Information & expertise – beamline developers have it; we don’t. Control – Generic software allows us to contribute to user software without taking control. Mostly IOC-resident code, as opposed to client-side programs –E.g., scan software could run on workstations, but instead it runs on IOC’s –Why? Access/coordination – IOC-resident code can be driven by anyone; clients generally cannot be driven by other clients. Distribution/deployment – EPICS handles this for ioc-resident code.

5...Scope Some statistics: 19 EPICS modules autosave, calc, camac, ccd, dac128V, dxp, ebrick, ip, ip330, ipUnidig, love, mca, motor, optics, quadem, sscan, std, vme, xxx 16 record types aCalcout, sCalcout, swait, transform, camac, dxp, motor, mca, table, busy, sscan, scanParm, epid, scaler, sseq, vme ~156 device types (~118 hard, ~38 soft) ~197 EPICS databases ~458 MEDM display files ~526 c, c++, SNL source files (~281,000 lines of code) ~77 documentation files (~38,000 lines of documentation)

6 Architecture Same as any other EPICS Application Client side –runs on Solaris, Linux, Windows –interfaces to C, C++, java, IDL, Python, tcl,... Server side –runs on vxWorks, Linux, Windows, Solaris –can develop in C, C++, SNL transient tool Default GUI CA server interface Driver spec CA client interface

7 How is synApps used? Copy xxx module, edit to fit beamline, boot crate Excerpt from xxx-module’s st.cmd file: dbLoadDatabase("../../dbd/iocxxx.dbd") … # Motors dbLoadTemplate("motor.substitutions") … # Slits dbLoadRecords("$(OPTICS)/opticsApp/Db/2slit.db","P=xxx:,SLIT=Slit1V,mXp=m3,mXn=m4") dbLoadRecords("$(OPTICS)/opticsApp/Db/2slit.db","P=xxx:,SLIT=Slit1H,mXp=m5,mXn=m6") … # Monochromator dbLoadRecords("$(OPTICS)/opticsApp/Db/kohzuSeq.db","P=xxx:,M_THETA=m9,M_Y=m10, M_Z=m11,yOffLo=4,yOffHi=36") … iocInit … ### startup State Notation Language programs seq &kohzuCtl, "P=xxx:, M_THETA=m9, M_Y=m10, M_Z=m11, GEOM=1, logfile=kohzuCtl.log“

8 Sample user displays

9 synApps modules mcamultichannel analyzers and multichannel scalers motorstepper/servo motor opticsmonochromators, optical table, etc. quadEMfour-channel fast analog input sscanscans, data storage stdscalers, feedback, misc. vmeVME hardware xxxrunnable example of how everything in synApps is configured & used; typically controls a single experiment station autosaveparameter save/restore; maintains continuity through reboot calcrun-time expression evaluation camacCAMAC support ccdCCD support dxpXIA DSP-based x-ray detector pulse analyzer ebrick love EPICS-brick application Love controllers (digital and analog I/O via serial) Ip*, dac*Serial, analog, and digital I/O

10 Who uses synApps? Synchrotron beamlines –~20 sectors of APS –Swiss Light Source –NSLS (several beamlines) –Diamond –Australian Synchrotron –CLS, LCLS ? Other EPICS sites –Many non-synchrotron sites use a few synApps modules, notably motor autosave calc

11 Content of a synApps module Source code –EPICS records –EPICS device/driver support –EPICS databases –SNL and other code autosave-request files –Database author figures out how to survive reboot MEDM-display files –The default user-interface tool Documentation Some modules contain runnable examples

12 synApps depends on software written by others ModuleDeveloper Org.Purpose asynAPS Controls & CARS-CAT support for asynchronous message-based control ipacAPS ControlsIndustryPack carrier support seqSLACState-Notation-Language compiler genSubObservatory Sciences General-purpose subroutine record vxStatsSNS/ORNLvxWorks status/statistics allenBradleyAPS Controlssupport for communicating with Allen-Bradley PLC’s synApps also uses (“contains”? “second sources”?) some software written by others that is not in the form of a module The idea is to avoid requiring synApps users to find, configure and test software that someone else has already found, configured, and tested.

13 autosave module Records values of selected EPICS Process Variables -- periodically, or in response to user-specified trigger Restores saved values when the computer restarts Can save/restore any scalar or array-valued PV Developer chooses default PV’s to be saved; user can override Defends saved values from incompetent file server, crash, etc. Recent work: –v4.1.3 (synApps 5.2 candidate) –reduce sensitivity to errors –status-PV name length fixed Plans: –no immediate plans

14 calc module Evaluate expressions entered at run time Records –sCalcout – like calcout, but also supports string expressions; user can specify wait-for-completion. –aCalcout – like sCalcout, but for arrays instead of strings; –swait – like calcout, but uses recDynLink (no “PP MS” link attributes) –transform – like 16 calcout records that share a PV data pool Other code –string/array-calc engines –sCalcout soft device support (with wait-for-completion option) –interpolation (lookup table), based on the genSub record

15...calc module Recent work: –v2.6.1 (synAps 5.2 candidate) –array calc –ESC(), TR_ESC() added to sCalc –sCalcout record uses device support (for streamDevice) –interp array (lookup table) modifiable via PV’s at run time –expression help in MEDM displays Plans: –Copy Andrew Johnson’s store-to-variable enhancement of the standard calc engine to string/array-calc engines. –enhance aCalc with new operators/functions as needed –Get rid of swait-record’s dependence on recDynLink

16...calc module Databases, medm displays for run-time programming –userCalc, –userStringCalc –userArrayCalc –userTransform –userAve –lookup table

17 ip module Originally, all IndustryPack modules Now, only support for message-based devices device support, SNL code, databases, and MEDM displays for message-based devices –digital multimeters, current preamplifiers, temperature controllers, etc. deviceCmdReply –Used to write support at run time for one command/reply message –sCalcout to format output string –asyn record to write/read device –sCalcout record to parse reply –handles messages with embedded nulls, selected checksums devXxStrParm device support –to be replaced by streamDevice/asyn

18...ip module Recent work: –v2.6 (synApps 5.2 candidate) –SR630 thermocouple scanner –Pelco CM6700 video switch Plans: –New module manager (Kurt Goetze) –integrate streamDevice as new module? (not currently in module form) as code within ip?

19 optics module Slits and mirrors Monochromators –Nondispersive double-crystal –Dispersive double crystal –Spherical Grating Optical table Orientation matrix –(H, K, L)  (2 , , ,  ) + constraint –User/client can write to underlying motors Automated alignment for zone-plate microscope

20...optics module Recent work: –v2.5 (synApps 5.2 candidate) –Orientation matrix –Automated microscope alignment –Added ionization-chamber calibration support Plans: –Include SLS support for plane grating monochromator? –general purpose alignment tools

21 sscan module Support for user-programmable data-acquisition –sscan and busy records –saveData –recDynLink Recent work: –number of data points limited only by IOC memory –pipelined data storage –can mix scalar and array detectors –fixed some link-management bugs –added Python code to read, write, and operate on scan-data files –Include Dohn Arms’ (APS/XOR-7) C-code utilities for scan-data files Plans: –Support 2D-array detectors

22 std module Epid record –Extended PID record Scaler record –Controls a set of counters with a common clock, gate, and trigger String-sequence record (i.e., ‘seq’ for strings or numbers) –Can choose to wait for completion after each step in sequence Soft-motor database –Run-time programmable soft-motor/transform/hard-motor database –Quick solution for driving a motor through a nonlinear transform Timestamp record [stolen from Stephanie SLAC] –needed by SNS’ vxStats; currently not available in a module 4-step database –Up to four steps of (set condition; read data) with an end calculation –Originally developed for dichroism experiments

23...std module Recent work –v2.5.2 (synApps 5.2 candidate) –pvHistory – short-term history of PV –String-sequence record: fixed link-management bug Plans: –Convert scaler record to use asyn-based device support

24 xxx module Prototype user directory (i.e., deployable menu of synApps software) –Builds everything in synApps into a load module –Contains command files to load/configure everything in synApps –Contains sample top-level MEDM-display file –Contains sample script to start up the user interface –Contains table of recommended address/interrupt configuration. Recent work: –load/config examples for new devices Plans: –more support for converting applications to new version of synApps

25 other directories Top-level documentation directory –How to build and deploy synApps config directory –Configures and builds all modules in or used by synApps –MASTER_RELEASE – specifies all module versions utils directory –changePrefix -- Global search and replace of EPICS PV prefix within a copy of the xxx module –copyAdl -- Find all MEDM-display files buried in a file tree; copy to specified directory