diff options
author | Tom Rondeau <trondeau@vt.edu> | 2012-12-31 13:12:46 -0500 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2012-12-31 13:12:46 -0500 |
commit | 830dd449c2bd69efa728fc01bb2e5cbec4c45173 (patch) | |
tree | c1018944240a0e45aa28435dfa54cdaa6a796fa4 /gr-uhd/apps/uhd_siggen_base.py | |
parent | a4b8e393b65198e2d81a8608635c33470973f6e2 (diff) |
analog: fixing up UHD apps to use gr-analog module.
Diffstat (limited to 'gr-uhd/apps/uhd_siggen_base.py')
-rw-r--r-- | gr-uhd/apps/uhd_siggen_base.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gr-uhd/apps/uhd_siggen_base.py b/gr-uhd/apps/uhd_siggen_base.py index 2ac16ff7d4..6b51bfcb50 100644 --- a/gr-uhd/apps/uhd_siggen_base.py +++ b/gr-uhd/apps/uhd_siggen_base.py @@ -49,10 +49,10 @@ import math n2s = eng_notation.num_to_str -waveforms = { gr.GR_SIN_WAVE : "Complex Sinusoid", - gr.GR_CONST_WAVE : "Constant", - gr.GR_GAUSSIAN : "Gaussian Noise", - gr.GR_UNIFORM : "Uniform Noise", +waveforms = { analog.GR_SIN_WAVE : "Complex Sinusoid", + analog.GR_CONST_WAVE : "Constant", + analog.GR_GAUSSIAN : "Gaussian Noise", + analog.GR_UNIFORM : "Uniform Noise", "2tone" : "Two Tone", "sweep" : "Sweep" } @@ -166,7 +166,7 @@ class top_block(gr.top_block, pubsub): self._u.set_samp_rate(sr) sr = self._u.get_samp_rate() - if self[TYPE_KEY] in (gr.GR_SIN_WAVE, gr.GR_CONST_WAVE): + if self[TYPE_KEY] in (analog.GR_SIN_WAVE, analog.GR_CONST_WAVE): self._src.set_sampling_freq(self[SAMP_RATE_KEY]) elif self[TYPE_KEY] == "2tone": self._src1.set_sampling_freq(self[SAMP_RATE_KEY]) @@ -219,7 +219,7 @@ class top_block(gr.top_block, pubsub): return tr def set_waveform_freq(self, freq): - if self[TYPE_KEY] == gr.GR_SIN_WAVE: + if self[TYPE_KEY] == analog.GR_SIN_WAVE: self._src.set_frequency(freq) elif self[TYPE_KEY] == "2tone": self._src1.set_frequency(freq) |