From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



运行CAN程序时报错 -1074388969



主要软件:
主要软件版本: 1.0
主要软件修正版本: N/A
次要软件: Driver Software>>NI-CAN
硬件: Industrial Communications>>CAN

问题:

当我在LabVIEW中运行CAN应用程序时报错:“错误 -1074388969发生于不明位置”("Error -1074388969 occurred at an unidentified location"). 描述为:NI-CAN: (Hex 0xBFF62017) This attribute's value must be provided prior to the Open. Solutions: Set the attribute using the Config function before the Open, and do not set the attribute at any later time; Do not configure multiple CAN Objects for the same ID.( NI-CAN :(Hex 0xBFF62017)该属性值必须在打开Open之前提供。解决方案:在打开之前使用配置函数设定该属性值,而且在之后任何时候都不要重新设定该值。不要为同一个ID配置多个CAN对象)



解答:

如果程序中句柄没有正常关闭,就会出现该错误信息,因为NI-CAN不能覆盖已经存在的针对端口或者对象的句柄。为判定句柄是否正确关闭,可以在运行您的程序之前运行NI I/O Trace来监测您的程序执行过程中的所有句柄。如果关闭句柄时遇到问题而且继续出现该错误,可以尝试运行一个类似于下列图形中的程序。它将简单地关闭一个对象的句柄,因此您能够在主程序中打开句柄。

 


由于关闭计算机将关闭所有的句柄,通常情况下重启电脑或者控制器将清除该错误。但是如果在程序中句柄没有正确关闭,该错误会持续出现。一般情况下,该方法将只更正一次错误,程序从此处开始继续正确运行下去。



相关链接: KnowledgeBase 3DNAUQ4B: CAN Property Not Set After Attempting to Set the Property Programmatically


附件:
CloseHandle.jpg


CloseHandle.jpg - CloseHandle.jpg


报告日期: 05/03/2006
最近更新: 09/14/2011
文档编号: 3X2IG5C5