| 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!
|
|
|