Open leon-h-a opened 4 years ago
Hello! Have you solved this problem?
I ran into a similar issue, my Python was 64-bit and the OPC server was 32-bit. Everything was looking like it worked up until I went to read something, then it just exited with no errors or anything. I changed to 32-bit Python and the issue went away.
Hello,
I'm able to connect and list groups both over the DCOM and Gateway Service but when trying to grab values, I get these errors:
Server hierarchy:
Code to read values:
DCOM
opc = OpenOPC.client()
opc.connect("Matrikon.OPC.Simulation.1")
data = opc.read('Random.Real8')[0]
ordata = opc.read('test.blah')[0]
> (neither one works) Program Exitsprint(data)
Gateway Service
opchost = 'ip_string'
taglist = ['test.blah']
ortaglist = ['Random.Real8']
> (neither works)opc = OpenOPC.open_client(opchost)
print(opc.list('Configured Aliases'))
> returns a list: ['Server Configuration', 'Alias Configuration']a = opc.read(taglist)
> Exits like mentioned above