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.



當我在LabVIEW中用DataSocket做為OPC Client連接到OPC Server時會出現錯誤



主要軟體:
主要軟體版本: 8.0
主要軟體修正版本: N/A
次要軟體: LabVIEW Development Systems>>LabVIEW Full Development System, LabVIEW Development Systems>>LabVIEW Base Package

問題:
我試著用DataSocket做為OPC client然後在下面的情況下跑會發生錯誤,請問我能如何解決?




解答: 這是因為你在Windows200上安裝LabVIEW8.0而沒有在之前安裝OPC Server,要用DataSocket當作OPC Client,你必需手動註冊opcproxy.dll,你可以跑下面的命令:
regsvr32 "C:\WINNT\system32\opcproxy.dll"
註: 此路徑可能在您的電腦中會不同,如果無法執行上面的命令,請搜尋您的opcproxy.dll路徑來修正路徑

相關連結:
Developer Zone Tutorial: Connecting LabVIEW to an OPC Server through a DataSocket Connection

附加檔案:





報告日期: 10/27/2005
最後更新: 12/07/2007
文件偏號: 3QALE2V9