Matlab Controls Software on ALICE Andy Wolski 24 September 2014 Multiknobs simultaneous control of a set of magnets Undulator Gap Scan ALICE FEL Wavelength Monitor Matlab pros and cons ID: 596121
Download Presentation The PPT/PDF document "Examples of" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
Examples of
Matlab Controls Software on ALICE
Andy Wolski24 September 2014
Multiknobs
: simultaneous control of a set of magnets
Undulator
Gap Scan
ALICE FEL Wavelength Monitor
Matlab
pros and consSlide2
Multiknobs
Allows simultaneous control of a set of magnets, with strength changes in predefined ratios.Slide3
Undulator
Gap Scan
Varies undulator gap over a specified range, in specified steps.At each step, records predefined measurements from an oscilloscope (communication via http).Displays data on GUI, and records raw data in a text file.
TCP/IP
Undulator
gap control via EPICS
IR FEL
Analogue signalsSlide4
Undulator
Gap ScanSlide5
FEL Wavelength Monitor
Continuously reads data from spectrometer via NI DAQ box
(32 channels, 2 kHz).Records raw data from every machine pulse.Performs analysis of data at (approx) 1 Hz to determine peak wavelength, width and intensity.Displays data on GUI and updates control system (EPICS PVs).Provides control of spectrometer via C interface routines.Slide6
FEL Wavelength Monitor
SNOM PCSNOM
SpectrometerALICEACR Console(l f/b …)
Spectrometer PC
(
l
monitor)
NI DAQ
IR
EPICS
EPICS
(TCP/IP)
USB
Analogue
Clock
USB
Trigger
Counter
PC
(
LabView
)
NI
myDAQ
USB
10 Hz Trigger
Analogue
l
signal
(1 Hz)Slide7
AEMITR Controls
Control of various mirrors and optics via a variety of interface channels.
Acquisition and analysis of camera images.Slide8
Matlab
: some pros…
Provides a comprehensive scientific programming and data analysis environment.Programming language is easy to learn, and supports some “advanced” features (object oriented programming…)“User friendly” GUIs can be developed reasonably quickly and easily.Can be readily interfaced to a range of different types of hardware devices (cameras, motor controllers, DAQ boxes…)Readily interfaced to external code (e.g. in C or C++) to improve computational speed, or for communication with hardware devices.Pretty good documentation, with plenty of examples on the web.Wide range of graphics options; good quality visualisation.Slide9
…and cons
Easy to develop “sloppy” programming habits.
Proprietary: license can be expensive. Toolboxes are extra.Not always intuitive (especially when interfacing to external devices).Slide10
Thanks to Ben Shepherd (for general assistance with Matlab, especially when talking with EPICS) and Paul Bassan
(who did most of the code development for the FEL Wavelength Monitor).Acknowledgements