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.



当使用DSC 8.0作为一个远程OPC客户端时,共享变量状态为"Server Failure"



主要软件:
主要软件版本: 8.0
主要软件修正版本: N/A
次要软件: N/A

问题:
我在使用LabVIEW数据记录与监控(DSC)8.0模块时无法从远程OPC服务器读取数值。我在浏览远程OPC服务器的item时没有任何问题,然而当我把一个共享变量部署到远程OPC服务器时,该共享变量的状态为Server Failure。我在以前的DSC版本中可以从远程OPC服务器正常读数。

解答:
注意: Server Failure 可能表示OPC服务器软件或者服务器到硬件的连接有问题。

当使用DSC模块作为一个OPC客户端时,NI共享变量引擎(SVE)作为连接到远程OPC服务器的应用程序。

SVE是一个系统服务,缺省的以本地 系统 用户登录运行。

既然DCOM执行严格的用户检查,如果使用缺省的SVE配置,您可能无法连接到远程OPC服务器并接收异步数据。DSC模块OPC客户端可以建立和OPC服务器初级的通讯,但是它无法接收异步数据的回调,这样所有绑定到那个服务器的共享变量将会出现Server Failure的状态。

解决方法是配置NI SVE作为一个专门的用户。按照下面的步骤重新配置SVE服务:
  1. 控制面板»管理工具»服务 中。
  2. 右键点击 National Instruments Variable Engine 并选择 Stop
  3. 右键点击 National Instruments Variable Engine 并选择 Properties
  4. Log On 栏选择 This Account 并输入用户帐号信息,该信息已经在客户端和服务器端PC上被授予DCOM特权。
  5. 点击 OK 应用这些设置。
  6. 右键点击National Instruments Variable Engine 并选择 Start
在重新配置National Instrument Variable Engine服务后,重新启动客户端和服务器端PC来刷新DCOM安全设置。

相关链接:
KnowledgeBase 2P5E7RTJ:Setting Proper Access for Remote OPC Server When Using National Instruments OPC Clients
KnowledgeBase 3PFCIENF: How Can I Prevent the Shared Variable Engine from Starting Automatically When I Start My Computer?

附件:





报告日期: 05/18/2006
最近更新: 05/19/2006
文档编号: 3T8E89L7