blfwrite
将数据写入 Vector BLF 文件
说明
示例
将数据写入 BLF 文件
将数据的时间表写入指定通道。
将一个数据集写入单个通道。
blfwrite("newfile.blf",data,1,"CAN")
将两个数据集写入同一通道。
blfwrite("newfile.blf",{data1,data2},[1,1],["CAN FD","CAN FD"])
将两个数据集分别写入使用不同协议的单独通道。
blfwrite("newfile.blf",{data1,data2},[1,2],["CAN","CAN FD"])
输入参数
blfFile
— BLF 文件的路径
字符串 | 字符
要写入的 BLF 文件的路径,指定为字符串或字符向量。该值可以指定当前文件夹中的文件,也可以指定相对路径名称或完整路径名称。
示例: "MultipleChannelFile.blf"
数据类型: string
| char
data
— 要写入 BLF 文件的数据
时间表
要写入 BLF 文件的数据,指定为时间表或时间表元胞数组。如果使用同一协议,您可以将多个表写入同一通道。
数据类型: timetable
chanID
— 通道 ID
数值
通道 ID,指定为数值标量或数组值,用于标识写入数据的通道。
示例: [1,2,4]
数据类型: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
prot
— 报文协议
"CAN"
"CAN FD"
报文协议,指定为 "CAN"
或 "CAN FD"
。当写入多个数据集时,将协议指定为与正在写入的数据集对应的字符串的数组。
示例: ["CAN","CAN FD","CAN"]
数据类型: char
| string
版本历史记录
在 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)