operational tools at the stanford linear accelerator center
DESCRIPTION
Operational Tools at the Stanford Linear Accelerator Center. Greg White, for many, many, great programmers, scientists and engineers from the SLAC Controls Department, operations and physics groups. SLAC Tools Technology Timeline. SLAC Tools Technology Timeline. SLAC Tools Technology Timeline. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/1.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Operational Tools at the Stanford Linear Accelerator Center
Greg White, for many, many, great programmers, scientists and engineers from the SLAC Controls Department,
operations and physics groups.
![Page 2: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/2.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
SLAC Tools Technology Timeline
![Page 3: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/3.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
SLAC Tools Technology Timeline
![Page 4: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/4.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
SLAC Tools Technology Timeline
![Page 5: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/5.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Past 20 years! - The SLAC Control Program “SCP” (pronounced “skip”)
![Page 6: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/6.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Hierarchy of Applications Dynamically Linked Libraries
![Page 7: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/7.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Hierarchy of Applications Dynamically Linked Libraries
![Page 8: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/8.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
SCP Application “Integration”
![Page 9: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/9.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
The SCP’s Characteristics
Advantages
Integrated Applications, tools and scienceRocket FastSeamless User InterfaceOne executable, giving macros
![Page 10: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/10.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Beamline “z” plots
![Page 11: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/11.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Save/Restore (aka “configs”)
![Page 12: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/12.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Beam Position Monitors (BPM)
![Page 13: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/13.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Reference BPM Orbit
![Page 14: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/14.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Extant BPM Orbit
![Page 15: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/15.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Beam Position Difference Orbits
![Page 16: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/16.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Difference (Actual Orbit minus Reference Orbit)
![Page 17: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/17.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Modelling
![Page 18: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/18.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Orbit fitting
![Page 19: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/19.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Steering (Orbit Correction)
![Page 20: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/20.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Orbit Correction
• Correction “methods”:- Robust Chi Sq- Paired correctors to bpms- Micado- SVD- others now seldom used
• Simultaneous Orbit and Dispersion Correction• Transport or closed orbit• Optional Boundary conditions (eg constant injector region)• If underconstrained, finds soln with smallest corrs• Iteratively removes BPMs with poor fit (liars)• Handles degenerate system matrix (by SVD) but includes peak amplitude constraints (corrector Bmax)
min || Ax - b ||2
subject to xj xjmax
http://www.slac.stanford.edu/pubs/slacpubs/7000/slac-pub-7653.html
![Page 21: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/21.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Multi-knobs
![Page 22: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/22.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Example MKB file
![Page 23: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/23.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Bumps
![Page 24: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/24.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
“Button Macros”
![Page 25: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/25.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
“Button Macros”
![Page 26: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/26.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
“Correlation Plots”
* Steps any controllable thing, reads any, up to 160, readable values* Beam Synchronous - knows what to do* Total integration - eg step ring frequency, do orbit fit, read fit params* Includes plotting, fitting, optimization (eg implements quad scan)
![Page 27: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/27.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
History/Archive Data
Chart Types: stripchart, Overlay, A vs B (interpolated), expressions in A, B and CLinear and Log axesAuto or manual scaling axes
![Page 28: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/28.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
The SCP’s Characteristics
Advantages
Integrated Applications, tools and scienceRocket FastSeamless User InterfaceOne executable, giving macros
Disadvantages
Very difficult to upgrade basis technologySingle threaded, one thing at a timeImpossible to collaborateVMS based
![Page 29: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/29.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
SCP - Matlab - XAL - Eclipse - CA integration Timeline
![Page 30: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/30.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Transitionary Phase - Present
![Page 31: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/31.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Beam Profile Image Management in Matlab
Thanks to Sergei Chevtsov
![Page 32: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/32.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Bunch Length Measurement
Thanks to Mike Zelazny
![Page 33: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/33.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Matlab based feedback!
Thanks to Diane Fairley
![Page 34: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/34.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Transitionary Phase - Future (immediate)
![Page 35: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/35.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Hybrid environment for applications (now in dev.)
From “LCLS Apps from 20000ft” (G. White)http://confluence.slac.stanford.edu/x/lBk
![Page 36: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/36.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
SLAC Eclipse Accelerator Lab (SEAL) Modelling
![Page 37: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/37.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
SEAL including Control System Studio (CSS)
Thanks P.Chu, K.Kasemir, S.Chevtsov
![Page 38: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/38.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
SEAL Formatted Displays (ready to print, logbook)
Thanks S. Chevtsov
![Page 39: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/39.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Control Data Flow for Scientific Applications
![Page 40: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/40.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Access to Archive/History Data
![Page 41: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/41.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Middleware, connecting legacy to modern software
George McIntyre, Bob Sass, Bob Hall, Ron MacKenzie, Greg White
![Page 42: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/42.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Command Line Aida
![Page 43: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/43.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
AidaWeb: Web -> Excel, Scripts (by wget), Web Browser, Web Apps
![Page 44: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/44.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Aida (pure java API) in matlab History/Archiver access and plot
![Page 45: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/45.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Matlab java lessons
• datenum() converts time format data to plotable floats• datetick tells current plot() to scribe axis with date/time
• textual date/time to float conversion is very costly ( soln. use say unix time rather than text )
• Put java VM options in Matlab secret file java.opt.
![Page 46: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/46.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Aida CORBA Performance
Double: 1 or 2 ms,sometimes more
Nd Vector DaValue: < 10 ms, Median 3 ms,sometimes more. Eg History, BPM, model
Linear up to tested 4MBytes
![Page 47: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/47.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Future XML Performance -> SOAP -> WS -> GRID Performance
http://www.w3.org/XML/EXI/
![Page 48: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/48.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Efficient XML Interchange Working Group of W3C
Performance of EXI candidates on XAL with lossless compression (no XML Schema)
High perf XMLprocessor
EXI ProcessorBinary XML
http://www.w3.org/XML/EXI/
![Page 49: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/49.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
EXI (Binary XML) on EPICS Archiver XML-RPC dataEXI candidates on EPICS Archiver without compression (no XML Schema)
> 7 X faster in network and processing time (More efficient float being added)
![Page 50: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/50.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
SparklinesEdward Tufte
http://sparkline.org/http://www.edwardtufte.com
![Page 51: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/51.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
What Did we Do Wrong - Bob Dalesio’s Slide
• Underestimated XAL integration (modelled elements, SMF layer, database integration)
• Underestimated db persistence • Underestimated Eclipse questions
– IDE RCP or our own Product– Building in a production environment– Distribution
• SWT <> Swing : Eclipse <> XAL• Matlab pragmatism not accepted by everyone.
![Page 52: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/52.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
Questions - please talk to us!
• Macros (automatic script recording) over different hosts, OS? X11 only common factor!
• Headless, production, build of Eclipse?• 3D visualization for accelerator physics?• Impact/Parmela -> Elegant -> Genesis/Ginger
![Page 53: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/53.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
References
• Visual Display of Quantitative Information. E. tufte. – cf. Sparklines.
http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR&topic_id=1&topic=Ask+E.T.– http://sparklines.org
• Aida CORBA Performance Report http://www.slac.stanford.edu/grp/cd/soft/aida/perf/Report.html• A Hybrid Numerical Method for Orbit Correction
http://www.slac.stanford.edu/pubs/slacpubs/7000/slac-pub-7653.html• W3C Efficient XML Interchange Working Group http://www.w3.org/XML/EXI/
![Page 54: Operational Tools at the Stanford Linear Accelerator Center](https://reader035.vdocument.in/reader035/viewer/2022062816/568159a3550346895dc6fa89/html5/thumbnails/54.jpg)
Greg White, Stanford Linear Accelerator Center, 2007
to add
cmlogcrr plots