Main Content


Read and write data in an ASAM measurement data format file; sort and finalize files; manage attachments

The toolbox provides read and write access to measurement data format (MDF) files. You can sort and finalize MDF-files, and add, save, or remove attachments.

Use mdfDatastore to access a datastore comprised of large or multiple MDF-files.


expand all


mdfInfoAccess or create MDF-file metadata (Since R2019b)
mdfChannelGroupInfoGet channel group metadata from MDF-file (Since R2023a)
mdfChannelInfoGet channel metadata from MDF-file (Since R2023a)
mdfReadRead channel data from MDF-file (Since R2023a)
mdfVisualizeView channel data from MDF-file (Since R2019a)


mdfCreateCreate MDF-file with metadata (Since R2022a)
mdfWriteWrite timetable data to MDF-file (Since R2022a)
mdfAddChannelGroupMetadataAdd channel group and channel metadata to timetable (Since R2022a)

File Operations

mdfSortSort MDF-file by ASAM standards (Since R2019b)
mdfFinalizeFinalize MDF-file by ASAM standards (Since R2021b)
mdfSaveAttachmentSave embedded attachment files from MDF-file (Since R2023a)
mdfAddAttachmentAttach file to MDF-file (Since R2022a)
mdfRemoveAttachmentRemove attachment from MDF-file (Since R2022a)
mdfDatastoreDatastore for collection of MDF-files
readRead data in MDF datastore
readallRead all data in MDF datastore
previewSubset of data from MDF datastore
resetReset MDF datastore to initial state
hasdataDetermine if data is available to read from MDF datastore
partitionPartition MDF datastore
numpartitionsNumber of partitions for MDF datastore