E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division
description
Transcript of E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division
![Page 1: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/1.jpg)
E. MatiasCanadian Light Source
June 2009 – Presentation to - NSLS II EFD Division
CLS Beamline Controls
![Page 2: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/2.jpg)
• The CLS• Current System – EPICS Beamline Controls• Next Step – EPICS & ScienceStudio
![Page 3: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/3.jpg)
Where is Saskatoon?
![Page 4: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/4.jpg)
What are the CLS Objectives?
170.88 m circumference 2.9 GeV DBA lattice with 12-fold periodNominal Tune:
x = 10.22 y = 3.26Eloss per turn: > 0.876 MeVBend magnet radiation: c = 1.6 Å Ec = 7.6 keVx = 18.1 nm•radDamping times:
x = 2.4 ms, y = 3.8 ms, E = 2.7 ms~10 mm bunch length
MAX-IITLS-I
BESSY-IIALS
ELETTRA
PLS
SLS(240m)
ANKA
ESRF APSSpring-8
CLS (171m)SPEAR3 (240m)
Super-SOR LSB BOOMERANGTLS-II
SOLEIL(2006,354m)
NSLS-II
DIAMOND(2007,562m)
ESRFAPS Spring-8ELETTRA
1
10
100
0 1 2 3 4 5 6 7 8 9Energy(GeV)
Em
ittan
ce(n
m·r
ad)
KSRS (124m)
![Page 5: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/5.jpg)
• Phase 1 (operation):– Total of 7 scientific and 2
diagnostics beamlines.• Phase 2 (commissioning):
– Total of 7 additional beamlines and
– building expansion for medical imaging.
• Phase 3 (pre-design):– Total of 7 additional
beamlines and– building expansion.
![Page 6: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/6.jpg)
• The CLS• Current System – EPICS Beamline
Controls• Next Step – EPICS & ScienceStudio
![Page 7: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/7.jpg)
EPICS
DetectorsCameras etc.
ModbusTCP/IP
GPIB
RS-232
Channel A
ccess Protocol
IOC
IOC
IOC
IOC
State MachineEngine
CA
CA
CA
CA
CA
Single BoardComputer
CA
Operator WorkstationUser Applications
TouchPanels
CA
CA
Telemecanique Momentum PLC
VME
IOCCA
![Page 8: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/8.jpg)
Beamline Controls Interfaces
• EPICS Tools • Configuration Tool• User GUI & ROOT
![Page 9: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/9.jpg)
Beamline Visualization
As Map
- Raster scan with fluorescence spectroscopy of a pine needle contaminated with arsenic. The technique allows multiple elements to be detected simultaneously at each point of the raster. These images show distributions of arsenic, iron, and manganese, respectively, near the tip. The highest intensity displays in red, lowest in blue.- Custom on-line plotting application scripted in CERN Root, with data stream from the CLS data acquisition application. (G. Wright, R. Igarashi, K. Chang-Yong, N. Chen)
Fe Map
![Page 10: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/10.jpg)
Traditional Beamline Visualization
Cross section views of the beam spot intensity distribution for varying degrees of monochromator detuning (50-80%). (Only one image shown).
(G. Wright, R. Igarashi, K. Chang-Yong, N. Chen)
![Page 11: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/11.jpg)
![Page 12: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/12.jpg)
Fill Monitor (in Single Bunch)
![Page 13: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/13.jpg)
Fill Pattern Monitor (Normal)
![Page 14: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/14.jpg)
Matlab
• Sometimes used for prototyping (taking into account single threaded limitations)
![Page 15: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/15.jpg)
Structure
GUI (EDM, Qt, Root)
Scan and Data Management Libraries
EPICS PV(Abstract PVs)
EPICS Low Level(Motor and Detector PVs)
EPICS Drivers (vendor drivers)
![Page 16: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/16.jpg)
Higher Level Tools
Full Support:• EDM• CLS Scanning Tool• Qt (C/C++)• Root• Matlab• Java• synapps
Partial Support:• Spec• Labview• Python• Tcl/Tk• Python• MEDM• synapps
![Page 17: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/17.jpg)
• The CLS• Current System – EPICS Beamline Controls• Next Step – EPICS & ScienceStudio
![Page 18: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/18.jpg)
Scientific American May 2008Science 2.0 – The Risk and Reward of Web-Based Research
---------------------------------
“Our real mission isn’t to publish journals but to facilitate scientific communication” Timo Hannay – Head of Web Publishing at Nature Publishing Group
![Page 19: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/19.jpg)
What Is the Web 2.0?
• In plain English ….– Automating tedious tasks using web technology– Tools to help people and software collaborate
![Page 20: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/20.jpg)
20
Team: People and Orgs
Remote ControlUser ServicesSystem DeploymentIntegration
System Architecture
System RequirementsTestingData Analysis/Grid Computing
User Office SoftwareScientific Workflow Engines
![Page 21: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/21.jpg)
21
Team: People and Orgs
Dionisio MedranoDylan MaxwellDong LiuElder MatiasDaron Chabot (now NSLS)
Chris ArmstrongJohn Haley
Jinhui Qin Nathaniel Sherry (student)Mike BauerStewart McIntyreMarina Suominen Fuller
Yuhong YanZahid Anwar (student)
![Page 22: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/22.jpg)
Requirements
• New User Office Functionality– Proposal submission– Peer review– User Feedback Tracking– Experiment Management– User Training/ Safety Testing
• Remote Beamline Access• Integration with grid data-storage• Grid computing
![Page 23: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/23.jpg)
System Architecture
WebApplication
BeamlineControlModule
DB SAN
JMS CA
VESPERS
HTTP
1. VESPERS Beamline2. EPICS control system3. Beamline Control Module (BCM)4. Web Application5. Database6. File Storage7. Web Interface
![Page 24: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/24.jpg)
VESPERS Beamline
• VESPERS — Very Sensitive Elemental and Structural Probe Employing Radiation from a Synchrotron
• A bending magnet beamline on sector 6 at the Canadian Light Source synchrotron in Saskatoon, Saskatchewan.
• A hard x-ray microprobe with an energy range of 6 to 30keV.
• Techniques: X-Ray Fluorescence (XRF) & X-Ray Diffraction (XRD)
WebApplication
BeamlineControlModule
DB SAN
JMS CA
VESPERS
HTTP
![Page 25: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/25.jpg)
EPICS Low-level Control System
• EPICS — Experimental Physics and Industrial Control System
• The standard control system at the CLS.
• EPICS consists of a network of Input-Output Controls (IOCs) which are connected to directly to devices.
• An IOC provides many Process Variables (PVs) which relate to either an input or output from a device and have a unique name.
• Channel Access (CA) is used to read or write to any PV without knowing which IOC provides the PV.
• More than 50,000 PVs in the CLS control system.
WebApplication
BeamlineControlModule
DB SAN
JMS CA
VESPERS
HTTP
![Page 26: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/26.jpg)
Beamline Control Module (BCM)
• The BCM provides a high-level interface to the low-level control system (EPICS).
• Logical and physical separation of business logic and control logic.
• Virtual device abstraction that provides independence from low-level control system.
• Virtual devices can be logically organized into a device hierarchy.
• Basic devices can be combined to build more functional devices.
• Communication with external applications using two message queues (ActiveMQ).
WebApplication
BeamlineControlModule
DB SAN
JMS CA
VESPERS
HTTP
![Page 27: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/27.jpg)
Web Application
• A J2EE Servlet application that provides a web-based interface Science Studio.
• Tools: Spring (MVC), iBATIS (ORM), JSecurity (Apache Ki), Apache Tomcat
• Divided into two parts: the Core application and the VESPERS beamline application.
• Core application is responsible for providing access to the business objects.
• VESPERS application is responsible for remote control of the VESPERS beamline.
WebApplication
BeamlineControlModule
DB SAN
JMS CA
VESPERS
HTTP
![Page 28: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/28.jpg)
Database
• Metadata associated with the operation of a remote controlled beamline and the organization of experimental data collected on that beamline.
• A project is the top level organizational unit and is associated with a project team.
• A session defines a period of time allocated to a project team to conduct experiments.
• An experiment relates a sample and the technique being applied to that sample.
• A scan records the location of the acquired experimental data.
WebApplication
BeamlineControlModule
DB SAN
JMS CA
VESPERS
HTTP
![Page 29: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/29.jpg)
Experimental Data Storage
• Experimental data is stored at the CLS.
• Common directory structure shared with other beamlines. • A large data storage facility is now operational at the University of
Saskatchewan as part of WestGrid.
WebApplication
BeamlineControlModule
DB SAN
JMS CA
VESPERS
HTTP
![Page 30: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/30.jpg)
VESPERS Web Interface
• Rich web interface to Science Studio and the VESPERS beamline.
• Designed to be used over commodity broadband internet.
• Developed for the Firefox web browser without any additional plugins or extensions.
• Known to work with other browsers, but requires the Canvas HTML tag.
• AJAX is used for the VESPERS interface to provide device values in pseudo real time.
• ExtJS, a JavaScript framework, provides many advanced GUI elements.
WebApplication
BeamlineControlModule
DB SAN
JMS CA
VESPERS
HTTP
![Page 31: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/31.jpg)
![Page 32: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/32.jpg)
Beamline Setup
![Page 33: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/33.jpg)
Experiment Setup
![Page 34: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/34.jpg)
XRF (X-Ray Fluorescence)
![Page 35: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/35.jpg)
Beamline Hutch Cameras
![Page 36: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/36.jpg)
Experimental Data Viewer
![Page 37: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/37.jpg)
![Page 38: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/38.jpg)
ScienceStudio
![Page 39: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/39.jpg)
Scanning
![Page 40: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/40.jpg)
X-Ray Fluorescence (XRF): Reveals Elemental CompositionCharacteristic Element Lines Selected and Mapped Over a 2D Scan Area
S: Kα Cr: Kα & Cr: Kβ Fe: Kα & Fe: Kβ Ni: Kα & Ni: Kβ
2D Maps Generated for Selected Elemental Lines
![Page 41: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/41.jpg)
X-Ray Diffraction (XRD): Reveals Structural InformationPeak Fitting and Indexing of Image Set to Create a Grain Orientation Map
Peak Search
Old IDL Programme – Matched Peak
Old IDL Programme – Matched Peak
New C Programme – Matched Peak
New C Programme – Expected Peak
The XRD Indexing programme examines the locations of peaks in an image in order to determine the kind of lattice structure the samples constituent atoms are arranged in. Shown here are the results of an older indexing programme written in IDL, and the new indexing programme, written in C. The new indexing programme is proving to be more versatile, and more reliable than the old programme, often indexing sets of data that the old programme failed with.
Grain Orientations
Indexing Process
![Page 42: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/42.jpg)
User Training Module
![Page 43: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/43.jpg)
User Training Module
![Page 44: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/44.jpg)
User Office Workflow Example
Prototype Implementation1. CLS issues a call for proposals and gives deadline2. Beamline users submit proposals3. User Office administrator ends registration or extends deadline4. User Office administrator assigns proposals to user office reviewers5. Reviewers look at proposals and rank them6. User Office looks at ranking and chooses the proposals to accept7. Accepted proposals contact persons are notified8. Beamline User completes training (web service)9. After training is completed (simulated by a delay) the CLS is notified
![Page 45: E. Matias Canadian Light Source June 2009 – Presentation to - NSLS II EFD Division](https://reader037.fdocuments.in/reader037/viewer/2022103008/5681686b550346895ddedcdd/html5/thumbnails/45.jpg)
The End
Thank you.