A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework A control system framework for small (?) experiments.

Slides:



Advertisements
Similar presentations
Network II.5 simulator ..
Advertisements

SHIPTRAP Control System : Project & Prototyping Ref: C. Toader H.Brand and K. Popensieker SHIPTRAP - Short Introduction.
© 2007 Eaton Corporation. All rights reserved. LabVIEW State Machine Architectures Presented By Scott Sirrine Eaton Corporation.
Categories of I/O Devices
Threads, SMP, and Microkernels
Operating System.
1: Operating Systems Overview
Software Frameworks for Acquisition and Control European PhD – 2009 Horácio Fernandes.
Memory Management, File Systems, I/O How Multiprogramming Issues Mesh ECEN 5043 Software Engineering of Multiprogram Systems University of Colorado, Boulder.
1 I/O Management in Representative Operating Systems.
The TIMING System … …as used in the PS accelerators.
Introduction to the CS framework Definition of a framework Requirements Example Idea Cooking recipe Some statements Dietrich Beck,
26 February 2009Dietrich Beck FPGA Solutions... FPGA and LabVIEW Pattern Generator Multi-Channel-Scaler.
Operating System Review September 10, 2012Introduction to Computer Security ©2004 Matt Bishop Slide #1-1.
Summary DCS Workshop - L.Jirdén1 Summary of DCS Workshop 28/29 May 01 u Aim of workshop u Program u Summary of presentations u Conclusion.
A rapidly developed control system for WITCH A. Lindroth, V. Kozlov.
SCADA. 3-Oct-15 Contents.. Introduction Hardware Architecture Software Architecture Functionality Conclusion References.
SEISLOG Linux presented at the WORKSHOP High Quality Seismic Stations and Networks for Small Budgets Volcan, Panama March, 2004 by Terje Utheim,
Remote Procedure Calls Adam Smith, Rodrigo Groppa, and Peter Tonner.
André Augustinus 17 June 2002 Technology Overview What is out there to fulfil our requirements? (with thanks to Tarek)
FAIR Accelerator Controls Strategy
11 March 2008IT&EE Palaver, Dietrich Beck Neues vom CS-Framework Motivation Grundlagen Entwicklungen der letzten Jahre Status und Ausblick.
National Instruments Leadership Seminar
Eugenia Hatziangeli Beams Department Controls Group CERN, Accelerators and Technology Sector E.Hatziangeli - CERN-Greece Industry day, Athens 31st March.
Management of the LHCb DAQ Network Guoming Liu * †, Niko Neufeld * * CERN, Switzerland † University of Ferrara, Italy.
Report on data acquisition and control systems of trap facilities Dietrich Beck, DVEE/GSI, 23 th of May 2002
Data Acquisition Backbone Core J. Adamczewski-Musch, N. Kurz, S. Linev GSI, Experiment Electronics, Data processing group.
NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003.
Online Software 8-July-98 Commissioning Working Group DØ Workshop S. Fuess Objective: Define for you, the customers of the Online system, the products.
Session 1 Introduction  What is RADE  Technology  Palette  Tools  Template  Combined Example  How to get RADE  Questions? RADE Applications EN-ICE-MTA.
01-Feb-2007Dietrich Beck, GSI LabVIEW DIM-Interface Motivation Event and DIM Basics Idea of LV-DIM Interface Example Performance.
5-Oct-051 Tango collaboration status ICALEPCS 2005 Geneva (October 2005)
FOPI – Slow Control Content 1.FOPI experiment - Overview 2.GUIs for FOPI 3.System Design.
February 18, 2010Dietrich Beck CS-Framework Overview (for newcomers) Ideas behind CS Cooking recipe Main Features...
The Control System (not only) for SHIPTRAP Dietrich Beck, DVEE/GSI, Motivation Requirements {The ISOLTRAP Control System SHIPTRAP and EU-Networks}
– Introduction and Status – The way – The result F. Herfurth 1, D. Beck 1, M. Block 1, S. Koszudowski 1, S. Nagy 2, D. Neidherr 2, C. Rauth 1, J. Savory.
1 Unified Modeling Language, Version 2.0 Chapter 2.
A Control System Framework DVEE Palaver, 4/2003, Dietrich Beck, A Control System Framework A control system framework for experiments at.
DØ Offline Reconstruction and Analysis Control Framework J.Kowalkowski, H.Greenlee, Q.Li, S.Protopopescu, G.Watts, V.White, J.Yu.
7 February 2008Dietrich Beck CS-Framework Overview Ideas behind CS Cooking recipe Main Features...
ESS Timing System Prototype 2012 Miha Reščič, ICS
CS – a control system framework Dr. Dietrich Hans Beck, DVEE, GSI 20 November 2002.
Source Level Debugging of Parallel Programs Roland Wismüller LRR-TUM, TU München Germany.
October Test Beam DAQ. Framework sketch Only DAQs subprograms works during spills Each subprogram produces an output each spill Each dependant subprogram.
1 Channel Access Concepts – IHEP EPICS Training – K.F – Aug EPICS Channel Access Concepts Kazuro Furukawa, KEK (Bob Dalesio, LANL)
Efficient Software-Based Fault Isolation Authors: Robert Wahbe Steven Lucco Thomas E. Anderson Susan L. Graham Presenter: Gregory Netland.
Management of the LHCb DAQ Network Guoming Liu *†, Niko Neufeld * * CERN, Switzerland † University of Ferrara, Italy.
The DCS Databases Peter Chochula. 31/05/2005Peter Chochula 2 Outline PVSS basics (boring topic but useful if one wants to understand the DCS data flow)
February 18, 2010Dietrich Beck CS-Status Results from workshop 2009 – what was planned for 2009 – what was done in 2009 Statistics Miscellaneous.
T. Fleck, GSI, Darmstadt, Germany ICALEPCS Status of the Control System for HICAT at an advanced stage of Commissioning Functions, Restrictions.
1 DAQ.IHEP Beijing, CAS.CHINA mail to: The Readout In BESIII DAQ Framework The BESIII DAQ system consists of the readout subsystem, the.
Introduction to the CS framework Definition of the CS framework Requirements Example Idea Cooking recipe Some statements Dietrich Beck,
Project X RD&D Plan Controls Jim Patrick AAC Meeting February 3, 2009.
Industrial Control Engineering Session 1 Introduction  What is RADE  Technology  Palette  Tools  Template  Combined Example  How to get RADE 
Threads, SMP, and Microkernels Chapter 4. Processes and Threads Operating systems use processes for two purposes - Resource allocation and resource ownership.
ICS interfaces Timo Korhonen ICS Apr 22, 2015.
28-Feb-2013CS-Workshop 2013, Dennis Neidherr CS-Framework - Overview Intro and Overview Status Outlook.
Introduction Current Status Outlook and Time Schedule
Chapter 9: The Client/Server Database Environment
Presented by Li Gang Accelerator Control Group
Programmable Logic Controllers: I/O
ATF/ATF2 Control System
CS-Framework Overview
The Client/Server Database Environment
by Prasad Mane (05IT6012) School of Information Technology
Welcome to the CS-Workshop February 2nd/3rd 2006 Holger Brand
Scaling to Larger Systems
CS-Status Results from workshop 2008 Statistics Miscellaneous
Chapter 13: I/O Systems.
Chapter 13: I/O Systems “The two main jobs of a computer are I/O and [CPU] processing. In many cases, the main job is I/O, and the [CPU] processing is.
Presentation transcript:

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework A control system framework for small (?) experiments at GSI Dietrich Beck, DVEE/GSI

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework Experiment control system group Today working group within the department DVEE supports small and medium sized experiments in designing and developing control system up to process variables per experiment LabVIEW as the typical development tool Tomorrow huge experiments    10 x process variables How far can we go with LabVIEW?

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework Definition - A framework... supplies functionality that is needed at different experiments can be maintained and developed further by a central group allows for an exchange of software and know-how saves man-power … CONTROL SYSTEM = FRAMEWORK + EXP. SPECIFIC ADD-ONS

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework Background ISOLTRAP (GSI/CERN) control system, started in 1992, VME based, still in use at three different experiments (D. Beck) Therapy control system, originating from West Area Neutrino Facility (CERN), started in 1995, VME and AIX based, Factory Link as SCADA system (H. Brand) Lot’s of input from experiments like SHIPTRAP (GSI), PHELIX (GSI), ISOLTRAP (CERN), LEBIT (MSU), WITCH (Leuven), … This is not an academic exercise but something to be used today “Use small experiments as test ground for large experiments”

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework SHIPTRAP - motivation

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework Cycle: stopping of ions ion the gas cell (static) extraction from the gas cell transfer capture and cool ions in the buncher ejection from the buncher (dynamic) transfer capture in the cooler trap mass selective buffer gas cooling ejection from the cooler trap transfer capture in the precision trap purification excitation of ion motion at  RF   c = (q/m) · B (  gain of energy) measurement of kinetic energy via a time-of-flight technique Scan: repeat cycle for different frequencies (minutes-days) 1s SHIPTRAP – experimental procedure

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework Options: fs-Pulse : 500 fs, 500 J  W/(  m) 2 ns-Pulse : 0.5 bis 10 ns, 1-4 kJ (Kilowatt  Megawatt  Gigawatt  Terrawatt  Petawatt)

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework Continuous measurements Alignment Stability Energy Mode Vacuum etc. Shot repetition rates fs-front-end 10 Hz, 50 mJ ns-front-end 10 Hz, 50 mJ Preamp 1/min, 10 J Main amp 1/h, 0,5-4 kJ PHELIX overview

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework High performance but too special General, but weak performance Optimal A framework with high performance? Let´s limit ourselves to process variables in the first stage!

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework Cooking recipe for the CS framework One development tool  LabVIEW Fast learning curve Multi threading Event driven communication … Object oriented approach  ObjectVIEW Create objects (processes) on the fly Encapsulate data and their treatment “information hiding” Create high level classes by inheriting from base classes … SCADA functionality (alarming, trending, …)  LabVIEW DSC module Distributed system on several nodes  TCP/IP Scalability Remote access …

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework A simple control system – the LEGO ® principle User PC n Control GUIOn-line Analysis GUI Central PC Sequencer DataCollector DSC EngineDSC Interface SR430PPG100DS345 Frond-end PC 1 Data Acquisition DataAcq. Instr. Driver Timing Timing Instr. Driver AFG AFG Instr. Driver High Voltage HV Instr. Driver IHQF015p HardwareSoftware (Proc)Software (Lib) Exp. SpecificGeneral PartBuy! EventOPC Frond-end PC n DiscArchiver

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework Provides basic functionality to all child classes Two treads: event handling and periodic action. Optional: state machine in a 3 rd thread Watchdog for both threads Alarming and status logging of all treads Methods for event driven communication Simple (no answer from callee) Synchronous (wait for answer from callee) Asynchronous (answer from callee is sent elsewhere) Notifier (like “Simple”, but unbuffered) Query event names and parameters  THE base class of CS!!! The BaseProcess class

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework LabVIEW message queue CallerCallee localhost Caller Callee node1node2 Client_node2Server_node1 TCP/IP 1 2 (temporary LabVIEW message queue) Server_node2Client_node1 thread of caller is blocked/waits until answer is received or call timed out no programmatic overhead needed for answer (success, act value, error…) Example: A synchronous call

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework Object templates: building classes with LabVIEW Object template of the BaseProcess class Object template of a child class Class for AFG DS345 from SRS Adds events and methods Must provide the following methods: 1.DS345.ProcEvents (define events) 2.DS345.ProcCases (handle events) 3.DS345.ProcPeriodic (periodic action) 4.DS345.ProcConstructor 5.DS345.ProcDestructor Encapsulate functionality of the BaseProcess class Call class specific member functions by virtual function calls (still pure LabVIEW)

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework CS – Conclusion I CS is an object-oriented, multi-threaded, event driven and distributed framework with SCADA functionality. It can be used to develop dedicated control systems. Cave A (GSI), data taking SHIPTRAP (GSI), operational PHELIX (GSI), in commissioning ISOLTRAP (CERN), in commissioning LEBIT (MSU), in development HITRAP (GSI), planned It works GPL license, available for download

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework Performance (700MHz PIII) Synchronous call on local node: 2ms Synchronous call to remote node: 10ms 100 instances: CPU load < 10% Needs RAM: each instance takes a few Mbyte Robust communication Scaling to large systems (“LabVIEW everywhere?”) process variables  o.k.! process variables  well……………………. > process variables required in 2008 we don´t know the requirements of 2008 yet we would like to know the features of LabVIEW version 11 now! However: Memory management and compiler of LV should be improved! CS – Conclusion II

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework Near future of CS Hopefully, the standard framework for experiments with up to process variables SHIPTRAP, PHELIX and others will keep us busy for a few years Still to be done: Extension of SCADA functionality like user management To be tried: State machines, object nets for the application layer Far future Framework for small experiments, complementary to a “universal control system” for the big experiments CS as a tool to prototype control systems for “big” experiments Big control systems have sub-systems based on CS, interfaced by TCP/IP So far, we have learnt a lot! CS – Conclusion III

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework The core system… Device Process DSC Engine DSCIntProcSuperProc “Boss” watchdog set tagsset watchdog alarm set status and error BaseProcess inheritance create/destroy To create an instance the “SuperProc” needs to know the instance name, the class of that instance is retrieved from a database via SQL together with instance specific data like the GPIB address of an instrument.

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework Is called from the BaseProcess event loop via a “virtual function call” Calls the methods added Example: function call to the DS345.reset method. Triggered by a “Reset” event. Add methods: DS345.ProcCases.vi

A Control System Framework Control System Workshop, 12 May 2003, A Control System Framework How to send an event: CallProcess.vi Call the Object “AFG1” (maybe instance of class DS345) on the remote node “abc123.gsi.de” by sending a “Reset” event