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
 How to get ColumnInfo user tree?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

additive

Germany
109 Posts

Posted - 02/01/2010 :  07:25:59 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8.1 SR1 / Windows XP

How can I read a ColumnInfo user tree which is set during Import (e.g. TDMS) for each column? I couldn't find the tree structure or storage name documented.

--Michael

easwar

USA
1964 Posts

Posted - 02/01/2010 :  10:11:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Michael,

You can access the meta data in column with the get_user_info global function such as below:


    Tree tr;
    string strInfoName = "ColumnInfo";
    if( get_user_info(myCol, strInfoName, tr) )
    	out_tree(tr);


So the information such as from TDMS import is stored with storage name of ColumnInfo.

From script, such as script window, you can view the tree and get values with code such as:


wks.col1.info.tree.=;
wks.col1.info.tree.ColumnInfo.ImportFile$=;


Easwar
OriginLab
Go to Top of Page

additive

Germany
109 Posts

Posted - 02/01/2010 :  11:06:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Perfect, thank you!!
I tried it using info_get_section() ... my fault.
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