tdmswrite
Syntax
Description
With the tdmswrite
function you can write table or timetable
data to a new or existing TDMS file.
tdmswrite(
writes data to the specified TDMS file from a table, timetable, or cell array of tables or
timetables. Each table is written to the file as a new channel group, automatically
incrementing the channel group name with each write.tdmsfile
,tdmsdata
)
tdmswrite(
specifies an existing channel group to write the data to. When specifying data as a cell
array, use a cell array of strings to identify the corresponding channel group names,
sequentially mapped by elements.tdmsfile
,tdmsdata
,ChannelGroupNames=chGrpName
)
tdmswrite(___,TimeChannel=
specifies how measurement time is included in the file when writing data from a timetable. A
timeChan
)TimeChannel
value of "none"
adds the start time and
step time to the channel properties. A value of "single"
adds a single
channel with a timestamp for every measurement. If you are writing data from a regular
table, the TimeChannel
setting is ignored.
Examples
Input Arguments
Limitations
TDMS functions are supported on Windows® platforms only.
Version History
Introduced in R2022b