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.

PullMultipleItemChanges example

More
07 Jul 2021 10:26 #9925 by lamar
oh, no. B)
The two topics are only loosely related to each other...
I do handle the events with Pulling, that I have troubles with non-existent items.
(this is a third topic, just for a bit more confusion, sorry)

This topic is answered. Thank you.
The following user(s) said Thank You: support

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

More
07 Jul 2021 10:18 #9924 by support
From your other post, my understanding was that you want to use subscriptions to make sure the client remains connected to the server. If that is the only reason in your project to use subscriptions, then you do not have any need to actually see and process the events generated by the subscriptions. What would you do with the data in them, anyway?

Just calling SubscribeXXXX will do what you want (and then UnsubscribeXXXX to revert).

Best regards

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

More
07 Jul 2021 10:15 #9923 by lamar

BTW, if you are not using the subscriptions for anything else, why bother trying to pull the event? Well, maybe because of the memory consumption and eventual event queue overflow; but there won't be many events, and the queue size is limited, so it won't eat all available memory.


Unfortunately I do not understand why you write this.

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

More
07 Jul 2021 10:12 #9921 by support
Good catch!

However, the sentence in the manual refers to a possible "future" that may never happen. It is not in any plans right now.

It had to do with a concept that we had where the event source (the OPC client piece) would be separated by some relatively slow connection (such as network) from where the events are consumed by the QuickOPC API (your program). Basically, QuickOPC split into two parts and doing "remoting". Even if it gets implemented (which is unlikely) at some point, it will only be for specific use cases - and most likely *not* yours.

Feel free to pick whichever method you prefer, but because the code comes out a bit simpler and we do have an example for PullItemChanged, that's what I would do.

Best regards

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

More
07 Jul 2021 10:06 #9919 by lamar
I do so, however user manual contradicts:

Although currently is no significant performance difference between the two methods, it is
recommended that your code uses the PullMultipleXXXX methods, because it may bring performance benefits in the
future.

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

More
07 Jul 2021 10:06 #9918 by support
BTW, if you are not using the subscriptions for anything else, why bother trying to pull the event? Well, maybe because of the memory consumption and eventual event queue overflow; but there won't be many events, and the queue size is limited, so it won't eat all available memory.

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

More
07 Jul 2021 09:49 #9914 by support
Hello.

There is no such example - and there is a reason for it. It is recommended to use PullItemChanged instead, because the resulting code will be simpler, and there is no performance hit.

For PullItemChanged, the examples are here: opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...Access%20-%20Event%20pull.html .

Best regards

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

More
07 Jul 2021 08:47 - 07 Jul 2021 08:47 #9911 by lamar
Hi, I found no example on "PullMultipleItemChanges" Could you please provide it, especially in Delphi. Thanks.
Last edit: 07 Jul 2021 08:47 by lamar.

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

Moderators: support
Time to create page: 0.065 seconds