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
 LabTalk Forum
 Assignig a woorksheet column to independent data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

lad

Denmark
Posts

Posted - 03/29/2004 :  03:57:19 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Dear All
I have made a lab talk script wich set up a woorksheet needed for fiting som experimental data. Now i would like to automate the fit procedure. There I have one probelem: How do I, in a lab-talk script,
assign a woorkshet colum to an indendenp variabel?

Best regards

Lars Duelund

sammi.song

China
46 Posts

Posted - 03/30/2004 :  06:08:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Lars Duelund,

I'm not sure if I have caught your meaning, but could you mind trying this?
wks.coln.type=value; //this syntax set the column type of n column to be specified type
Note: You can set column as: 1 = Y, 2 = disregard, 3 = Y Error, 4 = X, 5 = Label, 6 = Z, and 7 = X Error.
For example:
Import Test4.dat into a worksheet, and execute the following:
win -a %H; //Activa current window
wks.col3.type=6; //set C column as Z
work -s 1 0 3 0; //Select entire worksheet
worksheet -p 245 Ternary; //plot into Ternary template

Hope it's useful.

Thanks,
Sammi

Edited by - sammi.song on 03/30/2004 06:12:32 AM
Go to Top of Page

lad

Denmark
Posts

Posted - 04/01/2004 :  04:32:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Dear All

Thnaks for input, but it is not what i looking for. I will try agian to explan it.

I have no probelms wiht ploting the data in a graph. Afte the plot I want to initailize the NonLinear Curve fitting. For that i would like to assign my vorksheet data to the variabels in the fir equation. For the dependet data it is not a probelm (with nlsf.fitData$=Kcalc_dhi;) But how do I in a labtalk script assign the independent data to the propper worksheet colums?


Lars
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 04/01/2004 :  08:12:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Lars,

If an X column exists in the same wks as nlsf.fitdata$ then it is automatically used as the independent variable. You can change that assignment with nlsf.x$=dataset. If you have more than one independent variable you can use nlsf.setindep(varName,dataset).

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 04/01/2004 08:27:54 AM
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