[hpsdr] Need input from someone smarter than I

Bill Tracey bill at ewjt.com
Tue May 11 22:14:39 PDT 2010


Hi Roger,

Tis late and I need to get off to bed... but here's a simple case you 
can follow - setting the FM deviation.

In console.cs there's code to handle a command line switch to set the 
TX FM deviation to 5khz -- search for '--5kFMxmitDev'
That code sets the TXFMDeviation property in radio.cs -- in there you 
can see where it calls:
         DttSP.SetTXFMDeviation  -- this goes into dsp.cs that is in 
fact an extern declaration  into DttSP SetTXFMDeviation

That code is actually implemented in  DttSP\update.c

To add you own SetFFTsize to this mix .. I'd  add the C code you need 
into update.c or winmain.c and then add an appropriate static 
declaration to call it to dsp.cs.  You should then be able to call it 
from wherever you need to on the C# side of things.

Hope this helps,

Bill (kd5tfd)



At 11:11 PM 5/11/2010, Roger Rehr W3SZ wrote:
>***** High Performance Software Defined Radio Discussion List *****
>
>Hi All,
>
>I am plugging along with the "larger FFT for PowerSDR" project.
>
>I have things running nicely, but am trying to make the FFT size 
>selectable from the Setup page of PowerSDR.
>
>I have the GUI taken care of, as shown at these 2 screens:
>http://www.nitehawk.com/w3sz/NewDSPSetup.gif
>http://www.nitehawk.com/w3sz/NewDSPSetupChoices.gif
>
>and with this GUI I can change the FFT size-related variables in the 
>C# portion of PowerSDR.
>
>But I have been trying for a few days to get this run-time change 
>over to the C [DttSP] portion of the code without success.  All I 
>have to do is to be able to move one integer variable from the C# 
>code to the C code while PowerSDR is running.
>
>I figure the solution is simple and that I am just too dense to have 
>found it.  I am about to leave for Dayton [Thursday at 6 am EST] and 
>was hoping to have this done before I left, so I am hoping a white 
>knight can step in with a solution for me ;)
>
>In C# my variable in question is GlobalClass.m_fftsize, from the 
>newly created class GlobalClass.cs, and I don't know how to get that 
>over to winmain.c while the program is executing.
>
>For those who are interested, the code I have changed is in the files
>display.cs, setup.cs, GlobalClass.cs, winmain.c, defs.h, and main.c
>
>Most of the changed lines have //w3sz or //added by w3sz appended to 
>them, except where I did some global replacements to substitute 
>GlobalClass.m_fftsize for the original variable, and for that one 
>can just search on that string to find the changes.
>
>These files are at the urls:
>http://www.nitehawk.com/w3sz/display.cs
>http://www.nitehawk.com/w3sz/setup.cs
>http://www.nitehawk.com/w3sz/GlobalClass.cs
>http://www.nitehawk.com/w3sz/winmain.c
>http://www.nitehawk.com/w3sz/defs.h
>http://www.nitehawk.com/w3sz/main.c
>
>Thanks in advance for the help, and
>
>73,
>
>Roger Rehr
>W3SZ
>_______________________________________________
>HPSDR Discussion List
>To post msg: hpsdr at openhpsdr.org
>Subscription help: http://lists.openhpsdr.org/listinfo.cgi/hpsdr-openhpsdr.org
>HPSDR web page: http://openhpsdr.org
>Archives: http://lists.openhpsdr.org/pipermail/hpsdr-openhpsdr.org/
>



 1273641279.0


More information about the Hpsdr mailing list