I know, I know...all of this will change with the new architecture, but
interesting none the less. Good explanation and thanks to Phil.

   73 Ross K9COX

"On Winrad, another thing I forgot to mention was, if you haven't already
tried it, click on "ShowOptions" in Winrad and select High Process Priority.
This sometimes will improve stability at the higher sampling rates, but
boosting the process priority does not always have the effect that most
people assume it will have.  Why?

This where almost all SDR programs miss the mark - especially bad is
PowerSDR with its extreme sensitivity to driver DPCs, and other bugaboos:
The QS1R software was not divided up into a separate server and GUI only to
allow you to use the GUI remotely over the internet - this is only a
positive side effect.  The DSP code was put into the server to run in its
own process space, separate from the process space of the GUI.  This is the
reason: In programs such as PowerSDR and most other Windows SDR apps, the
code that does the DSP is running in the same process space as the GUI.  The
DSP is usually running in at least one separate thread within that process,
and you usually want to give this thread priority because you are doing near
real-time DSP in that thread.  There is a way to boost the priority of
threads within a process, but even if you set the thread priority to the
maximum priority, the ultimate priority the thread gets is limited by
something called the process priority class.  You can make a call to the
operating system to boost the process priority class (like in Winrad you can
set it to High Process Priority - you can also do this in PowerSDR via one
of the configuration tabs) but this has a generally negative side effect -
in addition to the DSP thread(s), the thread that the application's GUI runs
on is also boosted to a higher priority.  This has a tendency to slow down
updates of other GUI components, including other application's GUI
components system wide, as the SDR application's GUI gets a higher priority.
Over all this can and does have a negative effect on your DSP thread that
should get higher priority but does not necessarily because of the system
wide effect of boosting your GUI's priority.

If you separate the DSP code, such as the QS1RServer does, in it's own
separate process from the GUI code, you can boost the priority of your
server's process priority class as well as the DSP thread's thread priority
level to real-time priority class without any effect on the GUI since there
is no GUI in the server.  The separate GUI application, in its own process,
can be left at its normal process priority class - you don't need real-time
updates of your GUI, your eyes could not see the updates anyhow, even it it
were possible!  For example, a pan adapter update rate of 30 frames per
second is more than enough to get a visual effect of a real time pan
adapter.  The DSP code in the server gets as much priority as the operating
system will allow without the negative effect of boosting the GUI thread's
priority (because there is no GUI thread in the server!) and that is where
you want the priority - you don't want pops, stutters, or crackles in your
demodulated (or modulated for TX) audio.  You can stand a few milliseconds
of delay in your pan adapter's update rate - something the eye will not even
notice most of the time.

Regards,

Philip A Covington
Software Radio Laboratory LLC
Columbus, Ohio
http://www.srl-llc.com";


_______________________________________________
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 alpha and beta versions of the software.

Reply via email to