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
 LabTalk Forum
 assigning abftag structure values to a column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

nithyaraveen

USA
Posts

Posted - 05/04/2005 :  12:45:59 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin):7
Operating System:Windows XP

Hi,
I am trying to import an abf file (with tags) into origin. I need to assign the tags as a new column. I add and label a column as:
wks.addCol();
wks.col$(ii).name$ = Tag$(ii);
The tags are stored in ABFTag structure and my understanding is that the tags/comments can be retrieved from the offset abftag.p4. I tried to assign the values of the column I created to these tag values.But my code does not work for this.
I would appreciate if someone can help me resolve this.

Thanks!

nithyaraveen

USA
Posts

Posted - 05/06/2005 :  2:10:15 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Scott,that was really helpful.
The pCLAMP partial import tool works for Origin 7.5 and not the prior versions I think. So it did not work for me.
I have few more questions.
loop (ii,1,abf.p48)
{
abf.TagN=ii-1;
abf.readTag();
%A=abf.Comment$;
type %A; // this outputs the tag comment properly
//But if i try to set it to some column like ..
%(%h,4,ii)=%A; // this doesnot work
}
whereas the same %(%h,4,ii)= 2 or "myString" sets the column values.
So what am I missing here? Why does not %A work?
In the process of debugging, in the code I also set the datatype(=7) and format(=1) for this column as text.
Also,in this loop how to place the tag comments corresponding to the tag time. How is the abf.tagTime matched with the data's time?
Can you please give me the solution for this?

Thanks in advance!
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 05/06/2005 :  2:27:50 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Don't know about the time issue but you can use this to assign a string value to a cell in the active worksheet...

cell(rowNum,colNum)$=%A;

Mike Buess
Origin WebRing Member
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