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
 Problems with curve_integrate

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
5*10 Posted - 02/23/2006 : 04:59:22 AM
Origin Version (Select Help-->About Origin): origin7.0
Operating System:winxp/2000

Hi,
I wrote an OriginC routine to integrate parts of an curve with the curve_integrate function. It works well, but last week I saw, that see first run of the routine do not give the right results. After the first integration I get the right results. I tested, if I find some bug in my routine, but everything is similar at the first second and so on integrations. (I integrate the same part several times. Only the first ist different). Ist this an known bug in the curve_integrate function?
Can anybody help me?
My integrate routine is like in the manual. Baseline is the x-axis.

Greeet 5*10

7   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 03/28/2006 : 1:08:49 PM
Hi 5*10,

Tech support is going to e-mail you directly to resolve this issue.

Thanks for your patience.

Easwar
OriginLab


5*10 Posted - 03/28/2006 : 09:40:09 AM
Hi easwar,
I send the files to the support center on monday last week. I get an email that they received my email, but since Monday there was no new message.
What to do now?

Greets 5*10

easwar Posted - 03/18/2006 : 7:12:39 PM
Hi 5*10,

Please send it to tech@originlab.com which will go to the OriginLab tech support team and they will reply to you by e-mail.

Easwar
OriginLab


5*10 Posted - 03/18/2006 : 1:48:08 PM
Hi Easwar,

I send the files before two weeks on the following email-adress. I thaught this might be the german techsupport:

origin@additive-net.de

But there is till now no answer. I was in vacation the last two weeks, but no one write that they have solved my problem or try to solve it!

Is there another get some support?

Greets 5*10

5*10 Posted - 03/03/2006 : 02:13:01 AM
Hi Easwar,

I send the files to the support center for german users. Hope they are able to help me!

Greets

5*10

easwar Posted - 03/01/2006 : 09:19:47 AM
Hi 5*10,

I tried with some simple code, as pasted below, in 7SR4.
I tried with worksheet active and the Y column selected, and also from graph with the same data plotted, and did not see any difference.

Best if you can send your OPJ with data and the code to tech support so they can try reproduce your problem. Please mention this post if you e-mail tech support, and also please provide exact steps that you used to reproduce the problem.

Easwar
OriginLab


void test_integ()
{
Curve crv = Project.ActiveCurve();
IntegrationResult irMyResults; // Origin C structure to store integration results
if( !Curve_integrate( &crv, &irMyResults) ) // Perform integration
out_str("Failed to integrate");
else
printf( "Area = %f\n", irMyResults.Area );
}



Edited by - easwar on 03/01/2006 09:21:52 AM
5*10 Posted - 03/01/2006 : 07:53:00 AM
Origin Version (Select Help-->About Origin): Origin 7G SR4 v. 7.0552
Operating System:win 2K/xp

Hi,
I retry to post my problems in the hope, to get an answer. I checked my OriginC routine several times. I´m now sure, that the problem has something to do with the location from whioch I start the routine. If I start it the first time, the plot I get is very jagged. It looks similar, if I start the routine having an worksheet as active window. Having an graphwindow as active worksheet, the plot is smooth. But the qualitative course of the two different plots is the same.

Just an short explanation to get my plots:

I have many mass-spectra,
after choosing an specific peak,
I integrate the choosen peak in each mass-spectrum.
now I plot the results of each integration in a graphwindow versus the Time the massspectra are measured.

This brings me to the question, if there is any value set internal in Origin, if the curve_integrate functions is started with an wks as active window or an graph as active window.

Hope someone can help me with this problem.

Greets 5*10


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