Psyllid  v1.12.4
Project 8 Data Acquisisition Software
Public Member Functions | Private Attributes | List of all members
streaming_frequency_writer Class Reference

A consumer to that writes all frequency ROACH packets to an egg file. More...

#include <streaming_frequency_writer.hh>

Inheritance diagram for streaming_frequency_writer:
Inheritance graph

Public Member Functions

 streaming_frequency_writer ()
 
virtual ~streaming_frequency_writer ()
 
 mv_accessible (unsigned, file_num)
 
 mv_accessible (unsigned, bit_depth)
 
 mv_accessible (unsigned, data_type_size)
 
 mv_accessible (unsigned, sample_size)
 
 mv_accessible (unsigned, record_size)
 
 mv_accessible (unsigned, acq_rate)
 
 mv_accessible (double, v_offset)
 
 mv_accessible (double, v_range)
 
 mv_accessible (double, center_freq)
 
 mv_accessible (double, freq_range)
 
virtual void prepare_to_write (monarch_wrap_ptr a_mw_ptr, header_wrap_ptr a_hw_ptr)
 
virtual void initialize ()
 
virtual void execute (midge::diptera *a_midge=nullptr)
 
virtual void finalize ()
 
- Public Member Functions inherited from egg_writer
 egg_writer ()
 
virtual ~egg_writer ()
 

Private Attributes

unsigned f_last_pkt_in_batch
 
monarch_wrap_ptr f_monarch_ptr
 
unsigned f_stream_no
 

Detailed Description

A consumer to that writes all frequency ROACH packets to an egg file.

Author
B. H. LaRoque

WARNING! the output of this node is not proper egg file, frequency data is not supported

Parameter setting is not thread-safe. Executing is thread-safe.

Node type: "streaming-frequency-writer"

Available configuration values:

ADC calibration: analog (V) = digital * gain + v-offset gain = v-range / # of digital levels

Input Stream:

Output Streams: (none)

Definition at line 55 of file streaming_frequency_writer.hh.

Constructor & Destructor Documentation

◆ streaming_frequency_writer()

Definition at line 32 of file streaming_frequency_writer.cc.

◆ ~streaming_frequency_writer()

Definition at line 50 of file streaming_frequency_writer.cc.

Member Function Documentation

◆ execute()

void execute ( midge::diptera *  a_midge = nullptr)
virtual

Definition at line 87 of file streaming_frequency_writer.cc.

◆ finalize()

void finalize ( )
virtual

Definition at line 208 of file streaming_frequency_writer.cc.

◆ initialize()

void initialize ( )
virtual

Definition at line 81 of file streaming_frequency_writer.cc.

◆ mv_accessible() [1/10]

mv_accessible ( unsigned  ,
file_num   
)

◆ mv_accessible() [2/10]

mv_accessible ( unsigned  ,
bit_depth   
)

◆ mv_accessible() [3/10]

mv_accessible ( unsigned  ,
data_type_size   
)

◆ mv_accessible() [4/10]

mv_accessible ( unsigned  ,
sample_size   
)

◆ mv_accessible() [5/10]

mv_accessible ( unsigned  ,
record_size   
)

◆ mv_accessible() [6/10]

mv_accessible ( unsigned  ,
acq_rate   
)

◆ mv_accessible() [7/10]

mv_accessible ( double  ,
v_offset   
)

◆ mv_accessible() [8/10]

mv_accessible ( double  ,
v_range   
)

◆ mv_accessible() [9/10]

mv_accessible ( double  ,
center_freq   
)

◆ mv_accessible() [10/10]

mv_accessible ( double  ,
freq_range   
)

◆ prepare_to_write()

void prepare_to_write ( monarch_wrap_ptr  a_mw_ptr,
header_wrap_ptr  a_hw_ptr 
)
virtual

Implements egg_writer.

Definition at line 54 of file streaming_frequency_writer.cc.

Member Data Documentation

◆ f_last_pkt_in_batch

unsigned f_last_pkt_in_batch
private

Definition at line 84 of file streaming_frequency_writer.hh.

◆ f_monarch_ptr

monarch_wrap_ptr f_monarch_ptr
private

Definition at line 86 of file streaming_frequency_writer.hh.

◆ f_stream_no

unsigned f_stream_no
private

Definition at line 87 of file streaming_frequency_writer.hh.


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