VeriStand 项目部署到实时目标时出现错误 -307853

更新 Dec 18, 2023

适用于

硬件

  • PXI Controller
  • CompactRIO Controller

软件

  • VeriStand
  • LabVIEW Real-Time Module

操作系统

  • PharLap
  • NI Linux Real-Time
  • VxWorks

问题详述

尝试将 VeriStand 项目部署到 LabVIEW 实时目标时,出现错误 -307853。

Error -307853 occurred at Project Window.lvlib:Project Window.vi >> Project Window.lvlib:Command Loop.vi >> NI_VS Workspace ExecutionAPI.lvlib:NI VeriStand - Connect to System.vi

Possible reason(s):
NI VeriStand: The VeriStand Gateway was unable to establish a connection with the target. Confirm that the target is running and that the VeriStand Engine successfully has started. If you still cannot connect to the target, use MAX to reinstall the NI VeriStand Run-Time Engine to the target.

解决方案

如果实时目标上未安装 VeriStand Real-Time 引擎或已损坏,则会发生此错误。确保实时目标上已安装了 NI VeriStand 引擎。
当NI VeriStand.rtexe正在运行时,如果再从LabVIEW开发环境中进行连接或部署到目标, 这将导致 NI VeriStand.rtexe 将被损坏。尝试以下操作以重新启动 VeriStand 引擎:
  • VeriStand 2019 R3 及更高版本中新添加了一项功能,这允许 VeriStand 编辑器中重新启动 VeriStand 引擎:
    1. 选择Tools Launcher >> Manage Targets
重启1.PNG
  1. 点击Restart VeriStand Engine并等待该过程完成。注意:在受密码保护的 RT 目标上重新启动 VeriStand 引擎时将报告错误 363504( BUG 1505083 )。作为解决方法,为 RT 控制器设置一个空白密码。或者,您可以考虑其他选择。 重启2.PNG
  • 使用重置 VeriStand 作为启动工具。 (此工具按原样提供,不受 NI 支持。)
  • 从 NI Measurement and Automation Explorer (MAX) 重新安装 VeriStand 引擎。
  • 如果您使用的是Linux RT 目标基本映像(非传统安装) ,您还可以执行以下操作:
    1. 访问 NI Linux 实时设备上的 shell
    2. 使用命令opkg install ni-veristand-engine --force-reinstall在不使用 NI MAX 的情况下重新安装 VeriStand Engine。如果您的 Linux RT 终端无法访问网络则需要离线安装包,请参阅在 Linux 实时设备上离线安装 OPKG 包
    3. 重新启动目标。