<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>I am struggling with a programming problem in my version of KISS.  I have a version that works and a version that doesn’t.  The problem appears to be happening in the SharpDSP (or FFTW) method that does the reverse FFT work.    <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>The program invokes the DoDSPProcess method in SharpDSP which eventually invokes a DoFFTReverseMain method.  The passed parameters are:<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:.5in;text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:green'>// in: tmp_cpx_2 out: tmp_cpx_3</span><span style='font-size:9.5pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>       plan_rev_main = <span style='color:#2B91AF'>FFTW</span>.dft_1d(size,<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>h_tmp2.AddrOfPinnedObject(),<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>h_tmp3.AddrOfPinnedObject(),<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF'>FFTW</span><span style='font-size:9.5pt;font-family:Consolas'>.<span style='color:#2B91AF'>fftw_direction</span>.Backward,<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF'>FFTW</span><span style='font-size:9.5pt;font-family:Consolas'>.<span style='color:#2B91AF'>fftw_flags</span>.Measure);<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>I have two versions of my code.  One works fine.  The other returns a different tmp_cpx_3, even though the tmp_cpx_2 is the same.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>The two versions of my code differ in that the working version has rcvr created in the MainForm (the same as KISS) and the broken one has the MainForm create a RX object which in turn creates rcvr.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>Any clues as to what I am doing wrong?  Please reply off list.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>I apologize to those on the list who aren’t into this stuff, but I am at my wits end and don’t know where else to turn.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>Gordon, KA2NLM<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p></div></body></html>