-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why I can not find the server in the localhost? #12
Comments
I have never tested the code with IntellutionGateWayOPCServer but it works with most others OPC DA servers. The most common problem is to compile Golang in 64bit when the server is actually 32bit. See also here. Did you try to compile the code with GOARCH=386 (in Powershell: |
@konimarti |
@konimarti the returned error : Could not load OPC Automation object with wrapper OPC.Automation.1 |
@769139671 The OPC automation wrapper is needed in the Windows COM model to communicate with the server. If you have a standard OPC DA server installation with all the OPC components installed, you usually also get the OPC.Automation wrapper. As an alternative, Graybox provides a free automation wrapper. So, if at least one loads, you should be fine. It also seems that your OPC server is known for not working well with other clients link. However, you could add your server's OPC automation wrapper to this package if they provide one. Maybe you should reach out to them. Regarding your computer name, did you also try '127.0.0.1' instead of localhost? |
@konimarti I can find the GrayBoxSimulationServer using cmd command of "list DESKTOP-UDUBS4F",but I can not connect to this server. |
Closes 01ef7ad |
I have start the IntellutionGateWayOPCServer, and my IntellutionGateWayOPCClient can find this OPCDAServer. But I can not find this server by running the follow code:
opc.Debug()
servers_found := opc.NewAutomationObject().GetOPCServers("localhost")
fmt.Printf("Found %d server(s) on '%s':\n", len(servers_found), "localhost")
the result is:
API server listening at: 127.0.0.1:54240
2019/07/15 11:08:50 Could not load OPC Automation object with wrapper OPC.Automation.1
2019/07/15 11:08:50 Loaded OPC Automation object with wrapper Graybox.OPC.DAWrapper.1
Found 0 server(s) on 'localhost':
2019/07/15 11:08:50 GetOPCServers call failed.
How to deal with it?
thank you !
The text was updated successfully, but these errors were encountered: