Scope
scope::DaqChunkResonance Class Reference

#include <DaqChunkResonance.h>

Inherits scope::DaqChunk.

Public Types

typedef std::vector< bool >::iterator iteratorSync
 
- Public Types inherited from scope::DaqChunk
typedef std::vector< uint16_t >::iterator iterator
 

Public Member Functions

 DaqChunkResonance (const uint32_t &_perchannel, const uint32_t &_nchannels, const uint32_t &_area)
 
Mutator/accessor for the resonance sync stuff
iteratorSync GetLastSyncSig (const uint32_t &_channel) const
 
void SetLastSyncSig (const uint32_t &_channel, const iteratorSync &_last)
 
- Public Member Functions inherited from scope::DaqChunk
 DaqChunk (const uint32_t &_perchannel, const uint32_t &_nchannels, const uint32_t &_area)
 
virtual ~DaqChunk ()
 
virtual void Downsample (const uint32_t &_factor)
 
virtual void Scale (const double &_factor)
 
uint32_t Area () const
 
uint32_t NChannels () const
 
uint32_t PerChannel () const
 
iterator GetLastMapped (const uint32_t &_channel) const
 
void SetLastMapped (const uint32_t &_channel, const iterator &_last)
 

Public Attributes

std::vector< bool > resSync
 
std::vector< iteratorSynclastsyncsig
 
- Public Attributes inherited from scope::DaqChunk
std::vector< uint16_t > data
 
std::vector< iteratorlastmapped
 

Additional Inherited Members

- Protected Attributes inherited from scope::DaqChunk
const uint32_t area
 
const uint32_t nchannels
 
uint32_t perchannel
 

Detailed Description

A DaqChunk contains data from all channels sequentially and additionally a bool vector for the resonance scanner sync signal.

First perchannel samples of channel 0, then perchannel samples of channel 1 etc etc... NOT thread-safe!

Definition at line 10 of file DaqChunkResonance.h.

Member Typedef Documentation

Iterator over the sync vector.

Definition at line 15 of file DaqChunkResonance.h.

Constructor & Destructor Documentation

scope::DaqChunkResonance::DaqChunkResonance ( const uint32_t &  _perchannel,
const uint32_t &  _nchannels,
const uint32_t &  _area 
)
Parameters
[in]_perchannelnumber of samples the chunk should contain per channel
[in]_nchannelsnumber of channels in the chunk (total number of samples is thus _perchannel*_nchannels)
[in]_areasets the area value for the channel

Definition at line 7 of file DaqChunkResonance.cpp.

Member Data Documentation

std::vector<bool> scope::DaqChunkResonance::resSync

The vector with booleans for the synchronization signal for the resonance scanner.

Definition at line 18 of file DaqChunkResonance.h.

std::vector<iteratorSync> scope::DaqChunkResonance::lastsyncsig

Iterators to positions of the last used sync signal point.

One for every channel.

Definition at line 21 of file DaqChunkResonance.h.


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