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
 Import tutorial

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
bafaneh Posted - 07/12/2011 : 5:03:35 PM
Origin Ver. and Service Release (Select Help-->About Origin): 8.1
Operating System:xp

Hello,

I am trying to do the tutorial in 2.4.2 of the Labtalk Manual, and it has me type "string path$ = "D:\SAampleData\Waveform.dat"

then "impasc fname:=path$ options.ImpMode:=3"

to specify the path to the desired data file, and then import the file into a new workbook (impmode=3).

However, when I press enter after the second line, it gives this error:

Invalid file name!

What do you think is wrong?

Thanks,
Basheer
2   L A T E S T    R E P L I E S    (Newest First)
bafaneh Posted - 07/14/2011 : 4:50:01 PM
Thanks.

Also, I am using the 8.5 labtalk scripting guide but the originlab im using is 8.1 and I think it is causing some of the tutorials to not work when I try them. Is there any online 8.1 labtalk scripting guide I can read through instead?

What do you suggest?
-Basheer
Sam Fang Posted - 07/13/2011 : 01:54:41 AM
It is just an example, and assumes that there is a file Waveform.dat in the folder "D:\SampleData" .

You can import Origin's sample data file as follows:
------------------------------------------

string path$ = system.path.program$+"Samples\Curve Fitting\Gaussian.dat";
impasc fname:=path$ options.ImpMode:=3;

------------------------------------------

Sam
OriginLab Technical Services

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