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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 assigning abftag structure values to a column

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
nithyaraveen Posted - 05/04/2005 : 12:45:59 PM
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!
2   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 05/06/2005 : 2:27:50 PM
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
nithyaraveen Posted - 05/06/2005 : 2:10:15 PM
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!

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000