[hpsdr] Need input from someone smarter than I

Roger Rehr W3SZ 73w3sz at gmail.com
Tue May 11 21:11:00 PDT 2010


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



More information about the Hpsdr mailing list