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
 remove old nlsf before starting new one

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
emssolids Posted - 04/01/2008 : 5:10:06 PM
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
1   L A T E S T    R E P L I E S    (Newest First)
Deanna Posted - 04/06/2008 : 10:26:26 PM
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

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