Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Group and Channel Names are missing when opening a TDMS file from .NET

Hello,

 

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 9.0.40.292. Is this a known bug and if so, does anyone know if it has been fixed or if there is a workaround?

 

Thanks!

Joel

0 Kudos
Message 1 of 15
(6,374 Views)

I'd like to give it a try. Do you have a partial file you can upload as an example? Are you using VB or C#?

0 Kudos
Message 2 of 15
(6,372 Views)

Hi,

 

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.

 

Joel

0 Kudos
Message 3 of 15
(6,342 Views)

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.

0 Kudos
Message 4 of 15
(6,334 Views)

Right, so I know they are in the file, however when I try to read that file from my C# application, the names come back blank.

0 Kudos
Message 5 of 15
(6,331 Views)

tdms.png

 

I haven't worked that much with TDMS files. This is what LabVIEW is reporting back. Maybe the blanks are throwing off C#.

 

 

0 Kudos
Message 6 of 15
(6,328 Views)

Yeah, either way it seems like a bug in the .NET libraries to me. Do you know if there has been any new releases of the .NET libraries?

0 Kudos
Message 7 of 15
(6,326 Views)
0 Kudos
Message 8 of 15
(6,322 Views)

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?

0 Kudos
Message 9 of 15
(6,320 Views)

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.

National Instruments
0 Kudos
Message 10 of 15
(6,314 Views)