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
 Script to run after import assistant
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

83years

6 Posts

Posted - 06/21/2011 :  08:06:11 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System: Windows 7

Hi,

I am importing lots of data using the same batch process and I would like to run a script to produce a graph at the end for all the newly produced data.

My import produces a new workbook (named after the .csv file) and has worksheets called "raw data", "n Data", "e Data" and "f Data". In all but the raw data there are 2 columns (x and y data) which I am currently plotting one by one and merging graphs.

What I would like is to produce a single bar chart (plot:=203) for all the "n Data" worksheets in all the imported workbook.

Is this possible?

Any help would be amazing,

Thanks

greg

USA
1379 Posts

Posted - 06/21/2011 :  4:58:36 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Here is some LabTalk ..

win -t plot column;
range rg = [%H]1!;
doc -e W {
if( exist([%H]"n Data") )
plotxy iy:=[%H]"n Data"!(1,2) plot:=203 legend:=0 og:=rg;
}
layer -g; // optional
Go to Top of Page

83years

6 Posts

Posted - 06/22/2011 :  08:19:34 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot Greg, that worked a treat
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