使用NI VeriStand Custom Devices运行时错误和意外情况



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

问题: 我在运行我的NI VeriStand Custom Device时收到错误或者意外的情况,我应该采取什么步骤来解决问题?

解答: 首先,为验证自定义设备是否导致错误,从系统定义中删除自定义设备后观察错误是否持续。

如果您验证错误来自自定义设备,那么运行时错误或异常情况的来源是RT驱动程序VI。这将包括内联模型自定义设备的执行模型情况,内联硬件自定义设备的硬件读取数据和硬件写入数据情况以及异步自定义设备中的while循环的内容。

如果您看到运行时错误或异常行为,可以尝试以下问题排查步骤: 自定义设备创建可能具有挑战性,但有几个资源可以提供帮助: 如果在向VeriStand项目添加自定义设备或在系统资源管理器中配置自定义设备时遇到错误,请参阅Configuration Errors with NI VeriStand Custom Devices. 如果在部署期间遇到错误,请参阅Deployment Errors with NI VeriStand Custom Devices.

在使用上述方法后如果问题依然没有得到解决或理解用户自定义设备框架,请联系National Instruments support.

相关链接: VeriStand Help: NI-VeriStand - Pring Debug String VI
VeriStand Help: Viewing the Console Output of an RT Target
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 7AEB600I: Deployment Errors with NI VeriStand Custom Devices


附件:





报告日期: 05/10/2016
最近更新: 01/22/2017
文档编号: 799BFR0I