opc | OPC DA client in Golang for monitoring | Monitoring library
kandi X-RAY | opc Summary
kandi X-RAY | opc Summary
Read and write process and automation data in Go from an OPC server for monitoring and data analysis purposes (OPC DA protocol).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of opc
opc Key Features
opc Examples and Code Snippets
Community Discussions
Trending Discussions on opc
QUESTION
I am planning to use Oracle NoSQL Cloud Service on OCI using the OCI Python SDK. I did some tests using the API calls and I would like to do the same query but using the Python SDK.
How can I use prepared statement instead of regular statement (see below) and what values I need to set
...ANSWER
Answered 2021-Jun-09 at 10:48the problem is with the "statement" attribute of QueryDetails.
- use the result of the
nosqlClient.prepare_statement
(take care with the comma at the end in your script) - call oci.nosql.models.QueryDetails with the following parameters
statement=prepare_statement_response.data.statement, is_prepared=True and variables
QUESTION
I have the following error when trying to do a query using the API calls
...ANSWER
Answered 2021-Jun-07 at 09:12Variables must be the same as in DECLARE statement including the $ and same types.
In you case, the good name for the variable is $id and not id
"variables" : {"$id":10}
QUESTION
The company I work for distributes document assembly software that uses the python-docx library. The software runs a function on every generated document that opens the document and does a simple search and replace for characters that weren't escaped properly (namely "& amp;" -> "&").
FYI The actual document assembly uses python-docx-template. However, the error happens after the document has already been assembled and the error is triggered by the search-and-replace function, which only uses python-docx.
Recently, we've had a few cases where documents are failing to generate on client deployments. They're throwing an error on this line where the document object is instantiated:
...ANSWER
Answered 2021-Jan-29 at 00:00Both of these errors indicate that the specified file is not a valid zip archive. So I expect something is going wrong with the writing of the file (by the step prior to find-and-replace).
I would start by stopping the process after writing the file and seeing if the file is present on the filesystem and whether it can be opened manually using Word. This should bisect the problem and narrow it down to a writing problem or a reading problem.
It could be possible that an error is raised on the write and it's not being caught or whatever, leaving an empty or un-flushed (open) file. So having a way to monitor that step is probably a good idea. Writing to a log comes to mind as how you might manage that.
Inspecting the particular cases where there is a failure and managing to reproduce it are going to be critically important. If that's not possible, it's going to be a tough road of guesswork and disappointment on both sides.
QUESTION
When I try to push a custom metric to the Oracle Cloud Monitoring service using the Oracle Cloud CLI, I receive the following error:
...ANSWER
Answered 2021-Jun-02 at 15:37looks like some authorization issue. Please cross check if the instance principle has all the required permission assigned. Please review this document [Publishing Custom Metrics][1] and [Overview of Monitoring][2]
Thanks Anupam [1]: https://docs.oracle.com/en-us/iaas/Content/Monitoring/Tasks/publishingcustommetrics.htm [2]: https://docs.oracle.com/en-us/iaas/Content/Monitoring/Concepts/monitoringoverview.htm
QUESTION
Below is an OPC Client written in VBA. It is using the OPC Foundation DA libraries. I am able to get the current value of the item (I can read it in locals window), but it is not assigning the value to myValue = theItem.Value
Hovering over theItem.Value
during a break shows the value as well.
Any thoughts?
...ANSWER
Answered 2021-May-26 at 15:23After review/trouble shooting.
The OPCItem object provides methods to read the current value of the item in the server and write a new value to the item. I have included these facilities into this dialog. The read method provided on an OPCItem object performs a synchronous read from the server and can be configured to read either from cache or from the device. To read from cache both the group and item should be active, but synchronous read operations directly from the device do not depend on the active state of either the group or item.
Adding the following code allowed me to assign to variable.
QUESTION
Is OpenJDK supported ? In the release notes, it is indicated that Oracle NoSQL database suppport open JDK but when I try to install, I have the following error :
...ANSWER
Answered 2021-May-26 at 10:21I had a similar issue, I realized that it was working with the open JDK downloaded from https://jdk.java.net/archive/
I opened a ticket and Oracle is working to solve this. It was happening when installing Red Hat JDK.
QUESTION
I have a server running in Java using Eclipse (Here the full code):
...ANSWER
Answered 2021-May-23 at 23:50According to RFC 1918, addresses in the 192.168.0.0-192.168.255.255 range are private. Such addresses can be used internally by any network so they're often used inside an organization. They cannot be used on the Internet since they aren't unique. Why my ip address starts with 192.?
I think that your local network is somehow preventing that connection. But without further details nobody can actually tell as far I know.
If you are running everything on the same computer you may want to take a look at "loopback" address. Usually 127.0.0.1 , that should loop back to your machine.
If you want to run a full server you may need to dig more into networking and want to understand how networks function.
QUESTION
I have done some research on OPC UA and noticed that all sensor data on the Prosys sample server is stored in subfolders of the Object (i=85) folder. On the OPC UA server of a machine I have seen that the sensor data like the measured value, the unit etc. can ONLY be accessed via the Types (i=86) folder.
The path here would be i=84 -> i=86 -> i=88 -> i=58... There is really no other path through which you can reach these nodes otherwise.
I have never seen such an implementation.Is this normal that such data is also stored in the Types folder or are there any guidlines that forbid this? The machine is also a bit older.
Thanks for your help
UPDATE: the further path of i=58 looks like this, where --(i=45)-> symbolizes the Referencetype from the previous to the following node (in this case i=45, HasSybtype) and the word in the parentheses next to the NodeId is the NodeClass.
i=58 --(i=45)-> ns=2;i=1(ObjectType) --(i=35)-> ns=2;i=2(Object)
--(i=35)-> ns=2;i=3(Object) --(i=47)-> ns=2;s=@setPressure(Variable) --(i=46)-> ns=2;i=5(Variable)
ns=2;s=@setPressure contains the value 250.0 and ns=2;i=5 an Engineering unit
...ANSWER
Answered 2021-May-05 at 13:40This is not normal. It sounds like a bad implementation done by somebody who didn’t know any better.
Depending on the reference types they used to build this structure you could argue it is forbidden. DataType Nodes should only be the source of HasProperty, HasSubtype, and HasEncoding references.
edit: The path you mention is Root -> Types -> ObjectTypes -> BaseObjectType. Are you sure the Nodes you're finding under here are Variable Nodes with values or are you just seeing additional types defined by this server?
QUESTION
I want to extract the hyperlink from pptx, I know how to do it in word, but anyone knows how to extract it from pptx?
For example, I have a text below in pptx and I want to get the url https://stackoverflow.com/ :
Hello, stackoverflow
I tried to write the Python code to get the text:
...ANSWER
Answered 2021-Apr-22 at 15:35I can't help with the python part but here's an example of how to extract the hyperlink URLs themselves, rather than the text that the links are applied to, which is what think you're after.
Each slide in PPT has a Hyperlinks collection that contains all of the hyperlinks on the slide. Each hyperlink has an .Address and .SubAddress property. In the case of a URL like https://www.someplace.com#placeholder, the .Address would be https://www.someplace.com and the .SubAddress would be placeholder, for example.
QUESTION
I'm using GOPCUA v0.2.0-rc2 library to connect to an OPC UA server. Everything works fine if I don't use any filter in the monitoring items. But I want to use datachange filter to be able to receive values only when they change by some percentage or absolute value. Following is the complete code.
...ANSWER
Answered 2021-Apr-15 at 12:32It looks to me like you're trying to build the ExtensionObject that contains your filter structure using the NodeId of the Node you're creating a MonitoredItem for instead of the NodeId that identifies the DataTypeEncoding of the filter structure you're using.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install opc
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