GNU Radio 3.6.5 C++ API

gr::blocks::probe_rate Class Reference

throughput measurement More...

#include <probe_rate.h>

Inheritance diagram for gr::blocks::probe_rate:
gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter gr::blocks::probe_rate_impl

List of all members.

Public Types

typedef boost::shared_ptr
< probe_rate
sptr

Public Member Functions

virtual void set_alpha (double alpha)=0
virtual double rate ()=0
virtual bool start ()=0
 Called to enable drivers, etc for i/o devices.
virtual bool stop ()=0
 Called to disable drivers, etc for i/o devices.

Static Public Member Functions

static sptr make (size_t itemsize, double update_rate_ms=500.0, double alpha=0.0001)
 Make a throughput measurement block.

Detailed Description

throughput measurement


Member Typedef Documentation


Member Function Documentation

static sptr gr::blocks::probe_rate::make ( size_t  itemsize,
double  update_rate_ms = 500.0,
double  alpha = 0.0001 
) [static]

Make a throughput measurement block.

Parameters:
itemsizesize of each stream item
update_rate_msminimum update time in milliseconds
alphagain for running average filter
virtual double gr::blocks::probe_rate::rate ( ) [pure virtual]

Implemented in gr::blocks::probe_rate_impl.

virtual void gr::blocks::probe_rate::set_alpha ( double  alpha) [pure virtual]

Implemented in gr::blocks::probe_rate_impl.

virtual bool gr::blocks::probe_rate::start ( ) [pure virtual]

Called to enable drivers, etc for i/o devices.

This allows a block to enable an associated driver to begin transfering data just before we start to execute the scheduler. The end result is that this reduces latency in the pipeline when dealing with audio devices, usrps, etc.

Reimplemented from gr_block.

Implemented in gr::blocks::probe_rate_impl.

virtual bool gr::blocks::probe_rate::stop ( ) [pure virtual]

Called to disable drivers, etc for i/o devices.

Reimplemented from gr_block.

Implemented in gr::blocks::probe_rate_impl.


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