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 for Programming
 Forum for Origin C
 Compatibility between Version 7.5 and 8.0
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

mauricio.angeles

UK
Posts

Posted - 02/04/2008 :  06:04:13 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 8.0
Operating System: Win Vista

Hi everybody,

I have been fitting a function that involves an integral in version 7.5, when I upgraded to version 8.0 the function did not worked. I have realized that a few features have been changed in version 8 like the way that data set are called within the funtion. The problem is that I cannot find the Curve_integrate object in 8.0 to perform the integration. My code is the following:

static double kstore, astore, bstore;
//static property retains the parameter values over iterations
BOOL bErr;
Dataset dsAi("Data1_Ai");
Dataset dsBi("Data1_Bi");
Dataset dsA("Data1_A");
Dataset dsB("Data1_B");
Dataset dsfun1("Data1_fun1");
Dataset dsfun2("Data1_fun2");
Dataset dsfun3("Data1_fun3");
Dataset dsfun("Data1_fun");
Dataset dsInteg("Data1_integ");

if(k!=kstore || a!=astore || b!=bstore) { //parameter checking

dsfun1 = (dsAi-dsAi*dsA)^a; //vector notation
dsfun2 = (dsBi-dsAi*dsA)^b;
dsfun3 = dsfun1*dsfun2;
dsfun = dsAi/dsfun3;
Curve crvFitCurve( "Data1_A", "Data1_fun" );
Curve crvBaseline( "Data1_A", "Data1_zeros" );
IntegrationResult irMyResults;
//dsInteg.SetSize(crvFitCurve.GetSize());
bErr = Curve_integrate( &crvFitCurve, &irMyResults, NULL, &dsInteg, TRUE ); // Perform integration
kstore=k; astore=a; bstore=b;
}
y=Data_table(x, &dsInteg, &dsA)/k;


I hope someone out there could help me.

snowli

USA
1454 Posts

Posted - 02/05/2008 :  12:20:50 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

We are trying to figure out what could be causing it. Could you send your 7.5 fdf and opj to tech@originlab.com? It will help us debug.

Thanks,
Snow Li
OriginLab Corp.



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