public void TDMSOpen(string filePath) { logFile = new TdmsFile(filePath, new TdmsFileOptions(TdmsFileFormat.Version20, TdmsFileAccess.Read)); logGroup = "EXAM_Data"; // Get the channel group this.channelGroupsFETCH = logFile.GetChannelGroups(); if (!this.channelGroupsFETCH.Contains(logGroup)) { throw new SystemException("Group not found in tdms file!"); } TdmsChannelGroup channelGroupFETCH = this.channelGroupsFETCH[logGroup]; // Get the channels channelsFETCH = channelGroupFETCH.GetChannels(); logChannelCount = channelsFETCH.Count; logLength = channelsFETCH[0].DataCount; loggingRate = logFile.GetProperty("EXAM_LoggingRate"); }
public TDMSFile CheckIn() { TdmsFile.CheckInDirect(FileInfo.FullName); return(TdmsFile); }
protected override void CreateProjectRecording() { wavCreator = new WAVFile(); tdmsFile = new TdmsFile(recordFileName, new TdmsFileOptions()); }