For some reason, the channel model's frequency_offset is not in Hz. Rather its a fraction of the sample rate. You should pass in my_offset_in_hz/my_sample_rate to this parameter.

The signal source works like that. I suppose that means that the sample rate and frequency are redundant because you really only care about the ratio between them.

_josh

oh consistency...

On 06/28/2010 02:12 PM, John Andrews wrote:
Hi,
I have a nagging doubt about how the channel model is implemented in
gnuradio. Suppose I have an input signal entering the channel model at
100,000 samples/sec. Let's say the channel model has to add an offset of
1000Hz to the input signal. Then I must have 100,000 samples of a 1000Hz
SINE_WAVE signal and multiply each input sample with a corresponding input
sample. Am I right? If I am right then i don't see this happening here with
the sampling rate given as 1 in the line below

d_freq_offset = gr_make_sig_source_c(1, GR_SIN_WAVE, frequency_offset, 1.0,
0.0);

If I am wrong then will someone please correct me here.

thank you very much
John




_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to