Closed ymmemo closed 2 years ago
Any progress on this issue? Experiencing the same
Hey, as I mentioned in the README it is very hard to analyze your problem without having your exact configuration of automation wrapper and opc server in place. It looks like an OLE/COM issue but it would be helpful if you could share a short example program that reproduces your error.
I have never worked with the Matrikon server so I cannot comment on that. However, I use this code in production with a TANI OPC server and query hundreds of tags per second over months and never experienced this issue.
Also, why are you using the low-level readFromOpc function? If there is an issue with loading the Matrikon wrapper, let me know and we can try to include it directly in the code or implement a better interface for other wrappers.
@ymmemo just saw that you also reported this issue on go-ole (https://github.com/go-ole/go-ole/issues/226) and it seems that a proper thread safe implementation of your asynchronuous call solved the problem. Let me know if the problem still exists and I can reopen this issue.
Originally, I used multiple connections to process group reading, but later changed it to one connection and lock/unlock, and the number of exceptions was reduced. Currently in testing...
Originally, I used multiple connections to process group reading, but later changed it to one connection and lock/unlock, and the number of exceptions was reduced. Currently in testing...
Hello, I want to ask if you have solved this problem, I also encountered this problem, I don't know how to solve it
Any progress on this issue? Experiencing the same
Hello, I want to ask if you have solved this problem, I also encountered this problem, I don't know how to solve it
I use readFromOpc & Read once a second asynchronously. Program sometimes crashes and irregularly.
goVersion:(go1.14.4) GOARCH:amd64
The read types include Random.Real8, Bool, Int1, String, Time, I use MatrikonOpc server for simulation.
Is this a network problem or a problem caused by COM?