我正在使用 OpenOPC 库连接到 OPC 服务器。我可以从我的本地 Matrikon OPC 服务器成功读写,但是当我尝试从另一台机器(不同的主机)读取时,我得到了错误Pyro.errors.ProtocolError: connection failed
我的连接代码在这里;
import OpenOPC
class OPC_tag_reader:
opc = OpenOPC.open_client('<remote host>')
#breaks here!!!!
def __init__(self):
print 'connecting to server'
self.opc.connect('Matrikon.OPC.Simulation.1', '<remote host')
代码没有到达构造函数。
谢谢!