GNU Radio's M2K Package
gr::m2k::analog_in_source Class Referenceabstract

Source for ADALM2000 with buffered output channels. More...

#include <analog_in_source.h>

Inheritance diagram for gr::m2k::analog_in_source:
gr::m2k::analog_in_source_impl

Public Types

typedef std::shared_ptr< analog_in_sourcesptr

Public Member Functions

virtual void set_params (std::vector< int > ranges, double sampling_frequency, int oversampling_ratio)=0
virtual void set_data_rate (double rate)=0
virtual void set_trigger (std::vector< int > trigger_condition, std::vector< int > trigger_mode, int trigger_source, int trigger_delay, std::vector< double > trigger_level, bool streaming)=0
virtual void set_timeout_ms (unsigned int timeout)=0
virtual void set_buffer_size (int buffer_size)=0

Static Public Member Functions

static sptr make (const std::string &uri, int buffer_size, const std::vector< int > &channels, std::vector< int > ranges, double sampling_frequency, int oversampling_ratio, int kernel_buffers, bool calibrate_ADC, bool stream_voltage_values, std::vector< int > trigger_condition, std::vector< int > trigger_mode, int trigger_source, int trigger_delay, std::vector< double > trigger_level, bool streaming, bool deinit=true, double data_rate=0)
 Return a shared_ptr to a new instance of m2k::analog_in_source.
static sptr make_from (libm2k::context::M2k *context, int buffer_size, const std::vector< int > &channels, std::vector< int > ranges, double sampling_frequency, int oversampling_ratio, int kernel_buffers, bool calibrate_ADC, bool stream_voltage_values, std::vector< int > trigger_condition, std::vector< int > trigger_mode, int trigger_source, int trigger_delay, std::vector< double > trigger_level, bool streaming, bool deinit=true, double data_rate=0)

Detailed Description

Source for ADALM2000 with buffered output channels.

This block allows for streaming data from ADALM2000

Member Typedef Documentation

◆ sptr

Member Function Documentation

◆ make()

sptr gr::m2k::analog_in_source::make ( const std::string & uri,
int buffer_size,
const std::vector< int > & channels,
std::vector< int > ranges,
double sampling_frequency,
int oversampling_ratio,
int kernel_buffers,
bool calibrate_ADC,
bool stream_voltage_values,
std::vector< int > trigger_condition,
std::vector< int > trigger_mode,
int trigger_source,
int trigger_delay,
std::vector< double > trigger_level,
bool streaming,
bool deinit = true,
double data_rate = 0 )
static

Return a shared_ptr to a new instance of m2k::analog_in_source.

Parameters
uriString of the context uri
buffer_sizeInteger number of samples to be put into each buffered
channelsList of channel's states (enable/disable)
rangesList of ranges for the given channels
sampling_frequencyFrequency at which the hardware will input samples
oversampling_ratioInteger number representing the oversampling factor
kernel_buffersThe number of the internal buffers
calibrate_ADCBoolean value for deciding if the ADC should be calibrated
stream_voltage_valuesBoolean value for setting the output type: voltage/raw
trigger_conditionList of triggering conditions for the given channels
trigger_modeList of triggering modes for the given channels
trigger_sourceThe source for the triggering event
trigger_delayThe number of samples in buffer before the triggered sample
streamingconfigures m2k in streaming mode
deinitclears m2k resources on deinit - useful when used in conjunction with other software that handles deinit
data_ratesets a data rate of data_rate buffers per second

◆ make_from()

sptr gr::m2k::analog_in_source::make_from ( libm2k::context::M2k * context,
int buffer_size,
const std::vector< int > & channels,
std::vector< int > ranges,
double sampling_frequency,
int oversampling_ratio,
int kernel_buffers,
bool calibrate_ADC,
bool stream_voltage_values,
std::vector< int > trigger_condition,
std::vector< int > trigger_mode,
int trigger_source,
int trigger_delay,
std::vector< double > trigger_level,
bool streaming,
bool deinit = true,
double data_rate = 0 )
static

◆ set_buffer_size()

virtual void gr::m2k::analog_in_source::set_buffer_size ( int buffer_size)
pure virtual

◆ set_data_rate()

virtual void gr::m2k::analog_in_source::set_data_rate ( double rate)
pure virtual

◆ set_params()

virtual void gr::m2k::analog_in_source::set_params ( std::vector< int > ranges,
double sampling_frequency,
int oversampling_ratio )
pure virtual

◆ set_timeout_ms()

virtual void gr::m2k::analog_in_source::set_timeout_ms ( unsigned int timeout)
pure virtual

◆ set_trigger()

virtual void gr::m2k::analog_in_source::set_trigger ( std::vector< int > trigger_condition,
std::vector< int > trigger_mode,
int trigger_source,
int trigger_delay,
std::vector< double > trigger_level,
bool streaming )
pure virtual

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