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.

VBScript EasyDAClient event hooking without WScript

More
26 Sep 2022 15:10 #11118 by nknox
Hi,

Thank you for pointing me in the direction of this resource and your explanation. Based on my research of CA Plex, it looks like it only supports hooking it's own physical events. So I believe that the Event Pull Mechanism will be the way to do this. Thanks again!
The following user(s) said Thank You: support

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

More
21 Sep 2022 11:21 #11108 by support
Hello.

How the events are hooked depends on the VBScript host; and unfortunately I do not know CA Plex. If you do not find a way to hook events, there is a workaround using QuickOPC's Event Pull Mechanism:

- opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...#Event%20Pull%20Mechanism.html

Internally there is still an OPC subscription and all works the same. Only the event delivery mechanism is different - instead of an event handler in your code being called, you pull the events from a queue, and process them in a loop.

There are VBScript example for this approach in the documentation as well.

I hope this helps.

Best regards

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

More
20 Sep 2022 20:53 #11106 by nknox
Hello,

I have a customer who is trying to upgrade a deprecated OCX control and is looking at OPC Data Client's COM development capabilities to do so. They are attempting to write a script for software they are using (CA Plex) based on the SubscribeItem example. Since it doesn't include Wscript, we are unsure how to navigate configuring the ItemChanged event hooking as function pointers do not seem to be supported in VBScript outside of GetRef(), which can only connect to DHTML events. Can you think of a way to work around this? Any guidance would be appreciated.

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

Moderators: support
Time to create page: 0.045 seconds