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
 Origin Forum
 How to get the name of a loose dataset
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

gfitzgerald

USA
7 Posts

Posted - 07/28/2014 :  1:03:54 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I am trying to export ascii data from loose datasets in a graph. I am able to loop over the datasets and get the x and y data, but I also need to get the comment associated with a dataset. Within the Origin gui I can click on the graph to open the Plot Details dialog and then create a workbook for one dataset - and this has text in the Comments row of B(Y) exactly like I want. But how can I get this programmatically from LabTalk? I've been creating ranges and copying from the loose dataset into a temp workbook. If I try to get the comments this way, e.g., from dsY[C]$ on the loose dataset, it turns up empty.

thanks

Edited by - gfitzgerald on 07/28/2014 3:42:42 PM

lkb0221

China
497 Posts

Posted - 07/28/2014 :  3:42:44 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

For auto legend, the legend text comes from worksheet column label rows (by default is Comment).
So you can just read your workbook meta data.

But if you've modified the legend text manually, it might be hard...

Zheng
OriginLab
Go to Top of Page

gfitzgerald

USA
7 Posts

Posted - 07/28/2014 :  3:45:56 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Zheng,
Thanks for the response. I was updating and clarifying my question just as you posted. The next obvious question for me to ask is: how to access the workbook meta data? I created a range for the dataset
strY$ = myDataSet;
range dsY = [??]!%(strY$);

and I tried to get the Comments from dsY[C]$. What other ways can I access the metadata?

thanks,
George



George Fitzgerald
Universal Display Corp.
gfitzgerald@udcoled.com
Go to Top of Page

lkb0221

China
497 Posts

Posted - 07/28/2014 :  4:25:57 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I'm sorry for my misunderstanding... loose data does not have label rows. And I'm not sure what's in your legend.
I guess you got this graph form other one as an ogg file, right?

An easy way is open the Plot Details dialog and click Workbook button at the bottom, or select the curve on the graph, right click and "Go to XXXXX...". And then export the created worksheet.

For scripting way, I would still recommend putting the loose data into a worksheet and then export. So you can add meta data to it.

Zheng
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