From 1:00 AM - 6:00 AM CST on Saturday, January 23, ni.com will be undergoing system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 1:00 AM - 6:00 AM CST on Saturday, January 23, ni.com will be undergoing system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
|
我能通过NI-CAN来设置我的CAN读取和写入的缓冲区大小嘛?
如果你使用的是通道API,你不能够为CAN读取函数设置缓冲区大小,这是因为所有通道API使用的存储区都是由系统随机存取存储器来完成的。但是,如果你使用的是帧API,你可以通过使用 ncConfigCANObj.vi
或者完成相同功能的C语言函数 ncConfig来配置队列长度
. 下面是ncConfigCANObj.vi的图标以及它前面板上的配置输入簇,簇里面的Read Queue Length 和 Write Queue Length 可以设置缓冲区的大小。
以下链接列出了如何使用NI-CAN来配置队列大小。
|