Progress of Software Development for Medipix-2

Download Report

Transcript Progress of Software Development for Medipix-2

Pixelman – Data Acquisition and
Processing Software Package for Medipix2
Tomáš Holý, Jan Jakůbek, Stanislav Pospíšil
23rd November, 2005
Tomáš Holý
IEAP CTU Prague
Institute of Experimental and Applied Physics
Czech Technical University in Prague
Outline
Medipix2 device
Pixelman architecture
Experimental setup
Examples of micro-tomography measurements
23rd November, 2005
Tomáš Holý
IEAP CTU Prague
Institute of Experimental and Applied Physics
Czech Technical University in Prague
Medipix2
256x256 pixels, 55x55 μm2 each
Each pixel contains two
discriminators, two 3-bit
thresholds adjustments and a
13-bit pseudorandom counter
very good spatial resolution and
unlimited dynamic range
23rd November, 2005
Tomáš Holý
IEAP CTU Prague
Institute of Experimental and Applied Physics
Czech Technical University in Prague
Pixelman Architecture
Muros + NI card
USB
Muros HW library (MpxHw.dll)
USB HW library, …
Control library (MpxCtrl.dll)
Dummy HW library, …
User application
Plugins
Manager
(MpxManager.dll)
Acquisition control UI (MpxCtrlUI.dll)
Medipix2 diagnostics and optimization - threshold scans,
equalization, DAC calibration (ThsEqualization.dll)
Medipix Loader (MpxLoader.exe)
Filters, corrections – flat field correction, bh correction
Other hardware control – stepper motors, source control
Client system
23rd November, 2005
Remote access server plugin
Tomáš Holý
IEAP CTU Prague
Institute of Experimental and Applied Physics
Czech Technical University in Prague
Pixelman Architecture
Muros + NI card
Muros HW library (MpxHw.dll)
Control library (MpxCtrl.dll)
Manager
(MpxManager.dll)
Medipix Loader (MpxLoader.exe)
Exclusive access to HW
USB
Hardware detection and
diagnostics
USB HW library, …
Dummy HW library, …
Exports set of basic functions for
hardware independent access to
User application
Medipix
Plugins to HW specific
Generalized access
Acquisition control UI (MpxCtrlUI.dll)
data/settings
Single
threaded
Medipix2 diagnostics
and optimization - threshold scans,
equalization, DAC calibration (ThsEqualization.dll)
Implementation in C
Filters, corrections – flat field correction, bh correction
Other hardware control – stepper motors, source control
Client system
23rd November, 2005
Remote access server plugin
Tomáš Holý
IEAP CTU Prague
Institute of Experimental and Applied Physics
Czech Technical University in Prague
Pixelman Architecture
Muros + NI card
Muros HW library (MpxHw.dll)
Control library (MpxCtrl.dll)
Manager
(MpxManager.dll)
Medipix Loader (MpxLoader.exe)
Client system
23rd November, 2005
Hardware independent access to
USB
“unlimited”
number of Medipix2
Auto-initialization Dummy
and per-chip
USB HW library, …
HW library, …
configuration handling
Settings management
User application
Multiple acquisition handling
(custom size Plugins
stream/frame buffer,
control
UI (MpxCtrlUI.dll)buffer
integralAcquisition
buffer,
thread-level
synchronization)
Medipix2 diagnostics and optimization - threshold scans,
equalization,
DAC calibration
(ThsEqualization.dll)
Event
notification
through
callback
function
registration
Filters, corrections – flat field correction, bh correction
Implemented in C++, limited
Other hardware
– stepperdependent
motors, source control
number
ofcontrol
platform
calls,
no MFC Remote access server plugin
Tomáš Holý
IEAP CTU Prague
Institute of Experimental and Applied Physics
Czech Technical University in Prague
Pixelman Architecture
Muros + NI card
Muros HW library (MpxHw.dll)
Control library (MpxCtrl.dll)
Manager
(MpxManager.dll)
Medipix Loader (MpxLoader.exe)
Plugin management (plugin
USB
registration,
initialization, …)
Maintains public register of
functions,
filterHW
chains,…
USB
HW library, … events,Dummy
library, …
Provides access to MpxCtrl library,
Windows messages (for convenient
application
MFCUser
plugins
usage), tray menu
Provides communication between
Plugins
plugins
Acquisition control UI (MpxCtrlUI.dll)
Implemented
in C++
Load-time
dynamic
linking
of scans,
Medipix2 diagnostics
and optimization
- threshold
equalization, DAC calibration (ThsEqualization.dll)
MpxCtrl.dll
Run-time dynamic linking of
Filters, corrections
– flat field correction, bh correction
registered
plugins
Other hardware control – stepper motors, source control
Client system
23rd November, 2005
Remote access server plugin
Tomáš Holý
IEAP CTU Prague
Institute of Experimental and Applied Physics
Czech Technical University in Prague
Pixelman Architecture
Muros + NI card
USB
Muros HW library (MpxHw.dll)
USB HW library, …
Control library (MpxCtrl.dll)
Dummy HW library, …
User application
Plugins
Manager
(MpxManager.dll)
Medipix Loader (MpxLoader.exe)
Client system
23rd November, 2005
Acquisition
control initialization
UI (MpxCtrlUI.dll)
Medipix
Manager
Tray
menu
building
Medipix2
diagnostics
and optimization - threshold scans,
equalization, DAC calibration (ThsEqualization.dll)
Forwards all incoming Win
messages
to Medipix Manager
Filters, corrections – flat field correction, bh correction
Load-time dynamic linking of
Other hardware control – stepper motors, source control
MpxManager.dll
Remote access
server plugin
Implemented
in C++,
MFC
Tomáš Holý
IEAP CTU Prague
Institute of Experimental and Applied Physics
Czech Technical University in Prague
Pixelman Architecture
Muros + NI card
User interface, data
Muros HW library (MpxHw.dll)
visualization, experiment
specific plugins (experiment
control,
data
processing)
Control
library
(MpxCtrl.dll)
Access through Manager to
the Control library functions
Manager
or a functions
offered by
(MpxManager.dll)
other plugins
Each plugin can add its own
functions or call any already
Medipix Loader (MpxLoader.exe)
registered function. The
plugins can also define new
events or can be notified
when an existing
event
Client system
occurs
23rd November, 2005
USB
USB HW library, …
Dummy HW library, …
User application
Plugins
Acquisition control UI (MpxCtrlUI.dll)
Medipix2 diagnostics and optimization - threshold scans,
equalization, DAC calibration (ThsEqualization.dll)
Filters, corrections – flat field correction, bh correction
Other hardware control – stepper motors, source control
Remote access server plugin
Tomáš Holý
IEAP CTU Prague
Institute of Experimental and Applied Physics
Czech Technical University in Prague
Pixelman Architecture
Muros + NI card
USB
Muros HW library (MpxHw.dll)
USB HW library, …
Control library (MpxCtrl.dll)
Dummy HW library, …
User application
Plugins
Manager
(MpxManager.dll)
Acquisition control UI (MpxCtrlUI.dll)
Medipix2 diagnostics and optimization - threshold scans,
equalization, DAC calibration (ThsEqualization.dll)
Medipix Loader (MpxLoader.exe)
Filters, corrections – flat field correction, bh correction
Other hardware control – stepper motors, source control
Client system
23rd November, 2005
Remote access server plugin
Tomáš Holý
IEAP CTU Prague
Institute of Experimental and Applied Physics
Czech Technical University in Prague
Complex measurement
23rd November, 2005
Tomáš Holý
IEAP CTU Prague
Institute of Experimental and Applied Physics
Czech Technical University in Prague
Experimental setup
Two carousel wheels
(121 combinations)
Hamamatsu
microfocus X-ray tube
Water cooling system
Sample stand
23rd November, 2005
Tomáš Holý
IEAP CTU Prague
Institute of Experimental and Applied Physics
Czech Technical University in Prague
Beam hardening correction filter
Suppression of beam hardening effect
Correction by calibration of each pixel response to equivalent
absorber thickness
23rd November, 2005
Tomáš Holý
IEAP CTU Prague
Institute of Experimental and Applied Physics
Czech Technical University in Prague
Beam hardening correction filter
23rd November, 2005
Tomáš Holý
IEAP CTU Prague
Institute of Experimental and Applied Physics
Czech Technical University in Prague
Micro-tomography measurement
180 projections
10s each
23rd November, 2005
Tomáš Holý
IEAP CTU Prague
Institute of Experimental and Applied Physics
Czech Technical University in Prague
Termite micro-tomography
360 projections
20s each
23rd November, 2005
Tomáš Holý
IEAP CTU Prague
Institute of Experimental and Applied Physics
Czech Technical University in Prague
3D reconstruction
23rd November, 2005
Tomáš Holý
IEAP CTU Prague