The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Problem with FFTusingnag.c

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
cosy Posted - 01/05/2006 : 10:44:59 AM
Origin Version (Select Help-->About Origin): Origin 7 PRO
Operating System: Winxp
Hi,
I got a code from this website to make a FFT without truncation or padding. The file name is FFTusingnag.c . I got the following errors while compiling:

E:\Program Files\OriginLab\OriginPro7\OriginC\FFTUsingNAG.c(69) :Error, function or variable FFT not found
E:\Program Files\OriginLab\OriginPro7\OriginC\FFTUsingNAG.c(69) :Error, function or variable not found
E:\Program Files\OriginLab\OriginPro7\OriginC\FFTUsingNAG.c(69) :Error, general compile error
E:\Program Files\OriginLab\OriginPro7\OriginC\FFTUsingNAG.c(40) :Error, error(s) found in compiling function fft_using_nag

The line number points to the place where the code goes like :
int iRet = FFT(vecSignal, vecFFT);

Should I include any header files to proceed ?

Thanks and Regards,
COSY
1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 01/05/2006 : 11:16:33 AM
Hi COSY,

The example you are referring to is on the page:
http://www.originlab.com/index.aspx?s=9&lm=71&pid=268

The examples on that page are for version 7.5 - we should add a comment to that effect on the top of the page - apologies for not having added that.

As for this specific fft example, you can make it work in 7.0 in the following way:

1> add the matrix.h header file to your OC file:
#include <matrix.h>
2> add matrix.c file to the system branch of Code Builder (it may already be there)
3> comment out the following line:
wpgFFT.TitleShow = WIN_TITLE_SHOW_BOTH;
(or replace with call to LT)

and then compile the file again.

Easwar
OriginLab



Edited by - easwar on 01/05/2006 11:19:09 AM

Edited by - easwar on 01/05/2006 11:20:17 AM

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000