TDMS Write Function
- Updated2025-01-28
- 5 minute(s) read
TDMS Write Function
Streams data to the specified .tdms file. The data subset to write is determined by the values you identify in the group name in and channel name(s) in inputs.

Inputs/Outputs
![]() data layout specifies the arrangement of the data that you want to stream to a .tdms file. You must use the same data layout for each channel under the same group.
![]() tdms file specifies a reference number to the .tdms file on which to perform the operation. Use the TDMS Open function to open the refnum. ![]() group name in specifies the channel group on which to perform the operation. The default is Untitled. ![]() channel name(s) in indicates the channels on which to perform the operation. If you do not wire data to this input, LabVIEW names the channels automatically. If you wire waveform data to the data input, LabVIEW uses waveform names. The data type that the channel name(s) in input accepts can be a string or a 1D array of strings. The data type varies according to the data you wire to the data input.
If the data input contains compressed digital data, you must enter the name of the compression channel as the first entry in the channel name(s) in array. ![]() data is the data to write to the .tdms file. This input accepts the following data types:
![]() error in describes error conditions that occur before this node runs. This input provides standard error in functionality. ![]() tdms file out returns a TDMS file reference to the .tdms file on which you performed the operation. ![]() group name out returns the name of the channel group on which you performed the operation. ![]() channel name(s) out returns the channel name on which you performed the operation. ![]() error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\File IO\TDMS\Standard Read and Write\TDMS Write Events Data.vi
- labview\examples\File IO\TDMS\Standard Read and Write\TDMS Write Time Domain Data.vi
- labview\examples\File IO\TDMS\Standard Read and Write\TDMS Write Triggered Data.vi
- labview\examples\File IO\TDMS\Concurrent Access to TDMS File.vi