SlideShare a Scribd company logo
1 of 3
Download to read offline
EPICS, MATLAB, GigE CCD CAMERA BASED BEAM IMAGING
SYSTEM FOR THE IAC-RadiaBeam THz PROJECT
Chris Eckman∗
, Y. Kim, A. Andrews, T. Downer, and P. Buaphad
Idaho State University, Pocatello, ID 83209, USA
Abstract
At the Idaho Accelerator Center (IAC) of Idaho State
University (ISU), we have been operating an L-band RF
linear accelerator running at low energies (4 - 44 MeV) for
the IAC-RadiaBeam THz project [1]. We have designed
and implemented a beam image acquisition and analysis
system that can be used for real time observation of the
electron beam, tuning of THz radiation production, and
measurement of transverse beam emittance. In this paper,
we describe the components of the imaging system, the ac-
quisition of real time beam images, the remote acquisition
of single shot beam images, and the processing of the beam
images in MATLAB to measure beam size and transverse
beam emittance.
INTRODUCTION
Due to a 1.2 mm wide slit at the entrance of the THz
radiator, experiments for the IAC-RadiaBeam THz project
require the implementation of an optics system to control
the beam shape for obtaining optimal beam transmission.
To accomplish this, the ISU Advanced Accelerator and Ul-
trafast beam Lab (AAUL) has developed an advanced beam
imaging system that acquires real time beam images as
well as single shot beam images. Real time beam imag-
ing is achieved through use of the software application,
SampleViewer in conjunction with the beam imaging sys-
tem. Single shot beam images can be acquired remotely
using Experimental Physics and Industrial Control System
(EPICS), MATLAB, and the EPICS modules: areaDetector
and MATLAB Channel Access (MCA). The beam imaging
system, taking single shot beam images, allows for measur-
ing beam size as well as transverse beam emittance.
THE IMAGING SYSTEM
The components of the beam imaging system are as fol-
lows: an Yttrium Aluminium Garnet (YAG) screen on an
actuator, a Prosilica GC1290 GigE CCD camera with a
mounted adjustable Fujinon HF50SA-1 lens, a screen LED
illuminator, and optics table to mount the optics cage. The
optics cage is assembled with components, manufactured
by Thorlabs [2], listed in Table 1. The essentials compo-
nents of the beam imaging system can be seen in Fig. 1.
The light generated from the interaction of the beam on the
∗ cryptoscientia@gmail.com
YAG screen can be observed through a crystal window sit-
uated adjacent to the YAG screen.
Figure 1: Set-up of the beam imaging system.
A small brightness-adjustable LED was mounted on the
end of the optics cage to illuminate the YAG screen and
ease in the alignment and calibration of the camera. Light
picked up by the camera from sources anywhere other than
the YAG screen increases the background noise on each
image, thus a black covering was draped around the optics
cage to shield the camera from all other light. The proxim-
ity of the camera to the accelerator poses risk of radiation
damage to the camera sensor, thus the camera was placed
inside a lead tube, shielding it from the radiation. For extra
protection, the optics cage was practically surrounded by
lead bricks.
PROSILICA CAMERA
Beam parameter measurements rely heavily on image
quality. The quality of the image is affected by the dis-
tance between the camera and the YAG screen, electronic
interference, broken pixels in the camera sensor, and ex-
poser time. The Prosilica GC1290 GigE CCD camera was
chosen for the beam imaging system for its high resolution
Table 1: Main components purchased through Thorlabs for
the imaging cage set-up
Image Description Part Number QTY
Threaded cage plate LCP01T 4
Cage assembly rod ER18 4
Steel optical post TR4 2
Post holder PH4 2
Mounting base BA2T2 2
and image quality as summerised in Table 2. The Fujinon
HF50SA-1 lens is focused on the YAG screen for optimal
viewing and imaging, the camera and lens as shown in the
bottom right of Fig. 2. The Fujinon lens allows for efficient
focusing and adjusting of the equipment.
Table 2: Main specifications on the Prosilica GigE CCD
Camera and the Fujinon HF50SA-1 lens
Parameter Value or Type
Interface GigE
Resolution 1280 × 960
Sensor size Type 1/3
Cell size 3.75 µm
Max frame rate at full resolution 32 fps
Lens focal length 50 mm
Lens minimum field of view 38 mm × 28 mm
The Prosilica camera has a trigger input port that re-
ceives an external trigger signal from the timing system of
the accelerator. The external trigger signal was added to
the power cable and fed into the trigger input port of the
camera. The power cable for the camera had to be physi-
cally modified to add the triggering signal. Triggering the
camera off of the timing system of the accelerator allows
the synchronization of the camera and the beam so that the
images taken are accurate depictions of the actual beam.
The CCD camera features a Gigabit Ethernet interface used
for transmitting beam images on the local area network to
a dedicated Linux computer system running EPICS where
the data is stored and processed. The EPICS host allows for
remote control of the camera via the EPICS module areaD-
etector.
SAMPLEVIEWER
SampleViewer is a free software application for the GigE
CCD camera distributed by Prosilica. It has a user friendly
interface that incorporates the cameras internet connection
to run several diagnostics on the CCD camera as well as
acquire real time beam images as shown in Fig. 2. The di-
agnostics that can be performed include: checking image
quality, camera alignment, camera triggering, image gain,
and image exposure time. To put the CCD camera on the
network, the Ethernet adapter of the computer needed to
be configured to improve system performance when using
the GigE CCD camera [3]. The configurations included the
packet size (MTU of 8228), interrupt moderate rate, trans-
mit buffers, and receive buffers. The camera also uses a
companion program, IPConfig, to change the dynamically
allocated IP address of the camera to a static IP address
allowing it to be used in EPICS.
Figure 2: Contorl panels of SampleViewer, a beam image,
and the Prosilica GC1290 camera with Fujinon lens.
EPICS AND AREADETECTOR
To more precisely control the CCD camera and extract
data from the images, a programmable method was em-
ployed. EPICS provides a platform that allows for camera
control in an accelerator system [4]. EPICS also provides
a Graphic User Interface (GUI) for user interaction when
needed, such as the main areaDetector GUI as shown in
Fig. 3. Each button and input box on the GUI has an asso-
ciated Process Variable (PV). PVs are named pieces of data
associated with a machine, things like status, readback and
physical parameters. Images are taken by the CCD camera
using “Start” button in areaDetector GUI panel. The PV as-
sociated with that button is named “13PS1:cam1:Acquire”.
All PVs in areaDetector can be controlled in MATLAB
through MCA.
MATLAB CHANNEL ACCESS
MCA creates a channel from MATLAB to EPICS, this
link allows for communication between the two different
programs [5]. With MCA, we are able to send information
Figure 3: Main GUI screen of areaDetector.
in the form of PVs between EPICS and MATLAB by
means of the channel access, thus the accelerator can be
controlled with MATLAB directly. MCA is an extension
of EPICS that can be downloaded and installed in both
EPICS and MATLAB. When installed properly, code can
be entered into MATLAB to control equipment in EPICS.
The MCA code MCAOPEN, MCAGET, and MCAPUT
allow MATLAB to open a channel to EPICS, to read
information from EPICS, and to write information to PVs.
An example of the MCA and MATLAB code is as follows:
CameraAcquire=MCAOPEN(’13PS1:cam1:Acquire’);
AcquireData=MCAGET(CameraAcquire);
MCAPUT(CameraAcquire,1);
MCACLOSE(CameraAcquire);
MCAGET retrieves the status of the PV associated
with the camera shutter. If the CameraAcquire is 0, then
the camera shutter is closed. However if the CameraAc-
quire is 1, then the shutter is open, and the camera starts
taking images. MCAPUT writes values into the PV, such
as 1 or 0, and MCACLOSE closes the channel of the PVs.
These images are then transferred to the hard drive to be
saved in a designated file path, which is also a PV. These
MCA commands are used in MATLAB to control all
aspects of the camera as well as other equipment such as
power supplies [4]. Once an image is in MATLAB it can
be processed to remove background, plot projections, filter
the image, and extract data for parameter measurement.
Fig. 4 (left) shows a background subtracted and color
enhanced version of the image in Fig. 2. The image to
the right is used by an automatic emittance measurement
program running in MATLAB and shows the horizontal
and vertical projections on the image directly [6].
Figure 4: MATLAB processed beam images.
SUMMARY
The beam imaging system is useful for many accelera-
tor applications and beam parameter measurements. The
single shot beam images were taken by the Prosilica GigE
CCD camera using MATLAB in conjunction with areaD-
etector. The beam images were transferred from the cam-
era to MATLAB. In MATLAB the beam images were ana-
lyzed and the relevant data extracted. The combination of
MATLAB and EPICS allows for the control of accelerator
equipment, access to higher level programming, and auto-
matic beam parameter measurements, such as beam size
and transverse beam emittance. The beam imaging system
was used to optimize the production of THz radiation at the
IAC [7,8].
ACKNOWLEDGEMENTS
We would also like to give our sincere thanks to Dr.
Mark Rivers of APS for his advice and guidance on AreaD-
etector and MCA. In addition, we would like to thank Dr.
Henrik Loos of SLAC for his strong interest, advice and
encouragement in this project.
REFERENCES
[1] http://www.iac.isu.edu
[2] http://www.thorlabs.us/index.cfm
[3] http://www.alliedvisiontec.com/us/products/cameras/gigabit-
ethernet/prosilica-gc/gc1290.html
[4] A. Andrews et al.., in these proceedings.
[5] A. Terebilo et al.., in Proc. ICALEPCS2001, THAP030, San
Jose, CA, USA.
[6] C. Eckman et al.., in Proc. IPAC2012, TUPPC055,New Or-
leans,LA
[7] Y. Kim et al.., in these proceedings.
[8] A. V. Smirnov et al.., in these proceedings.

More Related Content

What's hot

Active Infrared Night Vision System of Agricultural Vehicles
Active Infrared Night Vision System of Agricultural VehiclesActive Infrared Night Vision System of Agricultural Vehicles
Active Infrared Night Vision System of Agricultural VehiclesNooria Sukmaningtyas
 
A review on automatic wavelet based nonlinear image enhancement for aerial ...
A review on automatic wavelet based nonlinear   image enhancement for aerial ...A review on automatic wavelet based nonlinear   image enhancement for aerial ...
A review on automatic wavelet based nonlinear image enhancement for aerial ...IAEME Publication
 
A Fast Single-Pixel Laser Imager for VR/AR Headset Tracking
A Fast Single-Pixel Laser Imager for VR/AR Headset TrackingA Fast Single-Pixel Laser Imager for VR/AR Headset Tracking
A Fast Single-Pixel Laser Imager for VR/AR Headset TrackingPing Hsu
 
2018 KOSRO-Oral presentation-Wonjoong Cheon
2018 KOSRO-Oral presentation-Wonjoong Cheon2018 KOSRO-Oral presentation-Wonjoong Cheon
2018 KOSRO-Oral presentation-Wonjoong CheonWonjoongCheon
 
RADAR Image Fusion Using Wavelet Transform
RADAR Image Fusion Using Wavelet TransformRADAR Image Fusion Using Wavelet Transform
RADAR Image Fusion Using Wavelet TransformINFOGAIN PUBLICATION
 
Assisted GPS in Radiomobile Networks
Assisted GPS in Radiomobile NetworksAssisted GPS in Radiomobile Networks
Assisted GPS in Radiomobile NetworksLuca Matteo Ruberto
 
Indoor positioning based on enhanced utdoa (R1-150419)
Indoor positioning based on enhanced utdoa (R1-150419)Indoor positioning based on enhanced utdoa (R1-150419)
Indoor positioning based on enhanced utdoa (R1-150419)Yi-Hsueh Tsai
 
PROGRAMMED TARGET RECOGNITION FRAMEWORKS FOR UNDERWATER MINE CLASSIFICATION
PROGRAMMED TARGET RECOGNITION FRAMEWORKS FOR UNDERWATER MINE CLASSIFICATIONPROGRAMMED TARGET RECOGNITION FRAMEWORKS FOR UNDERWATER MINE CLASSIFICATION
PROGRAMMED TARGET RECOGNITION FRAMEWORKS FOR UNDERWATER MINE CLASSIFICATIONEditor IJCTER
 
IRJET - Object Identification in Steel Container through Thermal Image Pi...
IRJET -  	  Object Identification in Steel Container through Thermal Image Pi...IRJET -  	  Object Identification in Steel Container through Thermal Image Pi...
IRJET - Object Identification in Steel Container through Thermal Image Pi...IRJET Journal
 
Multifocus_IRANIANCEE.2014.6999819
Multifocus_IRANIANCEE.2014.6999819Multifocus_IRANIANCEE.2014.6999819
Multifocus_IRANIANCEE.2014.6999819Iman Roosta
 
Positioning in Location Based Services
Positioning in Location Based ServicesPositioning in Location Based Services
Positioning in Location Based Servicesessi
 
Implementation of Implantation-Stagger Measuring Unit using Image Processing
Implementation of Implantation-Stagger Measuring Unit using Image ProcessingImplementation of Implantation-Stagger Measuring Unit using Image Processing
Implementation of Implantation-Stagger Measuring Unit using Image ProcessingDr. Amarjeet Singh
 

What's hot (19)

Active Infrared Night Vision System of Agricultural Vehicles
Active Infrared Night Vision System of Agricultural VehiclesActive Infrared Night Vision System of Agricultural Vehicles
Active Infrared Night Vision System of Agricultural Vehicles
 
2007 asprs
2007 asprs2007 asprs
2007 asprs
 
A review on automatic wavelet based nonlinear image enhancement for aerial ...
A review on automatic wavelet based nonlinear   image enhancement for aerial ...A review on automatic wavelet based nonlinear   image enhancement for aerial ...
A review on automatic wavelet based nonlinear image enhancement for aerial ...
 
E045032833
E045032833E045032833
E045032833
 
A Fast Single-Pixel Laser Imager for VR/AR Headset Tracking
A Fast Single-Pixel Laser Imager for VR/AR Headset TrackingA Fast Single-Pixel Laser Imager for VR/AR Headset Tracking
A Fast Single-Pixel Laser Imager for VR/AR Headset Tracking
 
C05131525
C05131525C05131525
C05131525
 
2018 KOSRO-Oral presentation-Wonjoong Cheon
2018 KOSRO-Oral presentation-Wonjoong Cheon2018 KOSRO-Oral presentation-Wonjoong Cheon
2018 KOSRO-Oral presentation-Wonjoong Cheon
 
RADAR Image Fusion Using Wavelet Transform
RADAR Image Fusion Using Wavelet TransformRADAR Image Fusion Using Wavelet Transform
RADAR Image Fusion Using Wavelet Transform
 
Assisted GPS in Radiomobile Networks
Assisted GPS in Radiomobile NetworksAssisted GPS in Radiomobile Networks
Assisted GPS in Radiomobile Networks
 
Indoor positioning based on enhanced utdoa (R1-150419)
Indoor positioning based on enhanced utdoa (R1-150419)Indoor positioning based on enhanced utdoa (R1-150419)
Indoor positioning based on enhanced utdoa (R1-150419)
 
thesis-presentation
thesis-presentationthesis-presentation
thesis-presentation
 
IRJET-Cleaner Drone
IRJET-Cleaner DroneIRJET-Cleaner Drone
IRJET-Cleaner Drone
 
Sub14249
Sub14249Sub14249
Sub14249
 
PROGRAMMED TARGET RECOGNITION FRAMEWORKS FOR UNDERWATER MINE CLASSIFICATION
PROGRAMMED TARGET RECOGNITION FRAMEWORKS FOR UNDERWATER MINE CLASSIFICATIONPROGRAMMED TARGET RECOGNITION FRAMEWORKS FOR UNDERWATER MINE CLASSIFICATION
PROGRAMMED TARGET RECOGNITION FRAMEWORKS FOR UNDERWATER MINE CLASSIFICATION
 
Unit 1 notes
Unit 1 notesUnit 1 notes
Unit 1 notes
 
IRJET - Object Identification in Steel Container through Thermal Image Pi...
IRJET -  	  Object Identification in Steel Container through Thermal Image Pi...IRJET -  	  Object Identification in Steel Container through Thermal Image Pi...
IRJET - Object Identification in Steel Container through Thermal Image Pi...
 
Multifocus_IRANIANCEE.2014.6999819
Multifocus_IRANIANCEE.2014.6999819Multifocus_IRANIANCEE.2014.6999819
Multifocus_IRANIANCEE.2014.6999819
 
Positioning in Location Based Services
Positioning in Location Based ServicesPositioning in Location Based Services
Positioning in Location Based Services
 
Implementation of Implantation-Stagger Measuring Unit using Image Processing
Implementation of Implantation-Stagger Measuring Unit using Image ProcessingImplementation of Implantation-Stagger Measuring Unit using Image Processing
Implementation of Implantation-Stagger Measuring Unit using Image Processing
 

Viewers also liked

¿Cuantos estudios de imagen debo hacer para establecer un diagnóstico en pato...
¿Cuantos estudios de imagen debo hacer para establecer un diagnóstico en pato...¿Cuantos estudios de imagen debo hacer para establecer un diagnóstico en pato...
¿Cuantos estudios de imagen debo hacer para establecer un diagnóstico en pato...Gaspar Alberto Motta Ramírez
 
7 barriers to organizational learning
7 barriers to organizational learning7 barriers to organizational learning
7 barriers to organizational learning786haseeb
 
Team Lecture on Blog
Team Lecture on BlogTeam Lecture on Blog
Team Lecture on Blogmcleanq
 
O Planejamento Estratégico no Estado de São Paulo
O Planejamento Estratégico no Estado de São PauloO Planejamento Estratégico no Estado de São Paulo
O Planejamento Estratégico no Estado de São PauloCogepp CEPAM
 
Dan alle zes tv's de deur uit
Dan alle zes tv's de deur uitDan alle zes tv's de deur uit
Dan alle zes tv's de deur uitKim Noach
 
MEDICALPAPERS-2007[1]-peoplehelping
MEDICALPAPERS-2007[1]-peoplehelpingMEDICALPAPERS-2007[1]-peoplehelping
MEDICALPAPERS-2007[1]-peoplehelpingMark Bizzelle
 
Social media in advertising & marketing
Social media in advertising & marketingSocial media in advertising & marketing
Social media in advertising & marketinggfrancoleone_7
 
Petex 2016 Future Working Zone
Petex 2016 Future Working ZonePetex 2016 Future Working Zone
Petex 2016 Future Working ZoneAndrew Zolnai
 
A Logistica Paulista e sua Importancia para o Desenvolvimento Regional
A Logistica Paulista e sua Importancia para o Desenvolvimento RegionalA Logistica Paulista e sua Importancia para o Desenvolvimento Regional
A Logistica Paulista e sua Importancia para o Desenvolvimento RegionalCogepp CEPAM
 
Wikihow: How to make spaghetti
Wikihow:  How to make spaghettiWikihow:  How to make spaghetti
Wikihow: How to make spaghettiSarah Pearson
 
Retos en la comunicación humana para el médico radiólogo
Retos en la comunicación humana para el médico radiólogoRetos en la comunicación humana para el médico radiólogo
Retos en la comunicación humana para el médico radiólogoGaspar Alberto Motta Ramírez
 
9 Cool Study Tools for Savvy Students
9 Cool Study Tools for Savvy Students9 Cool Study Tools for Savvy Students
9 Cool Study Tools for Savvy StudentsTony Sapienza (LION)
 

Viewers also liked (19)

¿Cuantos estudios de imagen debo hacer para establecer un diagnóstico en pato...
¿Cuantos estudios de imagen debo hacer para establecer un diagnóstico en pato...¿Cuantos estudios de imagen debo hacer para establecer un diagnóstico en pato...
¿Cuantos estudios de imagen debo hacer para establecer un diagnóstico en pato...
 
Sua foto
Sua fotoSua foto
Sua foto
 
7 barriers to organizational learning
7 barriers to organizational learning7 barriers to organizational learning
7 barriers to organizational learning
 
Team Lecture on Blog
Team Lecture on BlogTeam Lecture on Blog
Team Lecture on Blog
 
O Planejamento Estratégico no Estado de São Paulo
O Planejamento Estratégico no Estado de São PauloO Planejamento Estratégico no Estado de São Paulo
O Planejamento Estratégico no Estado de São Paulo
 
Dan alle zes tv's de deur uit
Dan alle zes tv's de deur uitDan alle zes tv's de deur uit
Dan alle zes tv's de deur uit
 
MEDICALPAPERS-2007[1]-peoplehelping
MEDICALPAPERS-2007[1]-peoplehelpingMEDICALPAPERS-2007[1]-peoplehelping
MEDICALPAPERS-2007[1]-peoplehelping
 
WIMPIE CV FOR ABROAD.
WIMPIE CV FOR ABROAD.WIMPIE CV FOR ABROAD.
WIMPIE CV FOR ABROAD.
 
Social media in advertising & marketing
Social media in advertising & marketingSocial media in advertising & marketing
Social media in advertising & marketing
 
Petex 2016 Future Working Zone
Petex 2016 Future Working ZonePetex 2016 Future Working Zone
Petex 2016 Future Working Zone
 
SMRI CNMERI 9 de Noviembre del 2015
SMRI CNMERI 9 de Noviembre del 2015SMRI CNMERI 9 de Noviembre del 2015
SMRI CNMERI 9 de Noviembre del 2015
 
Ecg case
Ecg caseEcg case
Ecg case
 
A Logistica Paulista e sua Importancia para o Desenvolvimento Regional
A Logistica Paulista e sua Importancia para o Desenvolvimento RegionalA Logistica Paulista e sua Importancia para o Desenvolvimento Regional
A Logistica Paulista e sua Importancia para o Desenvolvimento Regional
 
Wikihow: How to make spaghetti
Wikihow:  How to make spaghettiWikihow:  How to make spaghetti
Wikihow: How to make spaghetti
 
SINDROME DE OBSTRUCCION INTESTINAL
SINDROME DE OBSTRUCCION INTESTINALSINDROME DE OBSTRUCCION INTESTINAL
SINDROME DE OBSTRUCCION INTESTINAL
 
Health sector with INFIFLYER
Health sector with INFIFLYER Health sector with INFIFLYER
Health sector with INFIFLYER
 
Retos en la comunicación humana para el médico radiólogo
Retos en la comunicación humana para el médico radiólogoRetos en la comunicación humana para el médico radiólogo
Retos en la comunicación humana para el médico radiólogo
 
Procesos neoplásicos primarios múltiples
Procesos neoplásicos primarios múltiples Procesos neoplásicos primarios múltiples
Procesos neoplásicos primarios múltiples
 
9 Cool Study Tools for Savvy Students
9 Cool Study Tools for Savvy Students9 Cool Study Tools for Savvy Students
9 Cool Study Tools for Savvy Students
 

Similar to MOPWA077

An optical satellite tracking system for undergraduate research bruski, jon...
An optical satellite tracking system for undergraduate research   bruski, jon...An optical satellite tracking system for undergraduate research   bruski, jon...
An optical satellite tracking system for undergraduate research bruski, jon...Srinivas Naidu
 
AUTO LANDING PROCESS FOR AUTONOMOUS FLYING ROBOT BY USING IMAGE PROCESSING BA...
AUTO LANDING PROCESS FOR AUTONOMOUS FLYING ROBOT BY USING IMAGE PROCESSING BA...AUTO LANDING PROCESS FOR AUTONOMOUS FLYING ROBOT BY USING IMAGE PROCESSING BA...
AUTO LANDING PROCESS FOR AUTONOMOUS FLYING ROBOT BY USING IMAGE PROCESSING BA...csandit
 
A VLSI Architecture Realisation of an Wireless Endoscopy System
A VLSI Architecture Realisation of an Wireless Endoscopy SystemA VLSI Architecture Realisation of an Wireless Endoscopy System
A VLSI Architecture Realisation of an Wireless Endoscopy Systemijesajournal
 
Device to evaluate cleanliness of fiber optic connectors using image processi...
Device to evaluate cleanliness of fiber optic connectors using image processi...Device to evaluate cleanliness of fiber optic connectors using image processi...
Device to evaluate cleanliness of fiber optic connectors using image processi...IJECEIAES
 
Multimodel Operation for Visually1.docx
Multimodel Operation for Visually1.docxMultimodel Operation for Visually1.docx
Multimodel Operation for Visually1.docxAROCKIAJAYAIECW
 
Novel-design-Panoramic-camera-by dr MONIKA
Novel-design-Panoramic-camera-by dr MONIKANovel-design-Panoramic-camera-by dr MONIKA
Novel-design-Panoramic-camera-by dr MONIKADevarshi Bajpai
 
IRJET - Wavelet based Image Fusion using FPGA for Biomedical Application
 IRJET - Wavelet based Image Fusion using FPGA for Biomedical Application IRJET - Wavelet based Image Fusion using FPGA for Biomedical Application
IRJET - Wavelet based Image Fusion using FPGA for Biomedical ApplicationIRJET Journal
 
IRJET- Intrusion Detection through Image Processing and Getting Notified ...
IRJET-  	  Intrusion Detection through Image Processing and Getting Notified ...IRJET-  	  Intrusion Detection through Image Processing and Getting Notified ...
IRJET- Intrusion Detection through Image Processing and Getting Notified ...IRJET Journal
 
Visual pattern recognition in robotics
Visual pattern recognition in roboticsVisual pattern recognition in robotics
Visual pattern recognition in roboticsIAEME Publication
 
Kassem2009
Kassem2009Kassem2009
Kassem2009lazchi
 
Design and Analysis CMOS Image Sensor
Design and Analysis CMOS Image SensorDesign and Analysis CMOS Image Sensor
Design and Analysis CMOS Image Sensorinventionjournals
 
Visual Mapping and Collision Avoidance Dynamic Environments in Dynamic Enviro...
Visual Mapping and Collision Avoidance Dynamic Environments in Dynamic Enviro...Visual Mapping and Collision Avoidance Dynamic Environments in Dynamic Enviro...
Visual Mapping and Collision Avoidance Dynamic Environments in Dynamic Enviro...Darius Burschka
 
Folza_paper_mechatronics
Folza_paper_mechatronicsFolza_paper_mechatronics
Folza_paper_mechatronicsAlex Folz
 
Unit 3 machine vision
Unit 3 machine vision Unit 3 machine vision
Unit 3 machine vision rknatarajan
 
Robot Machine Vision
Robot Machine VisionRobot Machine Vision
Robot Machine Visionanand hd
 

Similar to MOPWA077 (20)

2007-_01-3912
2007-_01-39122007-_01-3912
2007-_01-3912
 
INCAST_2008-014__2_
INCAST_2008-014__2_INCAST_2008-014__2_
INCAST_2008-014__2_
 
TUPPC055_Final
TUPPC055_FinalTUPPC055_Final
TUPPC055_Final
 
An optical satellite tracking system for undergraduate research bruski, jon...
An optical satellite tracking system for undergraduate research   bruski, jon...An optical satellite tracking system for undergraduate research   bruski, jon...
An optical satellite tracking system for undergraduate research bruski, jon...
 
AUTO LANDING PROCESS FOR AUTONOMOUS FLYING ROBOT BY USING IMAGE PROCESSING BA...
AUTO LANDING PROCESS FOR AUTONOMOUS FLYING ROBOT BY USING IMAGE PROCESSING BA...AUTO LANDING PROCESS FOR AUTONOMOUS FLYING ROBOT BY USING IMAGE PROCESSING BA...
AUTO LANDING PROCESS FOR AUTONOMOUS FLYING ROBOT BY USING IMAGE PROCESSING BA...
 
A VLSI Architecture Realisation of an Wireless Endoscopy System
A VLSI Architecture Realisation of an Wireless Endoscopy SystemA VLSI Architecture Realisation of an Wireless Endoscopy System
A VLSI Architecture Realisation of an Wireless Endoscopy System
 
Device to evaluate cleanliness of fiber optic connectors using image processi...
Device to evaluate cleanliness of fiber optic connectors using image processi...Device to evaluate cleanliness of fiber optic connectors using image processi...
Device to evaluate cleanliness of fiber optic connectors using image processi...
 
Multimodel Operation for Visually1.docx
Multimodel Operation for Visually1.docxMultimodel Operation for Visually1.docx
Multimodel Operation for Visually1.docx
 
Novel-design-Panoramic-camera-by dr MONIKA
Novel-design-Panoramic-camera-by dr MONIKANovel-design-Panoramic-camera-by dr MONIKA
Novel-design-Panoramic-camera-by dr MONIKA
 
IRJET - Wavelet based Image Fusion using FPGA for Biomedical Application
 IRJET - Wavelet based Image Fusion using FPGA for Biomedical Application IRJET - Wavelet based Image Fusion using FPGA for Biomedical Application
IRJET - Wavelet based Image Fusion using FPGA for Biomedical Application
 
IRJET- Intrusion Detection through Image Processing and Getting Notified ...
IRJET-  	  Intrusion Detection through Image Processing and Getting Notified ...IRJET-  	  Intrusion Detection through Image Processing and Getting Notified ...
IRJET- Intrusion Detection through Image Processing and Getting Notified ...
 
Visual pattern recognition in robotics
Visual pattern recognition in roboticsVisual pattern recognition in robotics
Visual pattern recognition in robotics
 
Kassem2009
Kassem2009Kassem2009
Kassem2009
 
Design and Analysis CMOS Image Sensor
Design and Analysis CMOS Image SensorDesign and Analysis CMOS Image Sensor
Design and Analysis CMOS Image Sensor
 
Visual Mapping and Collision Avoidance Dynamic Environments in Dynamic Enviro...
Visual Mapping and Collision Avoidance Dynamic Environments in Dynamic Enviro...Visual Mapping and Collision Avoidance Dynamic Environments in Dynamic Enviro...
Visual Mapping and Collision Avoidance Dynamic Environments in Dynamic Enviro...
 
Folza_paper_mechatronics
Folza_paper_mechatronicsFolza_paper_mechatronics
Folza_paper_mechatronics
 
Unit 3 machine vision
Unit 3 machine vision Unit 3 machine vision
Unit 3 machine vision
 
Unit 3 machine vision
Unit 3 machine vision Unit 3 machine vision
Unit 3 machine vision
 
Computer Graphics
Computer GraphicsComputer Graphics
Computer Graphics
 
Robot Machine Vision
Robot Machine VisionRobot Machine Vision
Robot Machine Vision
 

MOPWA077

  • 1. EPICS, MATLAB, GigE CCD CAMERA BASED BEAM IMAGING SYSTEM FOR THE IAC-RadiaBeam THz PROJECT Chris Eckman∗ , Y. Kim, A. Andrews, T. Downer, and P. Buaphad Idaho State University, Pocatello, ID 83209, USA Abstract At the Idaho Accelerator Center (IAC) of Idaho State University (ISU), we have been operating an L-band RF linear accelerator running at low energies (4 - 44 MeV) for the IAC-RadiaBeam THz project [1]. We have designed and implemented a beam image acquisition and analysis system that can be used for real time observation of the electron beam, tuning of THz radiation production, and measurement of transverse beam emittance. In this paper, we describe the components of the imaging system, the ac- quisition of real time beam images, the remote acquisition of single shot beam images, and the processing of the beam images in MATLAB to measure beam size and transverse beam emittance. INTRODUCTION Due to a 1.2 mm wide slit at the entrance of the THz radiator, experiments for the IAC-RadiaBeam THz project require the implementation of an optics system to control the beam shape for obtaining optimal beam transmission. To accomplish this, the ISU Advanced Accelerator and Ul- trafast beam Lab (AAUL) has developed an advanced beam imaging system that acquires real time beam images as well as single shot beam images. Real time beam imag- ing is achieved through use of the software application, SampleViewer in conjunction with the beam imaging sys- tem. Single shot beam images can be acquired remotely using Experimental Physics and Industrial Control System (EPICS), MATLAB, and the EPICS modules: areaDetector and MATLAB Channel Access (MCA). The beam imaging system, taking single shot beam images, allows for measur- ing beam size as well as transverse beam emittance. THE IMAGING SYSTEM The components of the beam imaging system are as fol- lows: an Yttrium Aluminium Garnet (YAG) screen on an actuator, a Prosilica GC1290 GigE CCD camera with a mounted adjustable Fujinon HF50SA-1 lens, a screen LED illuminator, and optics table to mount the optics cage. The optics cage is assembled with components, manufactured by Thorlabs [2], listed in Table 1. The essentials compo- nents of the beam imaging system can be seen in Fig. 1. The light generated from the interaction of the beam on the ∗ cryptoscientia@gmail.com YAG screen can be observed through a crystal window sit- uated adjacent to the YAG screen. Figure 1: Set-up of the beam imaging system. A small brightness-adjustable LED was mounted on the end of the optics cage to illuminate the YAG screen and ease in the alignment and calibration of the camera. Light picked up by the camera from sources anywhere other than the YAG screen increases the background noise on each image, thus a black covering was draped around the optics cage to shield the camera from all other light. The proxim- ity of the camera to the accelerator poses risk of radiation damage to the camera sensor, thus the camera was placed inside a lead tube, shielding it from the radiation. For extra protection, the optics cage was practically surrounded by lead bricks. PROSILICA CAMERA Beam parameter measurements rely heavily on image quality. The quality of the image is affected by the dis- tance between the camera and the YAG screen, electronic interference, broken pixels in the camera sensor, and ex- poser time. The Prosilica GC1290 GigE CCD camera was chosen for the beam imaging system for its high resolution
  • 2. Table 1: Main components purchased through Thorlabs for the imaging cage set-up Image Description Part Number QTY Threaded cage plate LCP01T 4 Cage assembly rod ER18 4 Steel optical post TR4 2 Post holder PH4 2 Mounting base BA2T2 2 and image quality as summerised in Table 2. The Fujinon HF50SA-1 lens is focused on the YAG screen for optimal viewing and imaging, the camera and lens as shown in the bottom right of Fig. 2. The Fujinon lens allows for efficient focusing and adjusting of the equipment. Table 2: Main specifications on the Prosilica GigE CCD Camera and the Fujinon HF50SA-1 lens Parameter Value or Type Interface GigE Resolution 1280 × 960 Sensor size Type 1/3 Cell size 3.75 µm Max frame rate at full resolution 32 fps Lens focal length 50 mm Lens minimum field of view 38 mm × 28 mm The Prosilica camera has a trigger input port that re- ceives an external trigger signal from the timing system of the accelerator. The external trigger signal was added to the power cable and fed into the trigger input port of the camera. The power cable for the camera had to be physi- cally modified to add the triggering signal. Triggering the camera off of the timing system of the accelerator allows the synchronization of the camera and the beam so that the images taken are accurate depictions of the actual beam. The CCD camera features a Gigabit Ethernet interface used for transmitting beam images on the local area network to a dedicated Linux computer system running EPICS where the data is stored and processed. The EPICS host allows for remote control of the camera via the EPICS module areaD- etector. SAMPLEVIEWER SampleViewer is a free software application for the GigE CCD camera distributed by Prosilica. It has a user friendly interface that incorporates the cameras internet connection to run several diagnostics on the CCD camera as well as acquire real time beam images as shown in Fig. 2. The di- agnostics that can be performed include: checking image quality, camera alignment, camera triggering, image gain, and image exposure time. To put the CCD camera on the network, the Ethernet adapter of the computer needed to be configured to improve system performance when using the GigE CCD camera [3]. The configurations included the packet size (MTU of 8228), interrupt moderate rate, trans- mit buffers, and receive buffers. The camera also uses a companion program, IPConfig, to change the dynamically allocated IP address of the camera to a static IP address allowing it to be used in EPICS. Figure 2: Contorl panels of SampleViewer, a beam image, and the Prosilica GC1290 camera with Fujinon lens. EPICS AND AREADETECTOR To more precisely control the CCD camera and extract data from the images, a programmable method was em- ployed. EPICS provides a platform that allows for camera control in an accelerator system [4]. EPICS also provides a Graphic User Interface (GUI) for user interaction when needed, such as the main areaDetector GUI as shown in Fig. 3. Each button and input box on the GUI has an asso- ciated Process Variable (PV). PVs are named pieces of data associated with a machine, things like status, readback and physical parameters. Images are taken by the CCD camera using “Start” button in areaDetector GUI panel. The PV as- sociated with that button is named “13PS1:cam1:Acquire”. All PVs in areaDetector can be controlled in MATLAB through MCA. MATLAB CHANNEL ACCESS MCA creates a channel from MATLAB to EPICS, this link allows for communication between the two different programs [5]. With MCA, we are able to send information
  • 3. Figure 3: Main GUI screen of areaDetector. in the form of PVs between EPICS and MATLAB by means of the channel access, thus the accelerator can be controlled with MATLAB directly. MCA is an extension of EPICS that can be downloaded and installed in both EPICS and MATLAB. When installed properly, code can be entered into MATLAB to control equipment in EPICS. The MCA code MCAOPEN, MCAGET, and MCAPUT allow MATLAB to open a channel to EPICS, to read information from EPICS, and to write information to PVs. An example of the MCA and MATLAB code is as follows: CameraAcquire=MCAOPEN(’13PS1:cam1:Acquire’); AcquireData=MCAGET(CameraAcquire); MCAPUT(CameraAcquire,1); MCACLOSE(CameraAcquire); MCAGET retrieves the status of the PV associated with the camera shutter. If the CameraAcquire is 0, then the camera shutter is closed. However if the CameraAc- quire is 1, then the shutter is open, and the camera starts taking images. MCAPUT writes values into the PV, such as 1 or 0, and MCACLOSE closes the channel of the PVs. These images are then transferred to the hard drive to be saved in a designated file path, which is also a PV. These MCA commands are used in MATLAB to control all aspects of the camera as well as other equipment such as power supplies [4]. Once an image is in MATLAB it can be processed to remove background, plot projections, filter the image, and extract data for parameter measurement. Fig. 4 (left) shows a background subtracted and color enhanced version of the image in Fig. 2. The image to the right is used by an automatic emittance measurement program running in MATLAB and shows the horizontal and vertical projections on the image directly [6]. Figure 4: MATLAB processed beam images. SUMMARY The beam imaging system is useful for many accelera- tor applications and beam parameter measurements. The single shot beam images were taken by the Prosilica GigE CCD camera using MATLAB in conjunction with areaD- etector. The beam images were transferred from the cam- era to MATLAB. In MATLAB the beam images were ana- lyzed and the relevant data extracted. The combination of MATLAB and EPICS allows for the control of accelerator equipment, access to higher level programming, and auto- matic beam parameter measurements, such as beam size and transverse beam emittance. The beam imaging system was used to optimize the production of THz radiation at the IAC [7,8]. ACKNOWLEDGEMENTS We would also like to give our sincere thanks to Dr. Mark Rivers of APS for his advice and guidance on AreaD- etector and MCA. In addition, we would like to thank Dr. Henrik Loos of SLAC for his strong interest, advice and encouragement in this project. REFERENCES [1] http://www.iac.isu.edu [2] http://www.thorlabs.us/index.cfm [3] http://www.alliedvisiontec.com/us/products/cameras/gigabit- ethernet/prosilica-gc/gc1290.html [4] A. Andrews et al.., in these proceedings. [5] A. Terebilo et al.., in Proc. ICALEPCS2001, THAP030, San Jose, CA, USA. [6] C. Eckman et al.., in Proc. IPAC2012, TUPPC055,New Or- leans,LA [7] Y. Kim et al.., in these proceedings. [8] A. V. Smirnov et al.., in these proceedings.