diff options
author | Håkon Vågsether <haakonsv@gmail.com> | 2017-09-24 12:16:22 +0200 |
---|---|---|
committer | Håkon Vågsether <haakonsv@gmail.com> | 2017-10-10 10:49:36 +0200 |
commit | baf7eaf8f29d5a490f2580917362cf5b3db47281 (patch) | |
tree | 7afab4ee2dfa6439ecf95d47aa68996020ea04c5 /gr-analog/grc/analog_fastnoise_source_x.block.yml | |
parent | 6fa9d33246251f44a0e78682e50e9a1cb0b03171 (diff) |
Added auto-generated YAML blocks
Diffstat (limited to 'gr-analog/grc/analog_fastnoise_source_x.block.yml')
-rw-r--r-- | gr-analog/grc/analog_fastnoise_source_x.block.yml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/gr-analog/grc/analog_fastnoise_source_x.block.yml b/gr-analog/grc/analog_fastnoise_source_x.block.yml new file mode 100644 index 0000000000..21c4366074 --- /dev/null +++ b/gr-analog/grc/analog_fastnoise_source_x.block.yml @@ -0,0 +1,45 @@ +id: analog_fastnoise_source_x +label: Fast Noise Source + +parameters: +- id: type + label: Output Type + dtype: enum + options: [complex, float, int, short] + option_attributes: + fcn: [c, f, i, s] + hide: part +- id: noise_type + label: Noise Type + dtype: int + default: analog.GR_GAUSSIAN + options: [analog.GR_UNIFORM, analog.GR_GAUSSIAN, analog.GR_LAPLACIAN, analog.GR_IMPULSE] + option_labels: [Uniform, Gaussian, Laplacian, Impulse] +- id: amp + label: Amplitude + dtype: real + default: '1' +- id: seed + label: Seed + dtype: int + default: '0' +- id: samples + label: Variate Pool Size + dtype: int + default: '8192' + +outputs: +- domain: stream + dtype: ${ type } + +templates: + imports: from gnuradio import analog + make: analog.fastnoise_source_${type.fcn}(${noise_type}, ${amp}, ${seed}, ${samples}) + callbacks: + - set_type(${noise_type}) + - set_amplitude(${amp}) + +documentation: |- + The fast noise source works by pre-generating a pool of random variates taken from the specified distribution. At runtime, samples are then uniform randomly chosen from this pool which is a very fast operation. + +file_format: 1 |