Main Content

tdmsconvert

Convert file to TDMS v2.0 compliant format

Since R2024a

    Description

    example

    tdmsconvert(tdmsSource,tdmsDest) converts the source files specified by tdmsSource, into TDMS v2.0 compliant format, and saves the results to the specified destination file or folder, tdmsDest. tdmsSource can specify a single or multiple files. To specify multiple input files, use wildcard matching or a folder pathname. For multiple files, the output destination, tdmsDest, must specify a folder.

    Examples

    collapse all

    Convert a single file to a TDMS v2.0 file in the same folder location.

    tdmsconvert("NoiseData.tdms", "NoiseDataV2.tdms")

    Convert a single file in the current location to a TDMS v2.0 file in a new location.

    tdmsconvert("NoiseData.tdms", "C:\TestData\NoiseData.tdms")

    Convert a group of files to TDMS v2.0 in a new location. Use a wildcard to capture all TDMS files in the current working folder.

    tdmsconvert("*.tdms", "C:\TestData\")

    The output folder now includes new TDMS v2.0 files with the same names as the original files.

    Input Arguments

    collapse all

    TDMS files to be converted, specified as a string or character vector. Argument can specify an individual file or a folder. Wildcard matching is supported to match on file names.

    Example: "C:\MyData\MyFileV1.tdms"

    Data Types: char | string

    Destination for converted TDMS v2.0 files, specified as a string or character vector. When converting a single file, tdmsDest can specify a single file in the same or different location. If multiple files are converted, tdmsDest must specify a folder, and the output files have the same names as the input files.

    Example: "C:\MyData\MyFileV2.tdms"

    Data Types: char | string

    Version History

    Introduced in R2024a