Source for ADALM2000 with buffered output channels.
More...
#include <analog_in_source.h>
|
| 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 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) |
Source for ADALM2000 with buffered output channels.
This block allows for streaming data from ADALM2000
◆ sptr
◆ 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
-
| uri | String of the context uri |
| buffer_size | Integer number of samples to be put into each buffered |
| channels | List of channel's states (enable/disable) |
| ranges | List of ranges for the given channels |
| sampling_frequency | Frequency at which the hardware will input samples |
| oversampling_ratio | Integer number representing the oversampling factor |
| kernel_buffers | The number of the internal buffers |
| calibrate_ADC | Boolean value for deciding if the ADC should be calibrated |
| stream_voltage_values | Boolean value for setting the output type: voltage/raw |
| trigger_condition | List of triggering conditions for the given channels |
| trigger_mode | List of triggering modes for the given channels |
| trigger_source | The source for the triggering event |
| trigger_delay | The number of samples in buffer before the triggered sample |
| streaming | configures m2k in streaming mode |
| deinit | clears m2k resources on deinit - useful when used in conjunction with other software that handles deinit |
| data_rate | sets 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: