mdfWrite
Description
mdfWrite(
writes a timetable of MDF data to a new channel group appended at the end of the specified
MDF file. The timetable can also contain channel group and channel metadata, which you can
add using the function mdfFileName,mdfData)mdfAddChannelGroupMetadata before performing the
write operation. If the file does not exist, the function creates it.
mdfWrite(
writes data to the specified channel group index. If unspecified, data is written to a new
channel group appended to the end of existing channel groups.mdfFileName,mdfData,GroupNumber=chanGrpNum)
Examples
Input Arguments
Limitations
The
mdfWritefunction does not support writing array channels or structure channels.When overwriting an existing channel, use a timetable that was created by the
mdfReadfunction with the optionIncludeMetadata=true. Do not remove any timetable custom properties returned by themdfReadfunction.When overwriting an existing channel, the
ChannelReadOptionproperty in the timetable custom properties is used internally to keep track of the kind of conversion rule applied during the read. Do not modify this custom property in the timetable.When writing a new channel to an MDF file, the
mdfWritefunction does not support writing data with conversion rules. Only raw values can be written to new channels.Boolean is not a supported data type in the MDF standard, so
mdfWritedoes not support thelogicaldata type. To work around this limitation, convert thelogicalvariable to anint8oruint8data type before writing to the MDF file.