LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with channels when using tdms write

Hi all,

 

For my application, I have to save in a tdms file the values of several variables that change while the vi is running. The tdms write vi is called at specific instances throughout the main vi. I have created one group that contains different channels, one for each variable, so that the values of each variable are placed in one array. The problem is that only one channel is created- the first one- and all the values are written one after the other at this one channel. The only way I have found to create the different channels as I want, is to use for each channel the tdms write vi which makes the code really big.

I would jut like to ask, what I am doing wrong..

 

Thank you very much!

 

ps I have attached a screenshot of the routine i use

0 Kudos
Message 1 of 3
(2,467 Views)

Hi panagiov,

 

When you using TDMS Write in LabVIEW, if you wire a 1D array as the data input, then TDMS Write will use only the first elements of channel names input as the channel name and create only one channel. In your case, you need to wire a 2D array as the data input.

0 Kudos
Message 2 of 3
(2,444 Views)

Thanks a lot!

0 Kudos
Message 3 of 3
(2,438 Views)