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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Problem with FFTusingnag.c
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

cosy

Germany
Posts

Posted - 01/05/2006 :  10:44:59 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

easwar

USA
1964 Posts

Posted - 01/05/2006 :  11:16:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000