LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Want to query channel names from TDM file.

Using labview 7.1, I write a TDM file using the storage VIs from File I/O. The names of the channels can be different depending on the test settings.

How do I read back the names of the channels into labview? I've attempted to use "Read Data" and "Get Properties" VIs.

See attached TDM if needed.

Thanks,
Bill
0 Kudos
Message 1 of 3
(2,920 Views)
Hi Bill!

There is a way to do this! When you use the Read Data.VI, one of the outputs is "Channels." This is an array of references to the individual Channels of your data. Index this array to gain access to a single reference that can then be passed to the Get Properties.VI. One of the outputs from the Get Properties.VI is "Name." This will give you the name of the channel that you are referencing!!

Check out the two attached VIs. The Write TDM File.VI is a shipping example. The Read TDM File Names.VI is a modification of the Read TDM File.VI (The files are written in LV 7.1).

Hope this helps!

Travis H.
National Instruments
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 2 of 3
(2,903 Views)
Got it. Thanks!
0 Kudos
Message 3 of 3
(2,884 Views)