25.06.final-read-out-read-binary.vi
slowversion of the read-out program without driver for the card;
to anlayse the rawdata offline (rawdata must be a binary file); stores
only the drifttime in a file, total length of one sample must be 1000 timebins
(4 channels * 250 timebins=1000 data points).
write out only one file:
-
last-drifttime.dat : value of the latest drifttime in
ns; (ascii value);
Before starting the program you can set several parameters for the data
acquisition program:
(don't forget to make all changed parameters default: right click on value
-> data opartions -> "make current value default" and than save
the program)
Card settings for PCI-9812:
-
no card settings, read the binary file offline;
Program settings
-
File path to read the binary rawdata file;
-
name of the binary file to read (rawdata"0-9".bin);
-
time to display the signals: specify the minimum time how long an actual
sample is displayed in ms (0 = default, shows the ssample till the fit
routine has ended and than steps to the next sample);
-
start at sample #: offset of the input file, if you want ro read sample
4, than set this value to 4 and the number in "read # samples" to 0, for
samples 4 to 10, set "start at sample #" to 4 and "read # of samples" to
6.
-
run until max #: 1 (default value) (means that the program runs 1 time
with the specified number of samples), here you have the possibility to
set a limit how the program should take the specified number of samples;
-
now at run #: indicator to return tha actual run number;
-
read # samples: 5000 (default value), number of trigger events =
samples; all found signals will be tested to satisfy the cuts and than
sorted in short or long drifttime, filled in 2 different histograms, the
histograms are than gauss fitted and the difference of the 2 means will
be calculated = drifttime
-
now at sample #: indicator to return the actual sample number;
-
file-path to store the file: "last-drifttime.dat" will be stored in this
specified path.
-
delaytime of channel 1 and 2: there is a 600 ns delay of the signals on
channel 1(bottom counter) and channel 2(top counter) and no delay on the
pick up signal. To correct this delay you can specifiy here the delay in
ns for each channel;
-
max iteration for gauss fit: here you can set a limit for the maximum number
of iteration for the gauss fit of the signals (used in subvi "gauss-fit-2"
and "gauss-fit-3"), the maximum number I noticed was 220 iterations, the
other break conditions (mse value and the change from one iteration to
the next of the Chi2) can be found and modified on the block diagram of
the "Levenberg Marquard Prep (modified).vi ".
-
# number of bins for histogram: set the number of bins for the 2 histograms
of the drifttime (15 is default value).
Peak-finder:
You have to specify a range within the program should search for the right
signal:
start channel #: (the first timebin to begin the search)
bins channel #: (the search length in timebins)
e.g.: Channel 1 and 2: start at timebin 0 (default value) and
the length is 20 timebins(default value).
For channel 3 you have to specify 2 ranges for the search:
For the bottom signal ( 3-1) for example start at 20 with a length of 60
and for the top signal (3-2) start at 150 with a length of 100.
Cuts on fitted signals:
You have to set cuts on the gauss fitted signals for all 4 different signals
(bottom(channel 1), top(channel 2), pick up bottom (ch3-1)and pick up top
(ch3-2)):
1. amplitude range ( lower limit 0 mV(default value), upper limit 1499
mV (default value) )
2. sigma range in timebins ( lower limit 0 (default value), upper limit
5 (default value) )
Displays and histograms:
-
displays current signals;
-
peak position (index of the maximum value of the signal in each channel);
-
channel 1 to channel 3: Superposes all samples of the specified channel;
-
fit channel 1 to channel 3-2: dipalys the rawdata points, fitted points
and the gauss curve;
-
display histogram short drifttime ( 3-1 -1): displays the drifftime of
the signal difference of the pick-up signal(coming from the bottom counter)
amd the bottom signal, with the parameters of the gauss fit (amplitude
in mV, sigma and mean in ns, and the number of entries in the histogram);
-
display histogram short drifttime ( 3-2 -2: displays the drifftime of the
signal difference of the pick-up signal(coming from the top counter) amd
the top signal, with the parameters of the gauss fit (amplitude in mV,
sigma and mean in ns, and the number of entries in the histogram);
-
display of the mean difference of the two fitted histograms = drifttime
in ns.
The control buttons:
-
STOP (after an additional run with saving all files): when pressed during
execution, the vi will take an additional run with the specified number
of samples ;
-
STOP (immediately, at current sample, with saving all files) : stop after
the next sample with saving all values in the files, becareful the binary
rawdata file will be shorter ("# of samples" * "2000 bytes");
-
START daq : starts the program after compiling it (put it into "run mode"),
or if pressed before compiling, the pogram will start immediately;
-
ABORT : aborts the program without saving any file, you can also use "Control
+ . " to abort the vi or press the red button in the headline of the VI;
This Page was updated by Tobias
Titz.
Last
modified: Fri June 29 16:05:19 CET 2001