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 for Programming
 Forum for Origin C
 fft_sine

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
agniwilk Posted - 05/20/2008 : 09:07:44 AM
Origin Version 8
Operating System :win xP
hello,

i want to calculate sine transform of a function. Here is the code I use:

#include <Origin.h>

#include <fft_utils.h>
void fft_sine_ex1()
{
Worksheet wks = Project.ActiveLayer();
Dataset dsData(wks, 1);
Dataset dsFSine(wks, 2);
if( dsData && dsFSine )
{
vector vec;
vec = dsData;
int nSize = vec.GetSize();
int iRet = fft_sine(nSize, vec);
if(0 != iRet )
{
printf("Forward FFT returned error: %d\n", iRet );
return;
}
dsFSine = vec;
}
}

Compilation can be done,then while linking the following error message appear:

Linking...
C:\Program Files\OriginLab\Origin8\OriginC\Originlab\WKBOOKSPLITTER.C(1532) :Error, Function get_and_check_range@JIAAAAAAOGAAAAAALBAAAAAA was called, but its body could not be located during linking.
Linking Failed!

So i guess i must be doing some very basic error (i am doing that for the first time).
Will be grateful for hints,
ana

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