Comments (6)
Now it works well. The problem is solved. Thanks for asking. Thread can be closed.
from opc.
Hi! You can compile the code when you set the $GOARCH environment variable to "386". In Powershell on Windows, you enter the following $ENV:GOARCH=386 then it should compile. Note, however, that without the OPCDAAuto.dll you won't be able to use this package. You normally get the DLL with the installation of your OPC server or from the vendor of your OPC server directly and it's either installed on C:\Windows\System32 or C:\Windows\SysWOW64. Hope this answers your questions.
from opc.
You can download the Graybox DA Automation wrapper for free here.
I have updated the code base so that it works with this wrapper as well, just do a go get -u github.com/konimarti/opc
to get the newest version. However, it is important to keep in mind to use the correct architecture as well, i.e. when you use the Graybox Simulation server set the architecture to 32-bit: $GOARCH=386
.
from opc.
Thank you for fast response! Your advice helped me a lot, but I faced with another problem. When I run the program for the first time it returns "exit code 0". When I run the program for the second time it returns nothing and I have to reboot the PC. Any comment will be appreciated.
from opc.
An exit code 0 indicates that the program terminated correctly. I have never experienced the other behavior you have described though. Do you observe the same when you run the code directly from the command line, i.e. in Powershell?
What you can try is to add opc.Debug()
before the opc.NewConnection
call to print out some more package-related information. Also, is the Graybox Simulation server running? You can check this by looking for gb_opcsim.exe
in the task manager.
from opc.
Just wanted to check in and ask if you could solve your issue?
from opc.
Related Issues (20)
- reconnect & read opc data is zero HOT 1
- Question regarding group by different refreshRate HOT 1
- panic: runtime error: invalid memory address or nil pointer dereference HOT 4
- Question regarding program sometimes crashes at readFromOpc HOT 6
- How to deal with concurrent reading of tags HOT 1
- Influxdb Authentication HOT 2
- Could not load OPC Automation object with wrapper OPC.Automation.1 HOT 3
- How config dcomcnfg.exe in win10
- read() to get discribe and datatype info
- Reading OPC data from device HOT 1
- How to confirm param in opc.NewConnection HOT 4
- read item quality value is uncertain
- the return of CreateBrowser items can include datetype?
- something wrong in cgo when I try read tag by "opc-cli.exe read localhost Graybox.Simulator.1 options.sinfreq numeric.sin.float" HOT 3
- tag/{id} api not support slash
- The opc server Matrikon.OPC.Simulation.1 cannot be obtained using opc-cli.exe
- opc-cli.exe扫描不到Matrikon.OPC.Simulation.1
- it's can be build to wasm file?
- Higher versions of Golang will crash HOT 4
- opc.NewConnection error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opc.