blfwrite
Description
Examples
Write Data to a BLF-File
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
blfFile
— Path to BLF-file
string | char
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
— Data to write to BLF-file
timetable
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
chanID
— Channel IDs
numeric
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
prot
— Message protocol
"CAN"
"CAN FD"
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
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)