| Author |
Topic  |
|
|
saschia
Slovak Republic
Posts |
Posted - 09/21/2004 : 11:53:55 AM
|
Origin Version (Select Help-->About Origin): 7 Operating System: Windows XP professional
Hi, I have couple of questions:
1) when calling the fitting function for several times, at the beginning I get message Error:QuitFit and at the end Error:EndIterate, but it still looks like the fitting is working well. Why does it produce these messages?
2) I don't want Origin to create the NLSF worksheets. How can I stop it? Or how can I delete them by script?
3) I found in Samples the expression "using NLSF = LabTalk.NLSF;" I use it, but I haven't found anything about the "using" identifier. Where can I find something about it and other things like that?
Thank you for answers. |
|
|
easwar
USA
1965 Posts |
Posted - 09/21/2004 : 1:33:19 PM
|
Hi Saschia,
1> Best to send FDF (fitting function) plus data/OPJ to tech support so they could try reproduce and see what the problem is
2> When using the NLSF GUI tool to perform fitting, if you select "Uniform X" for the fit curve in the Script->After Fitting menu of the NLSF, then a result sheet is created with x,y values of fit curve. This is the default. If you change that to "same X as fitting data", then a Y column with fit curve is added to your data sheet.
Now, if you are performing the fitting from script, then you can contorl all of this using properties and methods of the LabTalk NLSf object. See LabTalk Language Reference CHM/Help file for details
3> "using" is a C# feature that is present in Origin C - essentially allows a short cut so that you can define using NLSF = LabTalk.NLSF; and then later in code use NLSF.Data$=strDataName; etc. instead of typing LabTalk.NLSF.Data$=strDataName;
Note that in the above example, the LabTalk NLSF object is being accessed from Origin C.
"using", and other C# features such as collections that are available in Origin C are documented in the Programming help files, under Programming Guide->Programming in Origin C->Introduction to Programming in Origin C.
Easwar OriginLab
|
 |
|
| |
Topic  |
|
|
|