OpenOPC | This is a clone of http : //openopc.sourceforge.net | Database library
kandi X-RAY | OpenOPC Summary
kandi X-RAY | OpenOPC Summary
This is a clone of with modifications to make it use distutils.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Check if a task exists
- Return a list of all the available modules
- Returns the free memory free memory in bytes
- Return information about the memory
- Return the free disk free in bytes
- Return the free disk space
- Return the amount of memory for the given image
- Return the percentage of free memory
- Returns the total number of bytes in bytes
OpenOPC Key Features
OpenOPC Examples and Code Snippets
Community Discussions
Trending Discussions on OpenOPC
QUESTION
I'm trying to communicate with an OPC DA server and need to write in a tag which is in an array format. We can connect with a simulation server, read tags (int, real, array) and write tags (int, real, str). The problem comes when we need to write in an array tag. The developper of the OpenOPC library (Barry Barnreiter) recommand to use a VARIANT variable because OPC "expect to see a Windows VARIANT structure when writing complex objects such as arrays".
- I did install Pywin32 (build 217) as suggested here.
- I tried to send a simple integer instead of an array in a VARIANT structure.
Here's the code:
...ANSWER
Answered 2021-Dec-05 at 19:56You need to upgrade the python
to 3.9
and Pywin32
to Build 302
. In addition, you need to install the OpenOPC-Python3x 1.3.1
.
QUESTION
I am using the OpenOPC library to read data from an OPC Server, I am using 'Matrikon OPC Simulation Server', when I try to read the data it sends me the following error:
...ANSWER
Answered 2020-Oct-28 at 07:20I solved this issue by adding sync=True
when calling opc.read()
CODE:
QUESTION
How do I convert OPC DA protocol in to Rest API calls? I was looking at the OpenOPC library https://github.com/mkwiatkowski/openopc. Will I have to write the Rest API part of the architecture myself? Are there libraries that already have this conversion?
...ANSWER
Answered 2020-Sep-08 at 09:06There's the library https://github.com/matzpersson/opc-rest-api From the description of the project:
Python Rest API using OpenOPC to provide direct API access for any OS platform. This proxy has to be installed on a Windows box with Python and OpenOPC installed to provide a API Gateway to other platforms.
The description is here http://headstation.com/archives/using-opc-rest-api/ From that it looks like you don't need to write the Rest API part yourself.
The library has been created by https://stackoverflow.com/users/6833456/matz see question OpenOPC Gateway Running use Client in OsX or Linux
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install OpenOPC
You can use OpenOPC like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page