CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
cass::WaveformGenerator Class Reference

generate a waveform of a chosen type More...

#include <waveform_generator.h>

+ Inheritance diagram for cass::WaveformGenerator:
+ Collaboration diagram for cass::WaveformGenerator:

Public Member Functions

 WaveformGenerator ()
 constructor More...
 
void load ()
 loads the parameters from the ini file More...
 
void fill (CASSEvent &evt)
 fills the cass event with a random waveform More...
 
- Public Member Functions inherited from cass::DataGenerator
virtual ~DataGenerator ()
 virtual destructor More...
 

Private Attributes

ACQIRIS::Instrument _instrument
 an acqiris instrument More...
 
int _instrID
 the id of the instrument More...
 

Static Private Attributes

static Registrar< DataGenerator, WaveformGeneratorreg
 object to register this data generator to the factory More...
 

Additional Inherited Members

- Public Types inherited from cass::DataGenerator
typedef std::tr1::shared_ptr< DataGeneratorshared_pointer
 typedef the shared pointer of this More...
 

Detailed Description

generate a waveform of a chosen type

User definable Data-Generators List:
"Waveform": Generates a user defined waveform.
User definable Parameters:

WaveformGenerator/{InstrumentId}

WaveformGenerator/{NbrOfSamples}

WaveformGenerator/{SampleInterval}

WaveformGenerator/Channel/{size}

WaveformGenerator/Channel/%id%/{Offset}

WaveformGenerator/Channel/%id%/{FullScale}

Author
Lutz Foucar

Definition at line 31 of file waveform_generator.h.

Constructor & Destructor Documentation

WaveformGenerator::WaveformGenerator ( )

constructor

does nothing

Definition at line 25 of file waveform_generator.cpp.

Member Function Documentation

void WaveformGenerator::fill ( CASSEvent evt)
virtual

fills the cass event with a random waveform

Parameters
evtthe cassevent that should be filled.

generate random waveform

retrieve acqiris device

retrieve a reference to the requested instrument

copy contents of the instrument to the instrument stored in the cassevent

Reimplemented from cass::DataGenerator.

Definition at line 53 of file waveform_generator.cpp.

References cass::CASSEvent::devices().

void WaveformGenerator::load ( )
virtual

loads the parameters from the ini file

Reimplemented from cass::DataGenerator.

Definition at line 29 of file waveform_generator.cpp.

References QSettings::beginGroup(), QSettings::beginReadArray(), QSettings::setArrayIndex(), size, and QSettings::value().

Member Data Documentation

int cass::WaveformGenerator::_instrID
private

the id of the instrument

Definition at line 54 of file waveform_generator.h.

ACQIRIS::Instrument cass::WaveformGenerator::_instrument
private

an acqiris instrument

Definition at line 51 of file waveform_generator.h.

Registrar< DataGenerator, WaveformGenerator > WaveformGenerator::reg
staticprivate

object to register this data generator to the factory

Definition at line 57 of file waveform_generator.h.


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