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
 remove old nlsf before starting new one
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

emssolids

Australia
Posts

Posted - 04/01/2008 :  5:10:06 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version: 75E
Operating System:Xp

Hi,

I am trying to teach myself how to automate Origin a bit so that my supervisor can do some fitting without having to learn how to use Origin. So far this is going okay. I have one question that has me stumped though. When I perform a nlsf using a user defined function a column is added with the nlsf y values for the plot. If I then perform the fit again a new column and curve is added to the plot (after many such fits they tend to build up) is there a way in the "before fit" script to remove the old column and hence plot before the new one is started.

Regards
Michael

Deanna

China
Posts

Posted - 04/06/2008 :  10:26:26 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Michael,

In the "Before Fit" script, you can use LabTalk scripts to remove a data plot from a graph or a column from a worksheet.

To remove a data plot from graph:
  layer -e dataset;


To remove a column from a worksheet:
  delete dataset;


Therefore, you have to know the "dataset" of the curve and the column which you want to delete. Then you can use the above commands in the "Before Fit" tab of the NLSF dialog.

Deanna
OriginLab Technical Services
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