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.



NI VeriStand定制设备的部署错误



主要软件: NI VeriStand
主要软件版本: 2015 SP1
主要软件修正版本: N/A
次要软件: N/A

问题: 当我部署一个包含有定制设备的VeriStand项目时,我应该如何进行错误排查?

解答:  首先,将您的定制设备从系统定义中移除,确认此错误是否确实由定制设备引起。

其次,确认错误是否在向目标对象中部署系统定义文件时发生。如果您发生此错误,您应对RT驱动的初始化进行分析,包括内联硬件和内联模拟定制设备的初始化和开始过程,以及异步定制设备在Report Final Status VI之前的所有过程:



另外,任何您配置为在下载时或在编译时运行的VI都可能造成部署错误。

如果您的项目中发生部署错误,查看控制台或网络接口中的错误信息,确定VeriStand引擎的状态。如果您不确定您所做的更改是否传送到目标对象上,您可以尝试在RT目标上删除后重新添加定制设备文件夹。在Pharlap和VxWorks的RT系统上,这些文件保存在c:\ni-rt\VeriStand\Custom Devices ,在Linux的RT系统上,这些文件保存在c:\ni-rt\NIVeriStand\Custom Devices 。

定制设备的创建是比较复杂的,在进行这样的工作中,有一些资源可供利用: 如果您在向VeriStand项目中添加定制设备或在系统浏览器中配置定制设备时遇到了错误,请参看 Configuration Errors with NI VeriStand Custom Devices。 如果您在run-time过程中发现错误或非预期的行为,请参看 Run-Time Errors or Unexpected Behavior with NI VeriStand Custom Devices

如果您对于使用上述错误排查办法或对于理解定制设备的框架仍有问题,请联系NI技术支持。

相关链接: VeriStand Help: Action VI Templates
VeriStand Help: Viewing the Console Output of an RT Target
LabVIEW Help: Monitoring and Configuring a Remote Device from a Web Browser
VeriStand Help: Creating Custom Devices
VeriStand Help: Implementing a Custom Device
External Link: NI VeriStand 2010 Custom Device Developer's Guide (Beta)
KnowledgeBase 7AE9HM0I: Configuration Errors with NI VeriStand Custom Devices
KnowledgeBase 799BFR0I: Run-Time Errors or Unexpected Behavior with NI VeriStand Custom Devices

附件:





报告日期: 06/15/2016
最近更新: 09/07/2016
文档编号: 7AEB600I