As you see, both are square waves, but the frequency, the above is 1k
and
the below is 7.8 kHz.
If I set a frequency of signal source to 2k, the below says 16.6 kHz.
(Of
course, there are some deviation)
How could I understand this?
If the oscilloscope shows a frequency slower than the GNU radio,
I think that is acceptable since there are latency and processing time
and
something.
But the output is 7.8 times faster than what I inteded.
The only thing I can guess is… 7.8 is rounded up to 8, and 8 indicates
‘8’ bits.
But it seems a bit unnatural and weird…
Could anyone give me a hint?
If you think it is more appropriate to be posted on USRP-users, I’ll
post
it there later.
there’s a bit wrong with this:
32kHz is not a valid sampling rate of any USRP that can take basicTX,
LFTX or UBX daughterboards, which is what you’d need to produce a
baseband signal. Your console window should show a warning saying which
sampling rate was actually used. We can deduct which rate was used:
32kHz * 7.8 ~= 250kHz.
I stared at this over my morning coffee. I can’t quite explain why
you’re
getting 7.8kHz output on a scope, but there’s some other considerations.
Your UHD block has a center frequency of 0Hz. When you run your
flowgraph do you get messages from UHD? You should see something about
not
being able to set a center frequency of 0Hz and using x Hz instead.
32 kHz is not a good sampling rate for USRPs. You should see
something
similar to #1 about setting the clock. The signal you are seeing is
probably a result of generating a signal with some expected sampling
frequency and looking at with another. If you compare the actual USRP
clock
rate to 32kHz and do some math I wouldn’t be surprised if it comes out
to
be a factor of 8 different.
Imagine an even simpler case with just a sine wave. You have a sine
wave
of 1kHz at complex baseband going in to an upconverter (imagine this as
multiplying your signal by an oscillator at your center frequency). What
would you expect on the scope? If you don’t know, then do the math; it’s
fairly simple trig.
I’ve set the samp_rate to 250k and it works perfectly.
Marcus,
I’ve checked your answer on USRP users mailing list a few minutes ago.
Some settings were set wrong, so the mail was not delivered to me.
Sorry for late.
Nathan,
LFTX and LFRX can use center frequnecy of 0 Hz (maybe…) which are
what I
am using now.