On Mon, Jul 26, 2010 at 12:11 AM, Dudley Hurry <[email protected]>wrote:

> Steve,
>
> The audio latency can be lowered by raising the sample rate or lowering the
> buffer rate or both.   On the 5000 you go all the way to 192K .


Dudley,

I think new Flex users get confused abou the relationships between buffer
sizes, sample rate, latency, DSP performance, and CPU utilization. CW ops
are probably the most affected in this area. Here is how I understand it.

First, there are two kinds of buffers: transfer buffers that move data from
the driver to PowerSDR and DSP buffers that determine FFT and filter
resolution. When you set the buffer size in the audio section of PSDR
'Setup' you are changing the size of the transfer buffers. Smaller buffers
mean less data is collected before it is transferred to PSDR thus reducing
delay (latency). The cost is that the CPU must do more work transferring
that data so you have greater CPU utilization. And when the CPU is
transferring buffers of data, that CPU is NOT available to actually process
data.

Sample rate and DSP buffers determine DSP performance AND latency. (It all
adds up.) For people trying to decide sample rate and DSP buffer size it
turns out what is important is TIME. In terms of DSP performance 48K sample
rate with a 1K DSP buffer will provide the same performance as a 96K sample
rate with a 2K buffer, or a 192K sample rate with a 4K buffer because they
all represent the same TIME period covered. DSP buffers that represent a
longer period of real time are going to provide better resolution (and use
more CPU time). You can see that with a 48K sample rate with a 4K buffer,
which will provide 4x the filter and panadaptor (FFT) resolution as 192K
sampling with a 4K buffer. This is just the ticket for weak-signal work but
you pay for it with 4x the latency, something that varies from annoying
to disastrous to CW ops.

So there is no such thing as a free lunch. Want those super tight filters
with vertical skirts and the ability to separate stations that are 40Hz
apart? Turn up the DSP buffer size and turn down the sample rate. Want super
low latency? Turn up the sample rate and turn down the buffer sizes. But be
prepared for less-stellar filter performance.

But the nice thing is WE GET TO CHOOSE what the trade-off is!

-- 
Brian Lloyd, WB6RQN/J79BPL
3191 Western Dr.
Cameron Park, CA 95682
[email protected]
+1.767.617.1365 (Dominica)
+1.931.492.6776 (USA)
(+1.931.4.WB6RQN)
_______________________________________________
Flexedge mailing list
[email protected]
http://mail.flex-radio.biz/mailman/listinfo/flexedge_flex-radio.biz
This is the FlexRadio Systems e-mail Reflector called FlexEdge.  It is used for 
posting topics related to SDR software development and experimentalist who are 
using beta versions of the software.

Reply via email to