Spectrum Recorder PCI-E Card?

This area is for discussions involving any fusion related radiation metrology issues. Neutrons are the key signature of fusion, but other radiations are of interest to the amateur fusioneer as well.
Harald_Consul
Posts: 96
Joined: Sat Oct 20, 2018 10:01 am
Real name: Harald Consul

Re: Spectrum Recorder PCI-E Card?

Post by Harald_Consul » Thu Jan 31, 2019 8:04 pm

Thank you guys. All those pitfalls in the electronic pathway of the analog signal beginning with the PMT and ending with analog preprocessor part before the A/D converter have been very insightful.

I have figured out, that 50 samples/ observations may be a good start for applying mixed distribution models, as 30 observations is the bottom to test a normal distribution. As the amplitude is about 20 nano-seconds long, that would make 2.5G Sample/s.

However, at the moment 2.5 MSample/s is the maximum of data acquisition cards (DAQ cards) at Ebay. Thus, I am postponing the acquisition of the DAQ card to wait for higher sampling rates in 1 or 2 years. For bridging I have to use my 200MHZ digi osci, meanwhile, which however is pretty limited in the total number of samples. But I am not willing to pay 5000 USD for a 2.5 GS/s card.

User avatar
Rich Feldman
Posts: 1108
Joined: Mon Dec 21, 2009 11:59 pm
Real name: Rich Feldman
Location: Santa Clara County, CA, USA

Re: Spectrum Recorder PCI-E Card?

Post by Rich Feldman » Thu Jan 31, 2019 8:56 pm

Sorry, can't stay away.
Harald, I think you are missing the main point. Let's try again using one specific example.

Suppose your 20 ns pulses (with arbitrary alignment to sampling clock, and arbitrarily overlapping neighbors) are smooth and have minimum risetimes on the order of 2 ns, hypothetically. So that after a linear, continuous-time lowpass filter that stops everything above 250 MHz, very little was lost. Example continues with the assumption that in continuous-time filtered waveform, you could accurately get the location and size of each pulse, even when they partly overlap.

Now you want to do the processing using discrete-time methods (and discrete voltage resolution, but that's an independent detail).
You want 50 points per 20 ns pulse, which is 2.5 Gs/s (0.4 ns sample spacing). OK so far.
I claim that capturing 10 points per pulse ( 0.5 Gs/s, 2.0 ns spacing) in the filtered signal is enough.
Because you can compute the missing 40 points, without error, by proper multi-point interpolation from the sparser samples.
You could interpolate to a time resolution of 500 points per pulse if you wanted -- practically continuous-time. It works because of the properties of bandlimited signals. Wish there were time to make an illustrated demonstration, to overcome intuitive resistance to the concept.
Mike echo oscar whisky! I repeat! Mike echo oscar whisky, how do you copy? Over.

Harald_Consul
Posts: 96
Joined: Sat Oct 20, 2018 10:01 am
Real name: Harald Consul

Re: Spectrum Recorder PCI-E Card?

Post by Harald_Consul » Fri Feb 01, 2019 11:47 am

Thanks Rich!

First of all it is absolutely common when two or more scientists from different disciplines talk together in some kind of interdisciplinary communication, that they do not understand each other fully, simply due to different education and different wording. This sometimes requires a lot of patience on both sides. ;-)

When a mixed distribution model is applied to distinct between a multiple particle amplitude and single particle amplitude this is only based on the shape respectively the curvature of the signal amplitude.

Any interpolation between two samples will not exactly meet the true curvature of the amplitude. On the contrary the interpolation always pushes the curvature towards the one, that has been assumed for the interpolation. As any interpolation must be based on some curvature assumption, the interpolation can produce further data points, but no additional information about the true distribution/ true curvature of the signal.

Thus, the only possibility to decompose a piled up multi particle signal into singular particle events would be a better mathematical approach than the one I mentioned, that would require less than 50 samples/ data points per amplitude.

User avatar
Rich Feldman
Posts: 1108
Joined: Mon Dec 21, 2009 11:59 pm
Real name: Rich Feldman
Location: Santa Clara County, CA, USA

Re: Spectrum Recorder PCI-E Card?

Post by Rich Feldman » Fri Feb 01, 2019 4:20 pm

Harald,
Would you mind sending, as lists of numbers, one or more realistic-looking PMT pulses with 0.4 ns between samples? You can draw them yourself, and they could even be piecewise linear if that simplifies your task.

I want to whip up, or at least threaten to whip up, a numerical demonstration.
We will resample at 1/5 of the rate, then see how sin(x)/x interpolation perfectly reconstructs all points along curves between the "sparse" samples.

Of course we will put an anti-aliasing filter before the sparse sampling. All interpolated points will exactly match the full-rate signal after the filter.
You need to be content with the fidelity of the full-rate filtered pulses
, which is like having front end electronics with a useful but not excessive analog bandwidth. Let's see how that looks when the original pulses are designed by you. Piecewise-linear shapes would get their sharp corners rounded by the filter, and excessively fast risetimes would be knocked down a bit.

The demo will have knobs to choose the time shift between two superimposed PMT pulses, and the phase of the sparse sampling.
Addition of the two time-shifted pulses can happen before or after the filtering, before or after the sparse sampling, and before or after the interpolation. We will see that they all give the same answer.

Respectfully,
Rich
Mike echo oscar whisky! I repeat! Mike echo oscar whisky, how do you copy? Over.

Harald_Consul
Posts: 96
Joined: Sat Oct 20, 2018 10:01 am
Real name: Harald Consul

Re: Spectrum Recorder PCI-E Card?

Post by Harald_Consul » Fri Feb 01, 2019 6:41 pm

Rich, currently I do not have any real scintillation data, as I am still working on figuring out the electrical pin allocation of my "brand new" second hand scintillator tube.

Compare
viewtopic.php?f=20&t=12635&p=82261#p82261
viewtopic.php?f=13&t=12581&start=10

John Myers
Posts: 66
Joined: Wed Mar 08, 2017 12:13 am
Real name:
Location: SoCal

Re: Spectrum Recorder PCI-E Card?

Post by John Myers » Fri Feb 01, 2019 6:56 pm

One way to separate peaks is with deconvolution.

Harald, do you just want to precisely measure the number of particles or do you also want to measure the energy of the particle?
If you only want to count the particles it seems to me that you wouldn't need such a high sample rate. You would only need enough to distinguish between different types.

Harald_Consul
Posts: 96
Joined: Sat Oct 20, 2018 10:01 am
Real name: Harald Consul

Re: Spectrum Recorder PCI-E Card?

Post by Harald_Consul » Fri Feb 01, 2019 7:07 pm

I want to count them seperately by energy.

E.g.:
#127 x 2.3 keV
#245 x 3.5 keV
# 87 x 7.1 keV

Deconvolution looks good. There are three R-Packages for deconvolution:
- dtangle
- deconvolveR
- decon

I do not have any experience in deconvultion, yet. How many samples (measurements) would deconvolution require per amplitude?

John Myers
Posts: 66
Joined: Wed Mar 08, 2017 12:13 am
Real name:
Location: SoCal

Re: Spectrum Recorder PCI-E Card?

Post by John Myers » Fri Feb 01, 2019 8:09 pm

When the time-domain function of each type of pulse, F(x), is known you then use FFT math to convert it to its frequency-domain representation, G(x).
Then when you measure a signal with multiple peaks squashed together you can use deconvolution on the G(x)'s to separate the peaks.

The number of samples needed will depend on how similar each pulse type is. You need a greater sample rate to distinguish between 2.3 keV and 3.5 keV then you would need between 2.3 keV and 7.1 keV. We need to know what each pulse looks like first to give a definitive answer.

Chris Mullins
Posts: 55
Joined: Sun Feb 19, 2017 4:32 pm
Real name: Chris Mullins
Location: Shenandoah Valley, VA
Contact:

Re: Spectrum Recorder PCI-E Card?

Post by Chris Mullins » Fri Feb 01, 2019 11:48 pm

Harald,

I'm not sure those deconvolution functions in R are what you are looking for. If the pulse shape is dominated more by the impulse response of the amplifier, then if you know the amplifier transfer function you can undo the time-domain effect of the amp by a deconvolution, which can be done in the time or frequency domain. This would restore the original, much narrower pulses that excited the amp, and presumably would undo the overlap if there are multiple closely spaced pulses. This is a time series analysis approach to undo a (presumably) linear transformation that smeared the original narrow pulse into a much wider one, not a statistical approach.

Like Rich said, if the amplifier naturally bandlimits the original pulse to say, 250 MHz (which it does if it's linear, and is limiting the rise time to ~2ns), then there is no loss of information in sampling at ~500Ms/s. If you sample faster, you're not gaining any information in a signal processing sense, because that information has already been removed by the bandlimiting amplifier. The deconvolution technique would work just as well at 500Ms/s as it would at 5Gs/s or even 50Gs/s

I think there's some confusion here because some of these terms used in discrete time series signal processing seem to be used in statistical analysis, but with different meanings. E.g. convolution, sampling, etc. Those R deconvolution functions don't seem to be related at all to the time-series deconvolution John was talking about (e.g. as demonstrated here with MATLAB: https://terpconnect.umd.edu/~toh/spectr ... ution.html)

An electrical engineering/signal processing approach would be to simulate this in something like MATLAB (or a free analog, Octave), which is geared more towards time-series analysis, and develop your basic algorithm there. Then, you could use a function generator with dual outputs to generate narrow pulses (that sometimes are closely spaced enough that the amp output would overlap), combine them, run them through a typical PMT amp filter (or equivalent), sample with a digital scope, and try your algorithm on it. That would give you some repeatable data to work with before you have your real scintillator working with real sources.

John Futter
Posts: 1421
Joined: Thu Apr 22, 2004 2:29 am
Real name:
Contact:

Re: Spectrum Recorder PCI-E Card?

Post by John Futter » Sat Feb 02, 2019 8:05 pm

Again
What Harald wants to do is exactly what an MCA does-- pulse height into bins
and no a computer or microcontroler is not the way to go if you want to count fast
I have already given the answer

Post Reply