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
 Import tutorial
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bafaneh

USA
49 Posts

Posted - 07/12/2011 :  5:03:35 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Sam Fang

293 Posts

Posted - 07/13/2011 :  01:54:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

bafaneh

USA
49 Posts

Posted - 07/14/2011 :  4:50:01 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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