LCLS Event System - Software

Slides:



Advertisements
Similar presentations
01/11/2002SNS Software Final Design Review1 V123S Event Link Encoder, Transmission System and PLL Receiver Thomas M. Kerner (BNL) SNS Global Controls.
Advertisements

Stephanie Allison LCLS Event System 14 June LCLS Event System Outline HW Block Diagram Timing Requirements Time Lines EVG.
Dayle Kotturi and Stephanie Allison Facility Advisory Committee Meeting April 20-21,
Stephanie Allison/John Dusatko EPICS Collaboration Meeting May 1, Timing and Event System for the LCLS Electron Accelerator*
Stephanie Allison Integration with the SLC Control April 7, 2005 Introduction PNET Receiver VME Module SLC-Aware IOC Existing.
Stephanie Allison Facility Advisory Committee Meeting Apr 16, 2007 Timing and Event System S. Allison, M. Browne, B. Dalesio, J.
Stephanie Allison LCLS Integration with SLC October 12, 2004 Integration with SLC LCLS Facility Advisory Committee Oct 12, 2004 Introduction.
Dayle Kotturi LCLS Diagnostics and Commissioning Workshop September 23, 2004 LCLS Controls and Data Acquisition September 23, 2004.
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.
Dayle Kotturi Facility Advisory Committee Meeting October 12, 2004 Injector/Linac Controls An overview of the status of each of.
Dayle Kotturi SLC April 29, 2004 Outline Motivation Key Components Status Update SLC / EPICS Timing Software Tasks Hardware.
The TIMING System … …as used in the PS accelerators.
1 1999/Ph 514: State Notation Language EPICS State Notation Language (SNL) Ned D. Arnold APS.
SNS Integrated Control System EPICS Collaboration Meeting SNS Machine Protection System SNS Timing System Coles Sibley xxxx/vlb.
LCLS Timing Software and Plan 1 Controls Timing Workshop EPICS Collaboration Meeting SLAC LCLS Timing Software and Plan April Kukhee Kim.
Micro-Research Finland Oy Timing System Developments Jukka Pietarinen EPICS Collaboration Meeting Shanghai March 2008.
Dayle Kotturi Lehman Review May 10-12, 2005 LCLS Timing Outline Scope SLC Master Pattern Generator Introducing the PNET VME receiver.
EPICS Collaboration Meeting Fall PAL October 22 ~ 26, 2012 LCLS-I/LCLS-II Timing System Low Level Kukhee Kim for LCLS Timing Team ICD Software,
1 Timo Korhonen PSI 1. Concepts revisited…again 3. New (Diamond) cards features and status 4. EPICS interface 5. Conclusions SLS & Diamond Timing System.
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.
SNS Integrated Control System Timing Clients at SNS DH Thompson Epics Spring 2003.
EPICS Collaboration Meeting Fall PAL October 22 ~ 26, 2012 LCLS Timing System (pattern design, evGUI, and high level) Mike Zelazny for LCLS Timing.
EPICS Collaboration Meeting Timing Workshop April 24, 2012.
The Main Injector Beam Position Monitor Front-End Software Luciano Piccoli, Stephen Foulkes, Margaret Votava and Charles Briegel Fermi National Accelerator.
Fast Fault Finder A Machine Protection Component.
Stephanie Allison LCLS Controls Software Meeting Dec 6, 2007 How To Set Up for the Event System on an IOC with an EVR(s) Assumes.
Dayle Kotturi System Concept Review/Preliminary Design Review November 16, 2005 Timing Outline System Concept Review Requirements.
Fermilab February 17, 2003Recycler BPM Front-end1 Duane C. Voy
Stephanie Allison SLC-Aware April 5, 2005 Introduction Description Issues Progress Plans for 2005 SLC-Aware IOC LCLS Collaboration,
Stephen Norum LCLS Oct. 12, LCLS Machine Protection System Outline Overview of interim MPS Update on the interim MPS.
Robert C. Sass Sheng Peng LCLS Upgrade Review June IOC Requirements 1 LCLS Phase I Upgrade; IOC CAMAC Support Requirements Robert C. Sass Sheng.
Debbie Rogind Diane Fairley SLC-Aware BSAC Facility Requirements Review May 26, 2005 SLC Aware IOC BSAC* Facility Requirements Review *Beam Synchronous.
LCLS MPS Upgrade Gasper Jansa, Luciano Piccoli, Jeff Olsen, Garth Brown, Sonya Hoobler, Stephen Norum, Stephanie Allison, Kim Kukhee Adding BSA.
S. Smith LCLS Facility Advisory October 12, Beam Position Monitors Facility Advisory Committee October 12, 2006.
Stephanie Allison LCLS IOC Meeting Jul 18, 2008, Jan 21, 2011 Beam Synchronous Acquisition for IOC Engineers Definition/Requirements.
ESS Timing System Plans Timo Korhonen Chief Engineer, Integrated Control System Division Nov.27, 2014.
LCLS Commissioning & Operations High Level Software
A monitoring system for the beam-based feedbacks in the LHC
SLAC I&C Division / EE Department
Outline Introduction to LCLS Some background on SLAC Timing
Oracle Subledger Accounting
Beam-Synchronous Data Acquisition (BS-DAQ)
SLC-Aware IOC LCLS Collaboration Jan 26, 2005
Introduction Functional Requirements (Stephanie) SLC Executive (Diane)
SLS Timing Master Timo Korhonen, PSI.
LCLS Timing Software and Plan
Introduction of microprocessor
Timing and Event System S. Allison, M. Browne, B. Dalesio, J
LLRF and feedback Outline Scope LLRF Requirements
LCLS Commissioning & Operations High Level Software
Event Displays for EVR IOCs
LCLS Timing Outline Scope The order of things
Fill-pattern Control System for KEKB
SLC Aware IOC BSAC* Facility Design Review July 14, 2005
SLC-Aware IOC Review 2 Cluster Status and Test Service Feb 23, 2005
Low Level RF Status Outline LLRF controls system overview
EPICS Collaboration Meeting
Timing and Event System for the LCLS Electron Accelerator
LCLS Timing Outline Scope The order of things
Next Linear Collider Test Accelerator and EPICS
Low Level RF Status Outline LLRF controls system overview
SLS & Diamond Timing System update
Beam Synchronous Acquisition on IOC
Timing and Event System S. Allison, M. Browne, B. Dalesio, J
EVG-to-EVR Data Transfer (Dayle Kotturi)
Low Level RF Status Outline Overview showing hardware instances
Breakout Session: Controls
LCLS Machine Protection System
Timing and Event System Status DOE Review of the LCLS Project SC5 - Controls Systems Breakout Session S. Allison, M. Browne, B. Dalesio, J. Dusatko,
SLC-Aware IOC Magnet Functional Requirements
Presentation transcript:

LCLS Event System - Software Software Requirements Event Generation (EVG) Event Receiver (EVR) Beam Synch Acquisition (BSA) EPICS Displays EVG IOC – Diagnostics, Event Code Setup, BSA Event Definitions (EDEF) EVR IOC – Diagnostics, EVR Hardware, Event Code Diagnostics, Device Trigger Setup

Hardware Block Diagram 2007 Commissioning Modulator Triggers Existing Control System Beam Path Acq and Calibration Triggers BPM FEE PADs and PACs Timing Crate Acc and Standby Triggers E V G F A N 1 F A N 2 P N E T I O C E V R I O C E V R 1 E V R 2 E V R 3 I O C 360Hz Fiducial RF Timing BPM Crates LLRF Crate 119MHz Clock Future MPS Beam Rate, Beam Path Fiber Distribution: Timing Pattern, Timestamp, Event Codes TORO FEE Triggers Triggers Trigger F A N 3 E V R 1 C A M 1 I O C 1 ... E V R 8 C A M 8 I O C 8 E V R 1 C A M 1 C A M 2 I O C 1 … E V R 4 C A M 7 C A M 8 I O C 4 Laser Steering Crate F A N 4 E V R I O C Profile Monitor Crate Toro Farc Crate … …

Event System Requirements Event Generator IOC: Send out proper event codes at 360Hz based on: PNET pattern input (beam code and bits that define beam path and other conditions) Add LCLS conditions such as BPM calibration on off-beam pulses , diagnostic pulse etc. Near future – event codes also based on new MPS and user input for kicker control and single-shot Send out system timestamp with encoded pulse ID from PNET Send out PNET pattern to be used by SLC-aware IOCs Beam-synchronous acquisition management (more later)

Event System Requirements, cont Event Receiver IOC: Set trigger delays, pulse widths, and enable/disable via user requests (not yet done on a pulse-by-pulse basis) Set event code per trigger (triggering done in HW when event code received) Receive event pattern 8.3 msec before corresponding pulse Perform beam-synchronous acquisition based on tags set by EVG in the event pattern (more later) Perform beam-synchronous acquisition for the SLC- aware IOC based on the PNET part of the event pattern Process pre-defined records when specific event codes are received

Event Time Line – 120 Hz Beam 360Hz Fiducial F0 F1 F2 F3 F4 F5 F6 F7 Time (msec) 2.8 5.6 8.3 11.1 13.9 16.7 19.4 Beam B0 B1 B2 Kly Standby S0 S1 S2 CX2 BPM Calib CX0 CY0 CX1 CY1

EVR IOC Time Line – 1 Beam Pulse (B0) Record processing (event, interrupt) Hardware Triggers Receive pattern for 3 pulses ahead Triggering Event Codes Beam Kly Standby Event Timestamp, pattern records, and BSA ready Start End Acq Trigger Kly Accel Fiducial Event Received Fiducial Fiducial F0 B0 … F1 ~40 ~500 1023 2778 0.3 100 110 Time (usec)

Event System Requirements, cont Beam Synchronous Acquisition (BSA): Acquire all beam-dependent scalars across multiple IOCs on the same pulse over multiple pulses of a certain kind (not just x-pulses-in-a-row) up to 120Hz. Acquire up to 2800 values per scalar in one acquisition request. Each value of the 2800 values can be an average of up to 1000 values. Each acquisition request can specify: Beam code (defines project, 1 = LCLS) Machine conditions of interest – rate, TS, permits, etc Provide constant 1HZ beam-synchronous data for channel archiver and displays

BSA IOC Data Gathering BPM FEE Triggers Data I O C P N E T E V G E V R I O C CA Client CA Client EDEF Setup BSA Data EDEF Flags, Pattern, etc Timing Crate BPM Crate Data gathering part consists of the following actions: BSA event definition (EDEF) setup and start request done on the EVG IOC. 360hz checking on the EVG IOC with user notification when finished. 360hz requests (acquisition control) sent by the EVG IOC to all EVR IOCs via fast fiber optic link. Data checking, averaging, and array update per scalar record per request on the EVR IOCs. Data on EVR IOC must be available within 7.3 msec after beam or it will be lost, even when beam is less than 120hz. EDEF will finish with arrays that are not complete if this time budget cannot be met. For an acquisition at full beam rate (ie, 30hz), if data is acquired at a lower rate (ie, 10hz), the array will not be complete. Use rate-limit bits as-needed when setting up the EDEF. Implementation is all EPICS record-based.

EVG IOC – Global Event Display More to come for kicker control, MPS interface, and pulse stealing

EVG IOC – Pattern Diagnostics Common Errors: MPG_IPLING, TIMEOUT, PULSEID_NOSYNC PVs update at 0.5hz (on mod720 bit) For BSA

EVG IOC – Event Codes

EVG IOC – Condition Masks for Event Code 140 For now, masks are displayed as bit masks – need name for each bit!

EVG IOC – All EDEF Diag Display Put new app name in reserve record – edefReserve sequence will assign next available EDEF number 15 user-defined requests at one time, is this enough? Issue – apps that crash before freeing. “alan” app is using EDEF 12 until freed by the app – “alan” can do multiple acqs System EDEFs are reserved and setup at EVG IOC boot and never freed.

EVG IOC – EDEF Diag Display Turn “ON” when ready. EVG IOC 360Hz event task will turn “OFF” when finished. Turn back “ON” to flush and restart the acq. Set machine conditions – values acquired only on pulses where ALL inclusion conditions are true AND NO exclusion condition is true Beam code describes project, 1 = LCLS (0=any beam code – good for testing) Define # in each average, # measurements, severity at or above which data is not included in average. Forever option used by system EDEFs. Push “FREE” to free this EDEF number. Name and user will be blanked out.

EVG IOC – EDEF Mask Diag Display Condition (bit) names come from the SLC Database (PNBN) and ordered alphabetically in new records by the edefMask sequence. Choose conditions that define the pulses of interest. Only pulses with these conditions will provide values to the acquisition.

EVR IOC – Sector Event Display

PVs update at 0.5hz (on mod720 bit) Common Errors: MPG_IPLING and TIMEOUT… PVs update at 0.5hz (on mod720 bit) Pattern Pipeline (but no TS 4!) For BSA Missing Pattern Interrupt Missing Pattern Interrupt Extra Interrupts Fiducial Processing Too Long

EVR IOC – General Time Diagnostics Display epicsTimeGetCurrent epicsTimeGetEvent (Record Timestamps) evrTimeGet – OK evrTimeGetSystem – Event System problem (pulse ID set to invalid) General Time will transition between different time providers without going backward in time

EVR IOC – EVR Hardware Transition module uses 14 regular triggers Front panel uses extended delay triggers (only 3 for PMC EVR) Fiber connection status (from EVR fanout module), polled at 0.5hz

See event display for event code description All BPM EVRs – first 7 channels for data, last 7 channels for calibration: Data acquired at 360hz (event code 20 on TS 2,5; event code 30 on TS 3,6; event code 40 on TS 1,4) where only TS 4 will produce X/Y/TMIT record updates if the pulse has beam. Calibration on TS 2,3,5,6 only. See event display for event code description Enabled so that beam rate is calculated Note: Enabling IRQ causes interrupts/task switches at the rate of the event code receipt (…watch CPU performance after enabling)

EVR IOC – Event Code Diagnostic Display Delay from fiducial Event code description Standby (base rate) beam-independent events MJB requests all standby event codes be replaced by 36 event codes using the same delay (like SLC) Rate calculated only if IRQ is enabled (fiducial IRQ automatically enabled on all IOCs)

EVR IOC – Device Trigger Setup Display

EVR IOC – Device Trigger Diagnostic Display

EVR IOC – Device BSA Diagnostic Display Copied from EDEF diag display RMS zero when # avg is 1 Last averaged values Various inputs/outputs to averaging sSub record Last 100 values of value