fdhwlib  2.0.25
FltStatistic Class Reference

#include <FltStatistic.h>

Inheritance diagram for FltStatistic:
FltPixRegister Pbus

List of all members.

Public Member Functions


Detailed Description

The Register contains parameters for the statistic functions available on the FLT board.

(Implemented in Flt Version 2.00)

The mean value and the variance of the ADC input signal are calculated. This does NOT necessarily correspond with the content of ADC Memory of the FLT boards.

Changes:

  • 29.8.01 ak: Bug in loop for broadcast replacement fixed (started with 1 instead of 0!).
  • 10.7.01 ak: Calculate of the statistics over now 2^16 samples (elongation by 6bit)

Definition at line 37 of file FltStatistic.h.


Constructor & Destructor Documentation

FltStatistic::FltStatistic ( const char *  name,
int  slotID,
int  regID,
int  r,
int  w,
int  len 
)
FltStatistic::~FltStatistic ( )

Member Function Documentation

void FltStatistic::disable ( int  ch)

Disable the statisic functions.

void FltStatistic::disable ( )

Disable the statisic functions for all channels.

void FltStatistic::enable ( int  ch)

Enable the statisic functions.

void FltStatistic::enable ( )

Enable the statisic functions for all channels.

bool FltStatistic::get ( int  ch,
int *  offset,
unsigned long *  n 
)

Get the parameters for the statistical functions.

int FltStatistic::getOffset ( int  ch)
Returns:
The offset for the ADC values.
int FltStatistic::getSamples ( int  ch)
Returns:
The number of samples used in the statistic functions.
bool FltStatistic::isEnabled ( int  ch)

Enable the statisic functions.

Returns true if the evaluation of the statistic functions is turned on.

void FltStatistic::set ( bool  enabled,
int  offset,
unsigned long  n 
)

Broadcast the same parameters to all channels.

void FltStatistic::setOffset ( int  ch,
int  offset 
)

Defines a offset for the ADC values.

The statistics use the variable x, where x is calulated from the ADC values by the formular

x = ADC_i - offset.

The offset can take values from 0..1023.

void FltStatistic::setOffset ( int  offset)

Defines the offset for all channels.

void FltStatistic::setSamples ( int  ch,
int  n 
)

Defines the number of samples used in the statistic functions.

Valid values for the number of samples are from 0..2^16-1.

void FltStatistic::setSamples ( int  n)

Defines the number of samples for all channels.

int FltStatistic::writeBitsByName ( int  ch,
char *  name,
unsigned long  data 
) [virtual]

Write bit fields by name.

Know fields are

  • offset
  • samples
  • off

Reimplemented from FltPixRegister.


The documentation for this class was generated from the following file: