Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

Subscribe to events

More
20 Feb 2024 17:47 #12575 by support
Replied by support on topic Subscribe to events
Examples for OPC client and subscriber development in Python are now on GitHub: github.com/OPCLabs/Examples-QuickOPC-Python .

Please Log in or Create an account to join the conversation.

More
21 Nov 2023 13:27 #12389 by support
Replied by support on topic Subscribe to events
Note: QuickOPC now supports Python in much better way, cleaner syntax, and public packages (pypi.org/project/opclabs-quickopc/) on Python Package Index . See What's new in QuickOPC 2023.2 for more information. And, over 270 examples are available in the User's Guide!

Please Log in or Create an account to join the conversation.

More
19 May 2021 11:43 #9687 by mozesa
Replied by mozesa on topic Subscribe to events
EventFilter(SelectClauses:[SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:ConditionClassId)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:ConditionClassName)]

In the event filters the
TypeDefinitionId:i=0
, it should be
TypeDefinitionId:i=2041
(BaseEventType).


Best Regards!
The following user(s) said Thank You: support

Please Log in or Create an account to join the conversation.

More
19 May 2021 10:11 #9686 by support
Replied by support on topic Subscribe to events
Thanks for letting me know. If you can describe in one sentence what the solution to the problem was, please post it here, it may help other users.

Best regards

Please Log in or Create an account to join the conversation.

More
19 May 2021 09:59 #9685 by mozesa
Replied by mozesa on topic Subscribe to events
Dear OPCLabs,

I could figure out the problem, so don't spend your time with it. :)


Thanks anyway.

Please Log in or Create an account to join the conversation.

More
19 May 2021 09:19 - 19 May 2021 09:28 #9684 by mozesa
Subscribe to events was created by mozesa
Dear OPCLabs,

I would like to ask for your kind help.

This snippet works fine, I got the events right.
def subscribe_to_events():
    client = EasyUAClient()
    client.EventNotification += print
 
    IEasyUAClientExtension.SubscribeEvent(
        client,
        UAEndpointDescriptor("opc.tcp://L042IEAMO2:4840"),
        UANodeDescriptor(AddressSpace.Standard.UAObjectIds.Server),
        1_000,
    )
    Threading.Thread.Sleep(30 * 1000)
{Isolated=False} [] Success
{Isolated=False} [] Success; Refresh; RefreshInitiated
{Isolated=False} [] Success; Refresh; RefreshComplete
{Isolated=False} [] Success; (10 field results) [Server] 500! "" @19/05/2021 09:14:58
{Isolated=False} [] Success; (10 field results) [Application] 1000! "TRUE" @19/05/2021 09:15:09
{Isolated=False} [] Success; (10 field results) [Application] 1000! "TRUE" @19/05/2021 09:15:09
{Isolated=False} [] Success; (10 field results) [Application] 1000! "TRUE" @19/05/2021 09:15:09


There is a Python project in which I have to use another OPCUA implementation (FreeOPCUA) - the problem that I cannot get any events using that package.

I have the following event filter - can you see anything which prevents me to get the alerts?

Would it be possible to see the event filter that QuickOPC generates?

I really appreciate your help in this awkward situation. :(

Warning: Spoiler!
Last edit: 19 May 2021 09:28 by mozesa.

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.084 seconds