BROOKHAVEN SCIENCE ASSOCIATES U.S. Department of Energy Office of Basic Energy Sciences Funded under contract: DE-AC02-98CH10886 EPICS/RTEMS at NSLS S.

Slides:



Advertisements
Similar presentations
Layered EPICS User Gap Control Interface for NSLS Mini-gap Undulators William Nolan and John Skinner, Biology Department Susila Ramamoorthy and Lonny Berman,
Advertisements

RTEMS and Linux at the Canadian Light Source Tony Wilson Canadian Light Source University of Saskatchewan.
1 1999/Ph 514: Working With an IOC EPICS Working with an IOC Marty Kraimer APS.
Operated by Los Alamos National Security, LLC for the U.S. Department of Energy's NNSA UNCLASSIFIED Managing IOCs with Local Filesystems Scott A. Baily.
ManageEngine TM Applications Manager 8 Monitoring Custom Applications.
16 - Nov. 2000EPICS Workshop Oak Ridge1 Epics to TINE translator Matthias Clausen, DESY Hamburg Phil Duval, DESY Hamburg Zoltan Kakucs, DESY Hamburg.
Author: Texas Instruments ®, Sitara™ ARM ® Processors Building Blocks for PRU Development Module 2 PRU Firmware Development This session covers how to.
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.
Linux-MVME Targets Using Motorola Board Support
1 THE ARCHITECTURE FOR THE DIGITAL WORLD TM THE ARCHITECTURE FOR THE DIGITAL WORLD Embedded Linux for ARM Architecture.
Performance Evaluation of Real-Time Operating Systems
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.
MDK-ARM Microcontroller Development Kit MDK: Microcontroller Development Kit.
1 uClinux course. 2 Author: D L Johnson Overview u Day 1 +Survey of embedded operating systems - why uclinux? +The uclinux environment - the directory.
University of Bergen public domain software: SEISLOG Linux, data-acquisition system for standard PC and embedded lowcost, low-power solutions Terje Utheim.
Input/Output Controller (IOC) Overview Andrew Johnson Computer Scientist, AES Controls Group.
Stanford Linear Accelerator Center PowerPC and VXI Kinetic Systems V152 Embedded PowerPC Slot-0 Controller.
Beamline Workshop 14 June 2011EtherCAT Driver for Remote I/O1.
RTEMS overview W. Eric Norum Introduction RTEMS is a tool designed specifically for real-time embedded systems The RTEMS product is an executive.
EDG LCFGng: concepts Fabric Management Tutorial - n° 2 LCFG (Local ConFiGuration system)  LCFG is originally developed by the.
CBASS for Beamline Control Software Development: John Skinner Matt Cowan Rick Buono Chris Dropp Leon Flaks Scientific Support: Annie Heroux Howard Robinson.
ICS – Software Engineering Group 1 Cross Compiling vxWorks on Linux EPICS Collaboration Meeting l May 2002 at BESSY, Germany May 2002 at BESSY,
Introduction to EPICS (Ned Arnold, John Maclean).
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.
Remote Operation of Light Source Beamlines with (Free)NX Zhijian Yin, Peter Siddons, NSLS, BNL Controls at NSLS Facility Beamlines What Is NX, FreeNX Cybersecurity.
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.
Windows 2000 Course Summary Computing Department, Lancaster University, UK.
Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.
Micro-Research Finland Oy Components for Integrating Device Controllers for Fast Orbit Feedback Jukka Pietarinen EPICS Collaboration Meeting Knoxville.
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.
 Overview › Requirements › Proof of Principal › Issues … › First Step – Wrap Altera NIOS2 GNU Tools › Next Step – Build RTEMS/NIOS GNU Tools › Future.
1 EPICS Linux Based IOC Support EPICS Meeting at BESSY May 2002 Marty Kraimer.
Operational SNS Karen S. White Controls Group Leader 10/11/10.
1 BROOKHAVEN SCIENCE ASSOCIATES Funded under DOE contract : DE-AC02-98CH10886 EPICS/RTEMS/MVME5500 FOR REAL-TIME CONTROLS AT NSLS ICALEPCS2005, Geneva,
Petra III Status Teresa Núñez Hasylab-DESY Tango Meeting DESY,
EPICS sequencer update Greg White / William Lupton / EPICS ‘99 SLAC, May 27, 1999.
EPICS DIAMOND EPICS Meeting, EPICS base 3.14 OSI: Operating System Independent Support Marty Kraimer.
1 1999/Ph 514: Flow of Control EPICS Flow of Control Marty Kraimer APS.
Grenoble, June 22nd 2009 Libera Workshop 2008 Peter Leban, Andrej Košiček Libera Brilliance, Recent Patches, new Ideas, Future Grenoble,
1 EPICS EPICS Base 3.13 and 3.14 Status and License IHEP August 2002 Marty Kraimer and Andrew Johnson.
Msdevcon.ru#msdevcon. ИЗ ПЕРВЫХ РУК: ДИАГНОСТИКА ПРИЛОЖЕНИЙ С ПОМОЩЮ ИНСТРУМЕНТОВ VISUAL STUDIO 2012 MAXIM GOLDIN Senior Developer, Microsoft.
A Remote Collaboration Environment for Protein Crystallography HEPiX-HEPNT Conference, 8 Oct 1999 Nicholas Sauter, Stanford Synchrotron Radiation Laboratory.
Byoung-Jo CHOI Fall 2007 SW Project II Advanced Linux Programming.
Implementation of Embedded OS Lab3 Porting μC/OS-II.
B. Dalesio, N. Arnold, M. Kraimer, E. Norum, A. Johnson EPICS Collaboration Meeting December 8-10, 2004 Roadmap for IOC.
Controls Zheqiao Geng Oct. 12, Autosave Additions/Upgrades and Experiences at SLAC Zheqiao Geng Controls Department SLAC National Accelerator Laboratory.
1 1999/Ph 514: Supported Hardware EPICS Supported Hardware Ned D. Arnold APS.
EPICS and LabVIEW Tony Vento, National Instruments
An EPICS IDE Using Eclipse Kenneth Evans, Jr. Presented at the EPICS Collaboration Meeting June 15, 2006 Argonne National Laboratory, Argonne, IL.
R. Krempaska, October, 2013 Wir schaffen Wissen – heute für morgen Controls Security at PSI Current Status R. Krempaska, A. Bertrand, C. Higgs, R. Kapeller,
Stanford Linear Accelerator Center Stephanie AllisonEPICS Meeting June, Porting EtherIP to EPICS 3.14 Usage at SPEAR IOC Software Porting Notes 3.13/3.14.
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
The BaBar Online Detector Control System Upgrade Matthias Wittgen, SLAC.
Motion Control at the Advanced Photon Source Argonne National Laboratory Mark Rivers University of Chicago 7 GeV synchrotron x-ray light source, the largest.
Embedded Real-Time Systems Introduction to embedded software development Lecturer Department University.
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.
No Mixed Mode Debugging Support Use Multiple Instances Instead Launch the app under the script debugger Attach with the native debugger from.
From VME/RTEMS to Industrial PC/LinuxRT: A Migration Story Mitch D’Ewart May EPICS Collaboration Meeting May 2015.
Run-time RAM Usage File integrity checking RecipePlus Run-time file to application file conversion Enhanced language switching New FactoryTalk View ME.
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.
Using COTS Hardware with EPICS Through LabVIEW – A Status Report EPICS Collaboration Meeting Fall 2011.
IOC Application Development / Debugging
Introduction of Device and Driver Support for Yokogawa F3RP71
Mark Rivers University of Chicago
Development of Embedded EPICS on F3RP61-2L
EPICS BASE Release alpha3 EPICS Meeting at IHEP
EPICS APPLICATION DEVELOPMENT
Presentation transcript:

BROOKHAVEN SCIENCE ASSOCIATES U.S. Department of Energy Office of Basic Energy Sciences Funded under contract: DE-AC02-98CH10886 EPICS/RTEMS at NSLS S. Kate Feng EPICS Meeting at DLS, UK June 19,

BROOKHAVEN SCIENCE ASSOCIATES National Synchrotron Light Source U.S. Department of Energy Office of Basic Energy Sciences Projects that use EPICS at NSLS DUV-FEL accelerator (only one beamline) I began to implement EPICS/VxWorks in nm SASE achieved in February, nm HGHG achieved in October, 2002 Currently in operation for users NSLS beamlines (currently > 10) Peter Siddons and Ivan So began to implement EPICS/VxWorks in 2000 Peter Siddons proposed to use RTEMS for beamline applications 2

BROOKHAVEN SCIENCE ASSOCIATES National Synchrotron Light Source U.S. Department of Energy Office of Basic Energy Sciences EPICS/RTEMS at NSLS I began the project in October, 2002 Development platform is Linux RedHat 7.3 EPICS 3.14 IOC test platform is RTEMS Evaluated cexp vs. esh for RTEMS dynamic loading cexp is ideal for run-time dynamic loading plus other nice features esh would be a good debugging tool (e.g. breakpoint and single step) if it is fully developed as promised. All the run-time modules to be loaded have to be pre-mounted into the IMFS file system via a makefile before running 3

BROOKHAVEN SCIENCE ASSOCIATES National Synchrotron Light Source U.S. Department of Energy Office of Basic Energy Sciences Sample features as of June 10, 2003 Run-time dynamic loader 100 %Pre-mounted files only Invoking func() to skip function registration yes Disassembler yes Symbol Table lookup yes Telnetd, scripts and reentrant yesno Data Type All types except shortOnly integer and float Memory dump for a region noyes Single step noPromised, not done Break point noPromised, not done Thread control noyes Sample features as of 6/10/03cexpesh 4

BROOKHAVEN SCIENCE ASSOCIATES National Synchrotron Light Source U.S. Department of Energy Office of Basic Energy Sciences RTEMS IOC configuration at NSLS RTEMS IOC configuration CPU: MVME2306 RTEMS : gcc-3.2.2, newlib , rtems-4.6.0pre3 RTEMS image download: bootp/tftp Shell: rtems-cexp for dynamic loading (T.S., SSRL) Remote login: telnetd (Till Straumann, SSRL, SLAC) Portability: RTEMS devLib.c (T.S., SSRL), epics threads, epicsMutex, and so on (Eric Norum, APS) EPICS beta2 (Marty Kraimer, APS, and Jeff Hill LANL) 5

BROOKHAVEN SCIENCE ASSOCIATES National Synchrotron Light Source U.S. Department of Energy Office of Basic Energy Sciences EPICS 3.14 OSI for the DUV-FEL project Radiation monitor IOC ( needed for operation ) Tested on the RTEMS and Tornado2.02 platform Used epicsTime thread instead of routines from drvTS.c drvXVme293.c: driver for the MVME293 counter devWFXvme293.c: radiation counts at various locations devWF30secTotal.c: average radiation dose every 30 seconds at various locations devWFHourTotal.c: total radiation dose hourly at various locations devWFWorkdayTotal.c: total radiation dose during an eight-hour workday at various locations 6

BROOKHAVEN SCIENCE ASSOCIATES National Synchrotron Light Source U.S. Department of Energy Office of Basic Energy Sciences EPICS/RTEMS for NSLS beamlines Added OSI over the beamline device/driver routines from the R3.13.x release and tested successfully on the RTEMS platform for the bitIO, scaler and OMS58 motor controller stdApp (50%) motorApp Collaborating with Mark River, Time Mooney and others from APS to install and test the up-to- date beamline device/driver routines 7

BROOKHAVEN SCIENCE ASSOCIATES National Synchrotron Light Source U.S. Department of Energy Office of Basic Energy Sciences What did I modify in EPICS 3.14? I modified the registerRecordDeviceDriver.pl file so that I could continue the scheme of dynamic loading to load the Record/Device/Driver for stdApp and motorApp in the startup script Instead of registerRecordDeviceDriver(pdbase) for both the stdApp and motorApp, I used: std_registerRecordDeviceDriver(pdbase) motor_registerRecordDeviceDriver(pdbase) 8

BROOKHAVEN SCIENCE ASSOCIATES National Synchrotron Light Source U.S. Department of Energy Office of Basic Energy Sciences cexpModuleLoad("std.obj") cexpModuleLoad("motor.obj“) vmeUniverseInit() devAvme9440Config(1,0x8000,0x80) VSCSetup(1, 0x , 200) oms58Setup(1, 8, 0xa000, 190, 7,0.2) dbLoadDatabase("../dbd/std.dbd") std_registerRecordDeviceDriver(pdbbase) dbLoadDatabase("../dbd/motor.dbd") motor_registerRecordDeviceDriver(pdbbase) dbLoadRecords("../db/Acromag_16IO.db","P=Kate:,A=B1") dbLoadRecords("../db/Jscaler.db","P=Kate:,S=scaler1,C=0") dbLoadTemplate("../db/motor.substitutions") dbLoadRecords("../db/scanParms.db","P=Kate:,Q=m10,SCANREC=$(P)scan1,POS=$(Q).VAL, RDBK=$(Q).RBV") iocInit() Excerpt of the RTEMS startup script 9

BROOKHAVEN SCIENCE ASSOCIATES National Synchrotron Light Source U.S. Department of Energy Office of Basic Energy Sciences Next step To install and test RTEMS – NFS (Till Straumann, SSRL) so that we can use EPICS save_restore (Tim Mooney, APS) To find a different VME/CPU board to run RTEMS in the event that Motorola discontinues the MVME230x board 10

BROOKHAVEN SCIENCE ASSOCIATES National Synchrotron Light Source U.S. Department of Energy Office of Basic Energy Sciences RTEMS-specific issues that I encountered Most of the RTEMS-specific issues are transparent over the EPICS OSI. The RTEMS- specific issues I dealt with were very minor. For example : Use strtok instead of strtok_r for strict ANSI C I/O Ops.: in_8(), in_be16(),....out_be32() for PPC The NTP client for RTEMS reads only the GMT time. An easy workaround is to change the value of rtems_bsdnet_timeoffset in the osdTime.cpp file to offset the local time. 11

BROOKHAVEN SCIENCE ASSOCIATES National Synchrotron Light Source U.S. Department of Energy Office of Basic Energy Sciences Summary While RTEMS is lacking in source level debugging tools, the existing EPICS OSI/RTEMS/CEXP packages are sufficient for us to port the IOC applications to RTEMS. As of today, RTEMS meets the requirements of our real-time IOC applications. The challenge to its wider use lies in its limited range of BSP’s. 12