06-08-2012 09:49 AM
I am having trouble trying to read the channel and group names from a .tdms file in a .NET application. When I open the tdms file using the Excel plugin, the channel and group names are nicely displayed. But in my .NET application, all I get is null for the names. The .NET assembly I am using to load the files is version 126.96.36.1992. Is this a known bug and if so, does anyone know if it has been fixed or if there is a workaround?
06-13-2012 12:02 PM
Sorry for my slow response. Here is an example of the file I am talking about. I'm expecting to find a group named 'Events'. When I open the file, I can retrieve two groups. But neither has a name. According to the Excel plugin, at least one should. The same applies to the channel names. I cannot retreive any channel names belonging to the 'Events' group.
Thanks for looking into this.
06-14-2012 09:39 AM
I used LabVIEW TDMS VIs to view the TDMS file, and it shows three groups: one that is blank, one named "Untitled", and one named "Events". There are two channels; both have blank names.
06-14-2012 10:50 AM
Maybe, but that would require a significant rewrite of my code. I guess if I exhaust all other options, the C DLL may be my only workable option. It's too bad, I'm sure the .NET DLL problem is minor and wouldn't be hard to fix. It would be nice for NI to make an update to that. Do you know if NI has a place that I can report bugs?
06-14-2012 03:51 PM
This sounds like the issue discussed here, but this is fixed with TDMS 2.0, which should install with Measurement Studio 9.0. What version of TDMS.dll do you have installed at C:\Program Files\National Instruments\Shared\TDMS? If you do not have 2.0, you could try installing the stand alone version found here.