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
 Forum for Origin C
 importing blocks of ASCII 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
schneide Posted - 01/21/2008 : 05:56:37 AM
Origin Version (Select Help-->About Origin): 8.0
Operating System: XP

I have data not in column form, but in block form (ascii numbers seperated by spaces) which I need to import to an origin column.


The file looks as follows:

header line 1
header line 2
...
header line n
[x-axis]
1 2 3 4 5 6 7 8 9 ....
header lines
....
[y1-axis]
17 3 1 2 3 4 5 6 7 ....
header lines
....
[y2-axis]
18 9 1 2 33 4 5 6 7 ....
......
[yn-axis]

I want the blocks imported to columns in origin.
The result should look like this:

x1-axis y1-axis y2-axis .... yn-axis
1 17 18 .... .....
1 3 9
3 1 1
4 2 2
5 3 33
6 4 4
......

Is there an easy way to do so? (import wizzard,labtalk,originC?)

Gi

Giselher
1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 01/21/2008 : 10:32:46 AM
Hi Giselher,

You will need to write OC code to read the file, and then that code can be put into a user-defined import wizard filter for repeated use. Or a less elegant solution could be to import the file all as text and use script to parse out the data and create another sheet.

Can you send us a sample file so we can take a look? You can send to tech@originlab.com

Easwar
OriginLab



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