tdmsinfo
Description
Examples
Get information on a TDMS file and its channels.
info = tdmsinfo("Turbine_003.tdms")info =
TdmsInfo with properties:
Path: "C:\data\tdms\Turbine_003.tdms"
Name: "Turbine_003"
Description: "Test the Acceleration, Force and Torque of Turbine"
Title: "Turbine Tests"
Author: "xyz"
Version: "2.0"
ChannelList: [6×8 table]
View the channel information in the file.
>> info.ChannelList
ans =
6×8 table
ChannelGroupNumber ChannelGroupName ChannelGroupDescription ChannelName ChannelDescription Unit DataType NumSamples
__________________ ________________ _______________________ _______________ __________________ _______ ________ __________
1 "Acceleration" "CGAcceleration" "Acceleration1" "from Clipboard" "m/s^2" "Double" 3312
1 "Acceleration" "CGAcceleration" "Acceleration2" "from Clipboard" "m/s^2" "Double" 3312
2 "Force" "CGForce" "Force1" "from Clipboard" "N" "Double" 3312
2 "Force" "CGForce" "Force2" "from Clipboard" "N" "Double" 3312
3 "Torque" "CGTorque" "Torque1" "from Clipboard" "Nm" "Double" 3312
3 "Torque" "CGTorque" "Torque2" "from Clipboard" "Nm" "Double" 3312Input Arguments
TDMS file name, specified as a string.
For local files, use a full or relative path that contains a file name and extension. You also can specify a file on the MATLAB® path.
For Internet files, specify the URL. For example, to read a remote file from the Amazon S3™ cloud:
data = tdmsread("s3://bucketname/path_to_file/data.tdms");Example: "airlinesmall.tdms"
Data Types: char | string
Output Arguments
TDMS file information, returned as a TdmsInfo object with the
following properties:
| Property | Type | Description |
|---|---|---|
Path | string | Full path to file |
Name | string | TDMS file name attribute |
Description | string | TDMS file description attribute |
Title | string | TDMS file title attribute |
Author | string | TDMS file author attribute |
Version | string | TDMS file version attribute |
ChannelList | table | TDMS channel and channel group attributes |
The ChannelList property value is a table with the following
variables:
| Table Variable | Type | Notes |
|---|---|---|
ChannelGroupNumber | double | Internally created representational index of channel group |
ChannelGroupName | string | |
ChannelGroupDescription | string | |
ChannelName | string | |
ChannelDescription | string | |
Unit | string | Unit of channel data |
DataType | string | TDMS datatype in file |
NumSamples | uint64 | Number of samples in channel |
Version History
Introduced in R2022aYou can now use this function on the Debian® distribution of Linux®.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)