Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

配置LabVIEW,LabVIEW DSC和Lookout,使其和Windows 防火墙配合使用

主要软件: LabVIEW Development Systems>>LabVIEW Base Package
主要软件版本: 8.0
主要软件修正版本:
次要软件: Lookout, LabVIEW Modules>>DSC Module, LabVIEW Development Systems>>LabVIEW Full Development System, LabVIEW Development Systems>>LabVIEW Professional Development System

问题: 我在Windows XP/Vista中使用Windows防火墙,但我希望LabVIEW、LabVIEW DSC、Shared Variables和 Lookout 不会被防火墙所禁用。我需要作哪些设置?

解答: Windows Vista和Windows XP Service Pack 2 提供的防火墙可以增加网络的安全性。如果启用了Windows防火墙,而某个程序需要连接并打开网络端口, Windows会提示用户,并询问是否希望启用该程序的网络连接。

然而,当系统启用防火墙,并且默认程序禁用连接网络时,Windows就不会提示用户并询问。NI软件的某些网络功能依赖的服务会被禁用,除非在防火墙配置中配置特例。当使用将当前机器作为主机的 共享变量 时,就会导致诸如-1950679035的错误。临时禁用Windows防火墙是一种快捷的方式来验证是不是防火墙导致了上述的错误。如果你希望保持防火墙启用的状态,请按以下步骤来启用NI的共享变量/标签软件:

  1. 通过开始»控制面板打开Windows控制面板。
  2. 打开Windows防火墙。如果你没有看见Windows防火墙,在Windows Vista里点击安全。在Windows XP里点击安全中心。

  3. 如果你使用的是Windows Vista,你需要点击靠近屏幕右侧的Change Settings 链接,并以管理员的身份登陆。如果你使用的是Windows XP,请跳过这一步骤。

  4. 点击常规选板。
  5. 在Windows Vista中,确认Block all incoming connections 没有被选中。在Windows XP里,确认 Don't allow exceptions 没有被选中。
  6. 切换到Exceptions 选板。
  7. 点击Add Program...

  8. 点击Browse...

  9. 浏览并选择C:\Windows\System32\lkads.exe。点击 打开,然后点击OK

    如果使用的是Windows VistaWindows XP 配合LabVIEW 8.x、LabVIEW Real-Time 8.x (带有网络发布的共享变量) 或 LabVIEW DSC 8.x,确认你选择了以下程序:
    • C:\Windows\system32\lkads.exe
    • C:\Windows\system32\lktsrv.exe
    • C:\Program Files\National Instruments\Shared\Tagger\tagsrv.exe
    • C:\Windows\system32\nicitdl5.exe (如果你在使用LabVIEW DSC)
    • C:\Program Files\National Instruments\DataSocket\cwdss.exe (如果你在使用LabVIEW的DataSocket)

    如果你在使用Windows XP 配合LabVIEW DSC 7.x 或是 Lookout 6.0,确认你选择了以下程序:
    • C:\Windows\system32\lkads.exe
    • C:\Windows\system32\lktsrv.exe
    • C:\Program Files\National Instruments\DataSocket\cwdss.exe (如果你在使用LabVIEW的DataSocket)
    • C:\Program Files\National Instruments\LabVIEW x.x\dscengine.exe (如果你在使用LabVIEW DSC)
    • C:\Windows\system32\nicitdl5.exe (如果你在使用LabVIEW DSC)
    • C:\Program Files\National Instruments\Lookout x.x\lookout.exe (如果你在使用Lookout)

    如果你在使用Windows XP 配合 LabVIEW DSC 6.x 或更低版本,或Lookout 5.1或更低版本,确认你选择了以下程序:
    • C:\Windows\system32\lkads.exe
    • C:\Windows\system32\lkcitdl.exe
    • C:\Windows\system32\lktsrv.exe
    • C:\Program Files\National Instruments\DataSocket\cwdss (如果你在使用LabVIEW的DataSocket)
    • C:\Program Files\National Instruments\LabVIEW x.x\dscengine.exe (如果你在使用LabVIEW DSC)
    • C:\Program Files\National Instruments\Lookout x.x\lookout.exe (如果你在使用Lookout)

  10. 之前所述的所有应用程序必须出现在Windows防火墙窗口的Exception选板的列表中,并且在它们的旁边有一个复选框。
  11. 除了以上各项外,确认在Programs and Services列表中选中了正确的LabVIEW x.x 开发系统。
  12. 点击OK并关闭Windows防火墙 窗口。
  13. 重启电脑。
重启后,LabVIEW、LabVIEW DSC和Lookout的网络功能就会正确地工作。

相关链接: KnowledgeBase 37AEQJVI: Security Alert Dialog Box Appears When Launching LabVIEW on Windows XP SP2
KnowledgeBase 2GD9CL6Q: What Ports Do I Need to Open on My Firewall for National Instruments Software Products?
Developer Zone Tutorial: Networking Lookout or the LabVIEW DSC Module Across Firewalls
KnowledgeBase 3T9B75XL: Using Lookout, LabVIEW DSC and Network-Published Shared Variables with Firewalls

附件:


vista_browse.jpg - vista_browse.jpg
vista_firewall.jpg - vista_firewall.jpg
vista_sc.jpg - vista_sc.jpg
xp_sc.jpg - xp_sc.jpgATT8J3DY - ATT8J3DY
ATTKN8QT - ATTKN8QT
ATTYIUSH.jpg - ATTYIUSH.jpg
ATTSH4YZ.jpg - ATTSH4YZ.jpg
ATTHKYIU.jpg - ATTHKYIU.jpg



报告日期: 01/31/2005
最近更新: 11/24/2008
文档编号: 3HUD6PUW

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit