SNS Integrated Control System Running IOC Core on Windows and Linux Dave Thompson Wim Blokland Ernest Williams.

Slides:



Advertisements
Similar presentations
SNS Integrated Control System SNS RDB Requirements, wish list, status A little history l Oracle RDB used exclusively by accelerator physics group l JERI.
Advertisements

1 1999/Ph 514: Working With an IOC EPICS Working with an IOC Marty Kraimer APS.
1 1999/Ph 514: Channel Access Concepts EPICS Channel Access Concepts Bob Dalesio LANL.
Channel Access Enhancements J. Hill. R3.14 Enhancements Large array support in the portable server –nearly complete –a priority for SNS Port syntax for.
Linux IOC Operations at NSTX - An Overview P. Sichta 28Mar2005.
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.
Diane Fairley High Level October 24-28, 2005 High Level Physics Applications LCLS Week / FAC October 24-28, 2005.
Processes & Daemons Chapter IV / Part III. Commands Internal commands: alias, cd, echo, pwd, time External commands, code is in a file: grep, ls, more.
SPEAR PV RDB Database EPICS Collaboration Meeting April 27, SPEAR PV RDB Database Clemens Wermelskirchen.
OPC Overview OPC Device Support (PLC Gateway for 3.14) Ralph Lange – EPICS Collaboration Meeting at SLAC, April 2005.
EPICS Collaboration meeting Fall 2012, SDD status and plansPage 1 Self-Described Data - SDD status and plans Lana Abadie, ITER CODAC.
EPICS IOC Diagnostics Tools Jeff Hill. Overview 4 EPICS built-in diagnostic tools 4 solutions to specific problems.
SNS Integrated Control System EPICS IOCs – Relational DB Connectivity Bridge A. Liyu, A. Zhukov.
EPICS and EDM Overview 03 October 2008 Matt Boyes EPICS and EDM Overview Lecture 1 Matt Boyes.
SNS Integrated Control System EPICS Collaboration Meeting SNS Machine Protection System SNS Timing System Coles Sibley xxxx/vlb.
Ralph Lange: OPC Gateway (Device Support) OPC Gateway (Device Support) Ralph Lange – EPICS Collaboration Meeting March SSRF.
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.
Running EPICS on NI CompactRIO Initial Experience Eric Björklund (LA-UR )
Making LabVIEW look like an IOC Kay-Uwe Kasemir, LANL May 2002.
SNS Integrated Control System A process manager for soft IOCS DH Thompson.
Control System Studio (CSS) Overview Kay Kasemir, July 2009.
MASAR Service Guobao Shen Photon Sciences Department Brookhaven National Laboratory EPICS Collaboration Workshop Oct 05, 2013.
SNS Integrated Control System MBUF Problems and solutions on VxWorks Dave Thompson and cast of many.
Elder Matias, Diony Medrano, Dong Liu (At Michigan State University - Nov 2011) IRMIS at CLS.
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.
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.
General Time Update David Thompson Epics Collaboration Meeting June 14, 2006.
March 2008EPICS Meeting in Shanghai1 KEKB Control System Status Mar Tatsuro NAKAMURA KEKB Control Group, KEK.
Experience Running Embedded EPICS on NI CompactRIO Eric Björklund Dolores Baros Scott Baily.
3.14 Work List IOC Core Channel Access. Changes to IOC Core Online add/delete of record instances Tool to support online add/delete OS independent layer.
Integrating EPICS and LabVIEW on Windows using DCOM Freddie Akeroyd ISIS Computing Group.
DEBUGGING EPICS APPLICATIONS Bob Dalesio and Rozelle Wright February 10, 1997.
Writing a Channel Access Client in EPICS Bob Dalesio, April 5, 2000.
Managed by UT-Battelle for the Department of Energy CSS Update Matthias Clausen, Helge Rickens, Jan Hatje and DESY Delphy Armstrong, Xihui Chen,
EPICS EPICS Limitations Bob Dalesio Marty Kraimer.
A XML 1 An XML Driven Graphical User Interface and Application Management Toolkit Matthias Clausen (DESY & SLAC) Piotr Bartkiewicz (DESY & FPNT/AGH) Alexei.
Reliability/ Secure IOC / Outlook M. Clausen / DESY 1 CA-Put Logging BurtSave Warm Reboot Matthias Clausen DESY/ MKS.
EPICS Release 3.15 Bob Dalesio May 19, Features for 3.15 Support for large arrays - done for rsrv in 3.14 Channel access priorities - planned to.
1 1999/Ph 514: Flow of Control EPICS Flow of Control Marty Kraimer APS.
1. EPICS IOC on CompactRIO EPICS Collaboration Meeting Fall 2011.
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
1. LabVIEW and EPICS Workshop EPICS Collaboration Meeting Fall 2011.
The DØ Control System J. Frederick Bartlett For The DØ Controls Group.
21 September 2012 GRETINA SWG GRETINA SWG Meeting Carl Lionberger LBNL GRETINA DAQ Implementation.
Connecting LabVIEW to EPICS network
ROCS Web Based Reporting Tool Using SNS Relational Database By Katia Danilova, Ernest L. Williams Jr. Control Systems group, ASD, SNS.
Stanford Linear Accelerator Center Michael Zelazny EPICS Collaboration Meeting Dec 3&4, Channel Watcher Bumpless Reboot Replacement Related Web Page:
Controls Zheqiao Geng Oct. 12, Autosave Additions/Upgrades and Experiences at SLAC Zheqiao Geng Controls Department SLAC National Accelerator Laboratory.
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
1 EPICS Flow of Control: EPICS Workshop at IHEP, Beijing, August 2001 EPICS Flow of Control Marty Kraimer APS.
SNS Integrated Control System EPICS IOCs – Relational DB Connectivity Bridge A. Liyu, A. Zhukov.
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
Debbie Rogind Diane Fairley SLC-Aware BSAC Facility Requirements Review May 26, 2005 SLC Aware IOC BSAC* Facility Requirements Review *Beam Synchronous.
The BaBar Online Detector Control System Upgrade Matthias Wittgen, SLAC.
Implementation and Testing of RDB Channel Archiver with MySQL Richard Ma, DePauw University Supervisor: Richard Farnsworth, Argonne National Laboratory.
January 2010 – GEO-ISC KickOff meeting Christian Gräf, AEI 10 m Prototype Team State-of-the-art digital control: Introducing LIGO CDS.
Monitoring Dynamic IOC Installations Using the alive Record Dohn Arms Beamline Controls & Data Acquisition Group Advanced Photon 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.
Using COTS Hardware with EPICS Through LabVIEW – A Status Report EPICS Collaboration Meeting Fall 2011.
SNS Integrated Control System ORACLE –JERI DB Generation April 27, 2004 Coles Sibley Jeff Patton.
Managed by UT-Battelle for the Department of Energy LabVIEW Channel Access Implementaion Alexander Zhukov SNS.
SLC-Aware IOC Review 2 Cluster Status and Test Service Feb 23, 2005
EPICS IOCs – Relational DB
Channel Access Concepts
SLC-Aware IOC Magnet Functional Requirements
TANGO from an EPICS perspective
Presentation transcript:

SNS Integrated Control System Running IOC Core on Windows and Linux Dave Thompson Wim Blokland Ernest Williams

SNS Integrated Control System Windows l IOC Core-Channel Access is a more stable combination than an Active X server or any user program poorly using the CA API. l Using IOC Core allows use of Epics DB tools and better configuration control of PVs exported to Channel Access. l IOC core does not seem to add much overhead to the overall application. l New version supports bi-directional PVs for bo, longout, and ao.

SNS Integrated Control System The concept: Shared Memory DLL IOC (database, CA) ReadData() WaitForInterrupt() GetIndexByName() WriteData() SetInterrupt() CreateDBEntry() LabView Application (wire scanner, BPM,etc) DBD and DBD files Channel Access Shared Memory Interface VIs LabVIEW Application (Wire Scanner, BPM,etc)

SNS Integrated Control System Implementation With LabView l LabView and IOC core link to a shared memory DLL. l Data flows in both directions through the DLL. l The DLL passes data through a FIFO to decouple CPU allocation between the LabView process and the IOC Core process, this reduces data loss. l Shared memory passes both data and “processing”. l Time stamps are passed through the shared memory with processing requests. l LabView starts IOC core and passes the startup file name on the command line.

SNS Integrated Control System Database Issues With Shared Memory l LabView and the IOC Core database expect to work from the same shared memory layout. l The shared memory device support routines create the database in shared memory from parameters in the.db file. »Shared memory PVs have name, type and size attributes. »Registry entries set shared memory allocation and ring depths. l The LabView application binds to PVs in the shared memory database and does not attempt to create them. l The Epics database can be created by LabView based on Vis that interact with the shared memory, Epics database tools, or by the SNS database RDB tools.

SNS Integrated Control System Linux l At SNS we have a few applications running on R IOC core on a Linux server. l NO device or record support implemented except standard “Soft Channel”. l Running some sequencer programs in the IOC program. l Mostly used as a PV server and a place to put calc records and or alarms for summaries. l We want to have to have the ability to run etherIP and the serial devices.

SNS Integrated Control System Applications On the Linux IOC Core l Timing Scope application »Reads PVS out of the timing system and calculates gate waveforms relative to other waveforms from controls and diagnostics. »Allows the operators to visualize the timing.

SNS Integrated Control System Applications l Status PVs from IOCs and server based processes. »These PVs are driven by periodic tasks that write to the PV via channel access. OPI and archive servers monitor the PVS. »Health of IOCS and archive tasks are collected »Ping tasks monitor UP status of both IOCs and servers. l No device support, all updates are made by CA clients.

SNS Integrated Control System The setup Terminal Server PvServer Application On Linux Box User at IOC Shell epics> epics> dbpr Global:ArchiveEngine1:Status ASG: DESC: DISA: 0 DISP: 0 DISV: 1 NAME: Global:ArchiveEngine1:Status RBV: 0 RVAL: 0 SEVR: NO_ALARM STAT: NO_ALARM TPRO: 0 VAL: 0 CA Client Application On Linux Box Many PVs from accelerator

SNS Integrated Control System Startup and operation of the IOC Stage 1: New lines in inittab # Epics pvServer service on port ttyS1 S1:2345:respawn:/etc/epics/su-tty ttyS1 Stage 2: su-tty, redirect IO and set user #/bin/sh (stty sane su - thompson -c /home/thompson/pvServer/startPvServer )>/dev/$1 2>/dev/$1 </dev/$1 We run the IOC as a service in inittab, like a getty. Inittab keeps it running at all times. Startup goes in three stages

l Stage 3: The startup script: »Sets up the EPICS environment »Sets PATH and LD_LIBRARY_PATH »Starts caRepeater »Starts the application in $TOP »Cleans up lingering threads after an exit »Depends on init to reboot the ‘IOC’ cd $TOP caRepeater >/dev/null 2>&1 </dev/null& pvServer iocBoot/iocpvServer/st.cmd # Kill all threads of the pvServer & exit for i in `/bin/ps h o pid -C pvServer` ; do kill -s SIGKILL $i done

SNS Integrated Control System Problems and Plans l Could not get auto save and restore to work, problem related to mutex locking? l Want to implement IOC name to RTDL reset code lookup in a sequencer running here (part of the timing system). l Plans to port to next week.