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
 importing data as XY XY format through 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
akash8393 Posted - 02/07/2018 : 2:26:59 PM
Origin Ver.9.3 and Service Release 2016 (Select Help-->About Origin):
Operating System: windows 10

How do I import dat file as xy xy format in origin through labtalk
6   L A T E S T    R E P L I E S    (Newest First)
akash8393 Posted - 02/16/2018 : 04:36:56 AM
Thanks a lot. It does work.
Hideo Fujii Posted - 02/12/2018 : 4:26:53 PM
Hi akash8393,

I think that specifying options.... after running impASC is too late. You can try:
impASC options.Cols.ColDesign:="(XY)";
Does it work?

--Hideo Fujii
OriginLab
akash8393 Posted - 02/08/2018 : 03:26:20 AM
Thanks for the reply Yuki.
I've been using the below code to import multiple ASCII from a folder. My column designations stays XYYY after importing the data.
path$ = "F:\data";
findfiles ext:="Book2*.txt";
impASC;
options.Cols.ColDesign:="(XY)"
yuki_wu Posted - 02/08/2018 : 02:27:49 AM
Hi,

Did you specify the Column Designations by Import Option, like the example above?

Regards,
Yuki
OriginLab
akash8393 Posted - 02/08/2018 : 01:16:29 AM
I was able to import data but the designation of the columns doesn't change from XYYY to XY XY XY
yuki_wu Posted - 02/07/2018 : 9:27:55 PM
Hi,

Try this:
impASC fname:="C:\test.dat" options.Cols.ColDesign:="(XY)";

More info about impASC X-Function, please read:
https://www.originlab.com/doc/X-Function/ref/impASC

Regards,
Yuki
OriginLab

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