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
 literature or help for labtalk

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
Stefan Bollmann Posted - 10/20/2009 : 12:53:52 PM
Hi,

I'm searching for some help in labtalk. The help files of origin are good, but if i want to know how to plot with lines (i used plotxy) i cannot find any help in the help section. Also help for using things by example is not easy to find for me. Can anyone give me some resources on the web or tell me good books about that?

Thx, Stefan
7   L A T E S T    R E P L I E S    (Newest First)
coll@inia. Posted - 10/23/2009 : 3:23:20 PM
GOOD POINT!!!!
I will be waiting for a pdf manual on labtalk !
julio
redman Posted - 10/23/2009 : 06:36:30 AM
Is it possible to post a PDF manual of Programming?
easwar Posted - 10/22/2009 : 09:55:57 AM
Hi Stefan,

Not sure how your data is structured in your file, and why your filter is not adding a column...best i think would be for you to send your files to your tech support contact in Germany and have them take a look.

I also want to point out that starting with version 8, one can set up an analysis template where the import settings can be saved to the import sheet, plus you can set up all the analysis you need, including a custom graph and report etc. And then such analysis template can be re-used either manually from the GUI, or programmatically from LabTalk or Origin C. So I suggest you consider that option as well.

You can learn more about analysis templates in general from this page:
http://originlab.com/index.aspx?s=8&lm=115&pid=1039
This page has link to a movie at the top of the page.

Then in LabTalk you can simply open a new instance of the analysis template ogw and import your new data file into the data sheet using impfile x-function, and the rest of the analysis and embedded graphs etc will all automatically update.

Easwar
OriginLab
Stefan Bollmann Posted - 10/22/2009 : 09:42:36 AM
Hi,

next thing: I also try to use the import wizard. But not every command described in the labtalk reference does his job here.
When i try to use wks.addCol() in the Advanced Filter Options -> tabtalk code after succesful import:

wks.addCol()

nothing happens in my active worksheet, where my data are imported.
But without this wks.addCol I can fit my data using the lines

nlbegin(1,2) diff3Exp tt;
nlfit;
nlend output:=1 autoupdate:=1;

with my fit function diff3Exp. If I write it like this

wks.addCol()
nlbegin(1,2) diff3Exp tt;
nlfit;
nlend output:=1 autoupdate:=1;

nothing happens either. What is wrong and how can I fix it?
Stefan Bollmann Posted - 10/22/2009 : 07:58:17 AM
So the first thing that I spend some time on now is the import of my files. The first example of http://wiki.originlab.com/~originla/wiki/index.php?title=LabTalk:Data_Import runs very well.

Until now, I do my importing always the same way by using the import assistant. In the Filters folder of my User Files Folder (UFF) is a filter called ASCII.oif (that I usually use). If I delete all oder files in UFF/Themes/AnalysisAndReportTable/ and do an import by hand with ASCII.oif, a new "0-FitNL-Last used.ois" is created in Themes/AnalysisAndReportTable.
But I fail using this filter with

string fn$="file.asc";
impasc fname:=fn$ -t "0-FitNL-Last used";.

All origin does is doing an import not using the settings I made using the import assistant.


EDIT: Ok, problem is solved. I found it in http://www.originlab.com/forum/topic.asp?TOPIC_ID=7898 - it is better to use impfile.
Stefan Bollmann Posted - 10/21/2009 : 7:17:28 PM
Hi Easwar et al.,
thank you for the fast answer and the two links. Yes, i once saw those pages, but didn't realize that they are that helpful.

My problem was, that i didn't find in the help files of origin, how to get help if i don't know the commands and operators i need for a task like importing multiple datafiles with my own filter (yes, i can do it by hand) into multiple workbooks. There i try to fit every dataset with my fit function and want to have a graphical output of the dataset and the fit. The thing is, i need log10 scale in the graph and like to have lines and points .... ;-)

I will try, maybe there are some questions the next days, weeks, months...

easwar Posted - 10/20/2009 : 1:00:30 PM
Hi Stefan,

You could refer to this wiki:
http://wiki.originlab.com/~originla/wiki/index.php?title=Category:LT_Guide

which has the LabTalk scripting content better organized. This content will also be printed as a Scripting Guide and distributed with the upcoming version 8.1

Some of the material in the above area is 8.1-specific, but most of it is still relevant to 8.0

There is also this area:
http://wiki.originlab.com/~originla/wiki/index.php?title=Category:Script_Examples
which has examples for specific Origin features such as fitting, importing etc.

If you need further help, continue posting here.

Easwar
OriginLab

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