the css scan system kay-uwe kasemir sns/ornl dec. 2013
TRANSCRIPT
![Page 1: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/1.jpg)
The CSS Scan System
Kay-Uwe Kasemir
SNS/ORNL
Dec. 2013
![Page 2: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/2.jpg)
2 Managed by UT-Battellefor the U.S. Department of Energy
Large Experimental Setups To Control
http://imgs.xkcd.com/comics/telescope_names.png
![Page 3: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/3.jpg)
Overall Picture for SNS
Sample Environment Equipments
Sample Environment Equipments
Sample Environment Equipments
Sample Environment Equipments
Sample Environment
Sample Environment
DetectorDetector Instrument EventsInstrument EventsAggregatorAggregator Translation
ServiceTranslation
Service
MantidMantidHistogramService
HistogramService
Data StreamData Stream
GUI: CSSGUI: CSSGUI: CSSGUI: CSSGUI: CSSGUI: CSS
EPICSIOCs
EPICSIOCs
Scan ServerScan Server
Channel Access
![Page 4: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/4.jpg)
4 Managed by UT-Battellefor the U.S. Department of Energy
Experiment Components
• Equipment– Motors, Temperature Regulators, Detectors, ..
• Supervisory Control– Manually control and monitor
• Automation– Schedule ‘scan’ of crystal positions, temperatures, …
• Data Acquisition– Log data of interest during an experiment ‘run’
• Data Analysis– Turn logged data into scientific information
![Page 5: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/5.jpg)
5 Managed by UT-Battellefor the U.S. Department of Energy
Experiment Components…
• Equipment
• Supervisory Control
• Automation
• Data Acquisition
• Data Analysis
CSS Scan System:
Modular, robust building block for experiment automation.
Interfaces to supervisory control, DAQ, …, but as a separate component.
![Page 6: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/6.jpg)
6 Managed by UT-Battellefor the U.S. Department of Energy
Ideally both Flexible and Robust
Flexible– Control any beam line
equipment
– Standard tasks:• X/Y scan of surface
• CT-scan sample rotation
• Temperature range scan
– Ad-hoc tasks:• While ramping Temperature,
scan X/Y for each T
• Scan table of T, X, Y
Robust– Control Scan’s Live-cycle
• Start/pause/resume/stop
• Monitor progress
• Simulate scan
• Queue multiple scans
– Built-in checks• Are devices available?
• Did device acknowledge?
• Does read-back match?
• Did access time out?
![Page 7: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/7.jpg)
7 Managed by UT-Battellefor the U.S. Department of Energy
Scan Server
Accepts ‘Scans’, executing them in order of submission
Scan ServerScan Server
EPICS IOCsEPICS IOCs
EquipmentEquipment
http, REST
Channel Access(also: EPICS V4, simulated channels)
(also: EPICS V4 server; ‘telnet’ console)
![Page 8: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/8.jpg)
Scan Commands
• Set device = value
Optional: wait for completion, verify read-back, with timeout.
• Wait for device == value
Optional: Wait until a device is ==, >, …, incremented-by a certain value, with timeout.
• Loop device = 1 .. 10, stepping 2
Optional: completion, read-back and timeout.
• Log device1, device2
Log data to monitor/analyze scan. No replacement for DAQ!
• Delay for … seconds
Discouraged. Better: Wait for device to meet condition.
• Script
–Execute Jython code. Use with care.
Custom commands can be added via Eclipse extension points.
![Page 9: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/9.jpg)
9 Managed by UT-Battellefor the U.S. Department of Energy
Accessing the Scan Server
• Web Browser
• Java– CSS Scan Editor,
Scan Monitor
– Jython (CSS *.opi)
– Matlab
• Any custom code.. with ‘http’ library
![Page 10: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/10.jpg)
10 Managed by UT-Battellefor the U.S. Department of Energy
CSS User Interfaces for Scans
Scan ServerScan Server
![Page 11: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/11.jpg)
11 Managed by UT-Battellefor the U.S. Department of Energy
Beam Line Example: CT
• ORNL HFIR CG-1D
![Page 12: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/12.jpg)
12 Managed by UT-Battellefor the U.S. Department of Energy
“Table” Scan
![Page 13: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/13.jpg)
13 Managed by UT-Battellefor the U.S. Department of Energy
“Range” Scan with Edge Detection
![Page 14: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/14.jpg)
ScanEditor Add commands
Set parameters
Open, save
• “Undo”
• Drag/dropcommands or PV names (also as XML text)
• Device PVs (or alias) can be picked from beamline-specific configuration
![Page 15: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/15.jpg)
Matlab
Create ScanCreate Scan
MonitorMonitor
Analyze(maybe submit follow-up
scan)
Analyze(maybe submit follow-up
scan)
![Page 16: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/16.jpg)
Performance (before PVManager)
• Command Execution– 80000 commands/second: Delay 0 sec, Set w/o read-
back
– 4500 commands/second: Set w/ read-back, Loop
• Download scan into Editor– 10000 commands: 1 second
– 50000 commands: 15 seconds
![Page 17: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/17.jpg)
17 Managed by UT-Battellefor the U.S. Department of Energy
Ongoing Work
Separation of Scan Execution and GUIGood for stability
– Added work“Start”: GUI Script to submit scan Scan Server
“Plot”: Scan writes to PVs BOY displays PVs
Simpler interfacing via PVManager and V4 Data Types “Start”: Invoke pvmanager ‘service’ for 1D-scan
“Plot”: Read scan log as V4 Table ‘pva:scanData?id=47’
![Page 18: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/18.jpg)
Submit Scan via PVManager “Service”
![Page 19: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/19.jpg)
PVAccess & PVManager for Status & Log
![Page 20: The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec. 2013](https://reader035.vdocument.in/reader035/viewer/2022062314/56649edc5503460f94bec5df/html5/thumbnails/20.jpg)
Summary: CSS Scan System
Modular, robust building block for experiment automation.