Exemplo n.º 1
0
 private void ReadTags()
 {
     // populates info.tags from data retrieved from abffio module
     ABFFIOstructs.ABFTag[] abfTags = abffio.ReadTags();
     for (int i = 0; i < abfTags.Length; i++)
     {
         ABFFIOstructs.ABFTag abfTag = abfTags[i];
         double timeSec   = abfTag.lTagTime * abffio.header.fSynchTimeUnit / 1e6;
         string comment   = new string(abfTag.sComment).Trim();
         int    timeSweep = (int)(timeSec / info.sweepIntervalSec);
         Tag    tag       = new Tag(timeSec, timeSweep, comment, abfTag.nTagType);
         info.tags[i] = tag;
     }
 }
Exemplo n.º 2
0
        public ABFFIOstructs.ABFTag[] ReadTags()
        {
            AssertOpen();
            Int32 fileHandle = 0;
            Int32 errorCode  = 0;

            ABFFIOstructs.ABFTag[] abfTags = new ABFFIOstructs.ABFTag[(UInt32)header.lNumTagEntries];
            for (uint i = 0; i < abfTags.Length; i++)
            {
                ABF_ReadTags(fileHandle, ref header, i, ref abfTags[i], 1, ref errorCode);
                AbfError.AssertSuccess(errorCode);
            }
            return(abfTags);
        }
Exemplo n.º 3
0
 private static extern bool ABF_ReadTags(Int32 nFile, ref ABFFIOstructs.ABFFileHeader pFH, UInt32 dwFirstTag, ref ABFFIOstructs.ABFTag pTagArray, UInt32 uNumTags, ref Int32 pnError);