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
 LabTalk Forum
 Assignig a woorksheet column to independent data

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
lad Posted - 03/29/2004 : 03:57:19 AM
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

3   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 04/01/2004 : 08:12:01 AM
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
lad Posted - 04/01/2004 : 04:32:01 AM
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
sammi.song Posted - 03/30/2004 : 06:08:41 AM
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

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