A complete DIY numerical shaper… … from scratch! instrumentation examples1 What do we need? The signal digitized at the output of a Charge Sensing Preamp.

Slides:



Advertisements
Similar presentations
Design of Digital IIR Filter
Advertisements

| Page Angelo Farina UNIPR | All Rights Reserved | Confidential Digital sound processing Convolution Digital Filters FFT.
DCSP-14 Jianfeng Feng Department of Computer Science Warwick Univ., UK
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: The Linear Prediction Model The Autocorrelation Method Levinson and Durbin.
Digital Filters. Filters Filters shape the frequency spectrum of a sound signal. Filters shape the frequency spectrum of a sound signal. –Filters generally.
CY3A2 System identification Modelling Elvis Impersonators Fresh evidence that pop stars are more popular dead than alive. The University of Missouri’s.
Chapter 13 MIMs - Mobile Immobile Models. Consider the Following Case You have two connected domains that can exchange mass
So far We have introduced the Z transform
Digital signal processing -G Ravi kishore. INTRODUCTION The goal of DSP is usually to measure, filter and/or compress continuous real-world analog signals.
1 The Mathematics of Voting
AMI 4622 Digital Signal Processing
Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms.
Infinite Horizon Problems
FILTERING GG313 Lecture 27 December 1, A FILTER is a device or function that allows certain material to pass through it while not others. In electronics.
Adaptive FIR Filter Algorithms D.K. Wise ECEN4002/5002 DSP Laboratory Spring 2003.
APPLICATIONS OF DIFFERENTIATION 4. In Sections 2.2 and 2.4, we investigated infinite limits and vertical asymptotes.  There, we let x approach a number.
Digital Signals and Systems
Discrete-Time and System (A Review)
GG 313 Lecture 26 11/29/05 Sampling Theorem Transfer Functions.
CMSC 202 Exceptions. Aug 7, Error Handling In the ideal world, all errors would occur when your code is compiled. That won’t happen. Errors which.
Copyright © 1997 Altera Corporation 9/12/97 Asynchronous vs Synchronous Circuit Design Danny Mok Altera HK FAE
LIMITS AND DERIVATIVES 2. In Sections 2.2 and 2.4, we investigated infinite limits and vertical asymptotes.  There, we let x approach a number.  The.
UNIT-5 Filter Designing. INTRODUCTION The Digital filters are discrete time systems used mainly for filtering of arrays. The array or sequence are obtained.
IIR Filter design (cf. Shenoi, 2006) The transfer function of the IIR filter is given by Its frequency responses are (where w is the normalized frequency.
Digitization When data acquisition hardware receives an analog signal it converts it to a voltage. An A/D (analog-to-digital) converter then digitizes.
Digital Filters. Filters Filters shape the frequency spectrum of a sound signal. –Filters generally do not add frequency components to a signal that are.
DISP 2003 Lecture 6 – Part 2 Digital Filters 4 Coefficient quantization Zero input limit cycle How about using float? Philippe Baudrenghien, AB-RF.
1 Linear Prediction. Outline Windowing LPC Introduction to Vocoders Excitation modeling  Pitch Detection.
Clicker Question 1 What is the volume of the solid formed when the curve y = 1 / x on the interval [1, 5] is revolved around the x-axis? – A.  ln(5) –
Equalisation.
Instructor: Evgeniy Kuksin Preformed by: Ziv Landesberg Duration: 1 semester.
University of Kansas 2004 ITTC Summer Lecture Series Network Analyzer Operation John Paden.
Bavarian Forest, Bavarian Forest, 24 April 2009 D. Alberto Signal Processing for Nuclear Detectors, Bavarian Forest, 24 April 2009 Dipartimento di Fisica.
Quiz 1 Review. Analog Synthesis Overview Sound is created by controlling electrical current within synthesizer, and amplifying result. Basic components:
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 20:Spectral Filtering Ken Greenebaum.
Charges Sensing Preamplifier & noise instrumentation examples1 A little example of noise measurement in time domain and frequency domain I acquired noise.
Electrons capture in the air instrumentation examples1 The subject: Medical Ionization Chambers are air filled ICs In the air, electrons are captured by.
Sorting: Implementation Fundamental Data Structures and Algorithms Klaus Sutner February 24, 2004.
This is an example of an infinite series. 1 1 Start with a square one unit by one unit: This series converges (approaches a limiting value.) Many series.
EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department.
N/  discrimination instrumentation examples1 The problem… Particles beam Active taget Scintillator neutron  activation decay time Concrete wall activation.
Clicker Question 1 What is the volume of the solid formed when the curve y = 1 / x on the interval [1, 5] is revolved around the x-axis? – A.  ln(5) –
1/32 This Lecture Substitution model An example using the substitution model Designing recursive procedures Designing iterative procedures Proving that.
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Normal Equations The Orthogonality Principle Solution of the Normal Equations.
Course Outline (Tentative) Fundamental Concepts of Signals and Systems Signals Systems Linear Time-Invariant (LTI) Systems Convolution integral and sum.
Linear Constant-Coefficient Difference Equations
Nov '03csDSP61 CS3291: Section 6 IIR discrete time filter design Introduction: Many design techniques for IIR discrete time filters have adopted ideas.
How to easily simulate a photodetector response ? instrumentation examples1 It’s easy, in fact… it is a hierarchical problem related to Markov chains.
Chapter 6 Discrete-Time System. 2/90  Operation of discrete time system 1. Discrete time system where and are multiplier D is delay element Fig. 6-1.
DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien,
Linear Prediction.
Instructor: Evgeniy Kuksin Preformed by: Ziv Landesberg Duration: 1 semester.
Digital Signal Processing Lecture 6 Frequency Selective Filters
What is filter ? A filter is a circuit that passes certain frequencies and rejects all others. The passband is the range of frequencies allowed through.
Real-time Digital Signal Processing Digital Filters.
IIR Filter design (cf. Shenoi, 2006)
Linear Constant-Coefficient Difference Equations
A Digital Pulse Processing System Dedicated to CdZnTe Detectors
Discrete-time Systems
Image Analysis Image Restoration.
Quick Review of LTI Systems
لجنة الهندسة الكهربائية
The sampling of continuous-time signals is an important topic
The Z-Transform of a given discrete signal, x(n), is given by:
Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms.
z Transform Signal and System Analysis
Chapter 6 Discrete-Time System
Linear Prediction.
8.7 Gated Integration instrument description
8.6 Autocorrelation instrument, mathematical definition, and properties autocorrelation and Fourier transforms cosine and sine waves sum of cosines Johnson.
Presentation transcript:

A complete DIY numerical shaper… … from scratch! instrumentation examples1 What do we need? The signal digitized at the output of a Charge Sensing Preamp.  I did it for you. Numerical filters.  You will do it !!! A digital oscilloscope.  I did it for you. A digital data acquisition system.  I did it for you.

A complete DIY numerical shaper… … from scratch! instrumentation examples2 The signal we have to process : We get consecutive samples Ts=10ns […, 0, 0, 0, 0.12, 0.12, 0.12, …] + noise !

A complete DIY numerical shaper… … from scratch! instrumentation examples3 Let’s build a digital filter : Output at time nIs a linear combination of input at times n-i Filter coefficients This is a Finite Impulse Response (FIR) filter

A complete DIY numerical shaper… … from scratch! instrumentation examples4 You already KNOW some FIRs : This one is averaging input signal over N samples And this one takes the derivative of the input signal

A complete DIY numerical shaper… … from scratch! instrumentation examples5 Let’s build another kind of digital filter : Output at time nIs a combination of input at times n-i This is an Infinite Impulse Response (IIR) filter …also known as Recursive Filter + output at times n-i When rounding numbers, IIR are sometimes less stable than FIR, but if carefully designed, it’s not a problem!

A complete DIY numerical shaper… … from scratch! instrumentation examples6 And you already KNOW, at least, one IIR : This filter compute the integral of the input signal

A complete DIY numerical shaper… … from scratch! instrumentation examples7 In nuclear instrumentation system design, we usually know : The input in the time domain  Cf Ramo & Co The transfer function of the system In order to compute the output For instance :

A complete DIY numerical shaper… … from scratch! instrumentation examples8 And now, the magic: Let’s take a filter, an easy one: Make the substitution : We got what we call an Auto-Regressive Moving Average (ARMA) model. That’s all we need to do!!! R will do the rest for us… in fact, it’s not difficult, but it’s easier & faster to use R

A complete DIY numerical shaper… … from scratch! instrumentation examples9 the trick explained: We just have to write : …to get : …and, every time we see : we replace by : …thus: …then rearrange: It’s crazy, right?

A complete DIY numerical shaper… … from scratch! instrumentation examples10 And now, it’s up to YOU…  You will make a numerical CR-RC4 shaper: In its simpler version, it is something like that: One HP filter……followed by 4 LP filters Input (preamp) output Adjustable Shaping Time

A complete DIY numerical shaper… … from scratch! instrumentation examples11 Please, write the ARMA model of the HPF

A complete DIY numerical shaper… … from scratch! instrumentation examples12 Please, write the ARMA model of the LPF

A complete DIY numerical shaper… … from scratch! instrumentation examples13 The R code : CR.RC4 <- function (s, tau) { my.HP <- Arma (b = c(tau / dt, -tau / dt), a = c(1+tau/dt, -tau/dt)) dummy <- filter (my.HP, s) my.LP <- Arma (b = 1, a = c(1+tau/dt, -tau/dt)) dummy <- filter (my.LP, dummy) filter (my.LP, dummy) }

A complete DIY numerical shaper… … from scratch! instrumentation examples14 Let’s try it… we will compute its step response : require (signal) dt < t <- seq (-10, 50, by=dt) s =0, 1, 0) CR.RC4 <- function (s, tau) { Bla bla bla... } out <- CR.RC4(s, 1) plot (t, out) shaping time  =1

A complete DIY numerical shaper… … from scratch! instrumentation examples15 Let’s try it…  We know the true response (just look at Laplace tables) Step  output 

A complete DIY numerical shaper… … from scratch! instrumentation examples16 Black  the numerical filter White  the true response Not so bad, isn’t it? Various shaping time  =1, 2 and 4 Data acquisition consists in catching the peak value  Doing anything else would be a BAD idea…

A complete DIY numerical shaper… … from scratch! instrumentation examples17 Nice, but CSP output IS NOT a step…  It is an exponential whose time constant depends on CSPs components feedback (RfCf) Same amplitude = same charge Ok Nok!

A complete DIY numerical shaper… … from scratch! instrumentation examples18 We would like to do that : But we did this : CSP Shaper CSP Shaper In fact, the transfer function of the shaper should rather look like: CSPShaper This is the pole/zero corrector of your favorite shaper. By adjusting  adj, you cancel out the preamp response.

A complete DIY numerical shaper… … from scratch! instrumentation examples19 Please, write the ARMA model of the PZ corrector

A complete DIY numerical shaper… … from scratch! instrumentation examples20 The R code : CR.RC4 <- function (s, tau, pz.adj) { my.PZ <- Arma (b = c(1+pz.adj / dt, -pz.adj / dt), a = 1) dummy <- filter (my.PZ, s) / pz.adj my.LP <- Arma (b = 1, a = c(1+tau/dt, -tau/dt)) dummy <- filter (my.LP, dummy) filter (my.LP, dummy) }

A complete DIY numerical shaper… … from scratch! instrumentation examples21 We have to adjust PZ corrector to preamp. output: Have a careful look at the baseline : Pz.adj = 80 Pz.adj = 120 Pz.adj = 100 Not good… oups, to much… Perfect! Don’t touch anymore 

A complete DIY numerical shaper… … from scratch! instrumentation examples22 Ok And, this time, everything goes right! This complete the filtering section of the shaper. YES, YOU did it!

A complete DIY numerical shaper… … from scratch! instrumentation examples23 Alas, this new shaper let pass slowly varying baseline fluctuations… Stop for now! We should add a baseline restorer to complete our shaper in order to have a good shaper. Here, it doesn’t matter. Let’s play with our new toy! We corrected the CSP PZ. What would happen if we play with the shaping time?

A complete DIY numerical shaper… … from scratch! instrumentation examples24 Shaping time adjust We build an histogram of data (deposited energy = 1MeV in Si) And we measure its standard deviation… … for each shaping time… Shaping time = 1µs Mean = Sd = 4.8e-6 resolution = 1.1keV

A complete DIY numerical shaper… … from scratch! instrumentation examples25 Shaping time adjust Optimal filter shaping Our count rate = 0 count rate = 10k c/s count rate = 40k c/s count rate = 100k c/s Resolution depends on Shaping time Counting rate

A complete DIY numerical shaper… … from scratch! instrumentation examples26 Shaping time adjust… … depends also on ballistic deficit  see trapezoidal filter HP Ge 200ns 662keV

A complete DIY numerical shaper… … from scratch! instrumentation examples27 That’s all folks! YOU DID IT! In fact, difficulties arise when trying to implement the filter on limited computational abilities devices (FPGA) There is always an optimal shaping time This optimal shaping time depends on Your detector/preamp. The counting rate The deficit balistic