Main Content

blfwrite

Write data to Vector BLF file

Description

example

blfwrite(blfFile,data,chanID,prot) writes the specified timetables in data to the specified BLF file. The function allows writing only to new files, so you cannot overwrite existing files or data.

Examples

collapse all

Write timetables of data to specified channels.

Write one data set to a single channel.

blfwrite("newfile.blf",data,1,"CAN")

Write two data sets to the same channel.

blfwrite("newfile.blf",{data1,data2},[1,1],["CAN FD","CAN FD"])

Write two data sets to separate channels with different protocols.

blfwrite("newfile.blf",{data1,data2},[1,2],["CAN","CAN FD"])

Input Arguments

collapse all

Path to BLF file to write, specified as a string or character vector. The value can specify a file in the current folder, or a relative or full path name.

Example: "MultipleChannelFile.blf"

Data Types: string | char

Data to write to BLF file, specified as a timetable or cell array of timetables. You can write multiple tables for the same channel if the protocol is the same.

Data Types: timetable

Channel IDs, specified as a numeric scalar or array value, identifying the channels on which the data is written.

Example: [1,2,4]

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

Message protocol, specified as "CAN", "CAN FD". When writing multiple sets of data, specify protocol as an array of strings corresponding to the data sets being written.

Example: ["CAN","CAN FD","CAN"]

Data Types: char | string

Version History

Introduced in R2019a

See Also

Functions