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
 Lorentzian fit with multiple sheet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Bigprophete

France
20 Posts

Posted - 03/30/2015 :  12:34:47 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
hello,
I have a folder with a lot of sheet (50 with two column X and Y). I would like if it is possible with Origin C to do a program which realize Lorentzian fit for each sheet ??

Thank you very much

Echo_Chu

China
Posts

Posted - 03/30/2015 :  04:29:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Please look at the page below for some examples to perform nonlinear curve fitting with Origin C

http://www.originlab.com/doc/OriginC/guide/Non-linear-Fitting

And here is a page for example to loop through all workbook in project

http://www.originlab.com/doc/OriginC/guide/Accessing-Pages#Using_foreachforeach_StatementProject.2C_Loop_the_Existing_Windows


Echo
OriginLab
Go to Top of Page

Bigprophete

France
20 Posts

Posted - 03/30/2015 :  05:22:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you very much,

I am looking the command "foreach", but I don't see how it's work...

foreach( WorksheetPage wksPage in Project.WorksheetPages )
{
out_str(wksPage.GetName());
}

Is it possible to have a small example ? What I need to put in --> foreach( --> WorksheetPage wksPage in Project.WorksheetPages )

Sincerely,
Go to Top of Page

SeanMao

China
288 Posts

Posted - 03/31/2015 :  04:23:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

In the link below is the argument syntax you are looking for:

http://www.originlab.com/doc/OriginC/guide/Collections

There is an example in this post about using foreach looping to loop through all worksheets in current active folder and using data in each worksheet to make a plot.

http://www.originlab.com/forum/topic.asp?TOPIC_ID=20405

See whether it helps.

Regards!

Sean

OriginLab Tech. Service

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