CFEL - ASG Software Suite
2.5.0
CASS
|
generate a waveform of a chosen type More...
#include <waveform_generator.h>
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... | |
![]() | |
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, WaveformGenerator > | reg |
object to register this data generator to the factory More... | |
Additional Inherited Members | |
![]() | |
typedef std::tr1::shared_ptr< DataGenerator > | shared_pointer |
typedef the shared pointer of this More... | |
generate a waveform of a chosen type
WaveformGenerator/{InstrumentId}
WaveformGenerator/{NbrOfSamples}
WaveformGenerator/{SampleInterval}
WaveformGenerator/Channel/{size}
WaveformGenerator/Channel/%id%/{Offset}
WaveformGenerator/Channel/%id%/{FullScale}
Definition at line 31 of file waveform_generator.h.
WaveformGenerator::WaveformGenerator | ( | ) |
|
virtual |
fills the cass event with a random waveform
evt | the 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().
|
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().
|
private |
the id of the instrument
Definition at line 54 of file waveform_generator.h.
|
private |
an acqiris instrument
Definition at line 51 of file waveform_generator.h.
|
staticprivate |
object to register this data generator to the factory
Definition at line 57 of file waveform_generator.h.