LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing a 2D String Array to TDMS files

Hi everyone!

 

I writing data to a TDMS file. Currently, I am passing a 1D string array into the TDMS Write function as my channel names.The problem I am having is writing a 2D string array of channels names and units into the TDMS file.I want to have channel names and the units correlated with each channel, because I am using Winplot it is must easier to to post process data with the units below the channel names. 

 

Does anyone know how to do this? 

 

Thank you for the help!

 

This is what is currently looks like when opening the TDMS File in Excel

Excel 1.PNG

This is what I want the data to look like when I open the TDMS File in Excel

Excel 2.PNG

Capture.PNG

Capture 2.PNG

 

0 Kudos
Message 1 of 4
(3,381 Views)

Hi,

 

You are wiring the channel names, instead of the appended array to your TDMS write. 

image.png

 

0 Kudos
Message 2 of 4
(3,343 Views)

So I tried that, and it yielded a broken arrow saying "Polymorphic terminal cannot accept this data type." How did you get yours to work? 

 

Capture.PNG

0 Kudos
Message 3 of 4
(3,335 Views)

I opened the example again and I got the broken wire. I recommend you check the example called TDMS Advanced Append Multiple Headers. You can find it via the example finder. It required you to run the TDMS Advanced Asynchronous Write before, which is also located in the example finder. 

0 Kudos
Message 4 of 4
(3,322 Views)