TDCBase
tdclifetm.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Project: TDC Control Library
4  *
5  * Filename: tdclifetm.h
6  *
7  * Purpose: Lifetime measurment
8  *
9  * Author: NHands GmbH & Co KG
10  */
11 /*****************************************************************************/
32 /*****************************************************************************/
33 /* $Id: tdclifetm.h,v 1.4 2019/04/16 15:22:45 trurl Exp $ */
34 
35 #ifndef __TDCLIFETM_H
36 #define __TDCLIFETM_H
37 
38 #include "tdcdecl.h"
39 
41 #define LFT_PARAM_SIZE 4
42 
51 typedef enum {
62 } LFT_FctType;
63 
64 
79 typedef struct {
83  double values[1];
85 
86 
103 TDC_API int TDC_CC TDC_enableLft( Bln32 enable );
104 
105 
114 TDC_API int TDC_CC TDC_setLftStartInput( Int32 startChan );
115 
116 
126 TDC_API int TDC_CC TDC_addLftHistogram( Int32 stopCh, Bln32 add );
127 
128 
135 TDC_API int TDC_CC TDC_getLftStartInput( Int32 * startChan );
136 
137 
149 TDC_API int TDC_CC TDC_setLftParams( Int32 binWidth,
150  Int32 binCount );
151 
152 
161 TDC_API int TDC_CC TDC_getLftParams( Int32 * binWidth,
162  Int32 * binCount );
163 
164 
171 
172 
183 
184 
192 
193 
209  Int32 * capacity,
210  Int32 * size,
211  Int32 * binWidth,
212  double * values,
213  Int32 bufSize );
214 
215 
242  Bln32 reset,
243  TDC_LftFunction * fct,
244  Int32 * tooBig,
245  Int32 * startEvts,
246  Int32 * stopEvts,
247  Int64 * expTime );
248 
249 
261  const double * params,
262  TDC_LftFunction * fct );
263 
264 
277  const double * params,
278  double noiseLv );
279 
280 
296  LFT_FctType fitType,
297  const double * startParams,
298  double * fitParams,
299  Int32 * iterations );
300 
301 #endif
TDC_API int TDC_CC TDC_setLftParams(Int32 binWidth, Int32 binCount)
Set Histogram Parameters.
#define TDC_CC
Calling convention.
Definition: tdcdecl.h:34
TDC_API int TDC_CC TDC_fitLftHistogram(const TDC_LftFunction *fct, LFT_FctType fitType, const double *startParams, double *fitParams, Int32 *iterations)
Fit Histogram.
Mono exponential decay.
Definition: tdclifetm.h:53
LFT_FctType
Type of a model function.
Definition: tdclifetm.h:51
TDC_API int TDC_CC TDC_resetLftHistograms(void)
Reset Histograms.
TDC_API int TDC_CC TDC_addLftHistogram(Int32 stopCh, Bln32 add)
Add a histogram.
TDC_API void TDC_CC TDC_analyseLftFunction(const TDC_LftFunction *fct, Int32 *capacity, Int32 *size, Int32 *binWidth, double *values, Int32 bufSize)
Analyse Function Description.
__int64 Int64
64 bit integer for MSVC
Definition: tdcdecl.h:55
Histogram Function.
Definition: tdclifetm.h:79
Kohlrausch decay.
Definition: tdclifetm.h:60
No function, invalid.
Definition: tdclifetm.h:52
TDC_API int TDC_CC TDC_enableLft(Bln32 enable)
Enable Lifetime Calculations.
TDC_API int TDC_CC TDC_getLftParams(Int32 *binWidth, Int32 *binCount)
Get Histogram Parameters.
TDC_API void TDC_CC TDC_releaseLftFunction(TDC_LftFunction *fct)
Release Function Description.
TDC_API TDC_LftFunction *TDC_CC TDC_createLftFunction(void)
Create Function Description.
__int32 Bln32
integer used as boolean
Definition: tdcdecl.h:57
TDC_API int TDC_CC TDC_calcLftModelFct(LFT_FctType fctType, const double *params, TDC_LftFunction *fct)
Calculate Model Function.
TDC_API int TDC_CC TDC_getLftHistogram(Int32 channel, Bln32 reset, TDC_LftFunction *fct, Int32 *tooBig, Int32 *startEvts, Int32 *stopEvts, Int64 *expTime)
Retrieve Histogram.
__int32 Int32
32 bit integer for MSVC
Definition: tdcdecl.h:54
Int32 binWidth
Size of a t step in TDC time units.
Definition: tdclifetm.h:82
Int32 size
Number of valid items in values.
Definition: tdclifetm.h:81
Double exponential decay.
Definition: tdclifetm.h:56
#define TDC_API
External DLL interface.
Definition: tdcdecl.h:38
TDC_API int TDC_CC TDC_generateLftDemo(LFT_FctType fctType, const double *params, double noiseLv)
Generate Demo Data.
Int32 capacity
Array size of values.
Definition: tdclifetm.h:80
TDC_API int TDC_CC TDC_setLftStartInput(Int32 startChan)
Set TDC Channel for Start Input.
TDC_API int TDC_CC TDC_getLftStartInput(Int32 *startChan)
Get TDC Channel for Start Input.
Technical declarations for the DLL interface and basic type defs.