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
 Forum for Origin C
 Need help with automation plot a lot graphs
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bertramking

3 Posts

Posted - 03/13/2015 :  2:08:08 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.5
Operating System:Win 7 home

Hello,

I'm a tudent and I'm trying to use Origin to map surface pressure distribution from measurement data. I have the data of the measurements stored in txt files in many subfolders(Each subfolders have 3 or more txt files, and 30 subfolders in total). I want to have one contour graph with each data file. This means that I will have to make more than 120 different graphs. By the time, before plot contours, the data should transfer from worksheet to matrix (40*40) by Kriging random method.

Data looks like this
X Y Z(pressure)
21.800000 96.200000 0.185842
76.300000 96.200000 0.199100
152.600000 96.200000 0.154080
228.900000 96.200000 0.226387
283.400000 96.200000 0.242507
21.800000 78.700000 0.258095
76.300000 78.700000 0.282000
152.600000 78.700000 0.202438
228.900000 78.700000 0.323683
283.400000 78.700000 0.310155
21.800000 52.500000 0.247029
76.300000 52.500000 0.281075
152.600000 52.500000 0.202593
228.900000 52.500000 0.321937
283.400000 52.500000 0.310401
21.800000 17.500000 0.189197
76.300000 17.500000 0.209334
152.600000 17.500000 0.199269
228.900000 17.500000 0.255569
283.400000 17.500000 0.240231

My questions is: Is there a automation way to do this without making 120 individual graphs? Frist load each txt file in subfolders , second do Kriging gridding, and then plot contours(no colour fill, with label shown).

Also I only can find a Renka-cline gridding mothed with Origin C example. And I dont know how to use a template to do this.

Can anyone help me?

Thanks for your efforts!

bertramking

3 Posts

Posted - 03/14/2015 :  9:48:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I just compiled a origin c code by myself, together with a worksheet and a graph tempalte to get my idea. But I still dont know how to read a .txt file to worksheet by Origin C. Do you have any idea?
Go to Top of Page

Echo_Chu

China
Posts

Posted - 03/18/2015 :  03:50:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You can import your txt file as ASCII file to Origin worksheet

Please look at the page below for sample codes to import files.
http://www.originlab.com/doc/OriginC/guide/Importing-Data

Echo
OriginLab
Go to Top of Page

bertramking

3 Posts

Posted - 03/22/2015 :  9:23:56 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Echo,

I just had use the manual improt wizard. The Origin C is too complex and less help/support files to a new comer learning it.

quote:
Originally posted by Echo_Chu

Hi,

You can import your txt file as ASCII file to Origin worksheet

Please look at the page below for sample codes to import files.
http://www.originlab.com/doc/OriginC/guide/Importing-Data

Echo
OriginLab

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