Avatar
Please consider registering
guest
sp_LogInOut Log Insp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSSsp_TopicIcon
OPCClient, Subscription, wildcard accepted?
May 5, 2014
9:08, EEST
Avatar
lvboque
Member
Members
Forum Posts: 8
Member Since:
March 20, 2014
sp_UserOfflineSmall Offline

Hello,

I would like to know if it is possible to add a Subscription using wildcard …
Example: [MY_PLC]Global.* in order to get callback for any variables matching the pre-defined ‘pattern’

Thanks a lot,

Laurent

May 6, 2014
7:06, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1044
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Not directly. But, the Query service is exactly for requesting a set of nodes that match this kind of criteria. You could then subscribe to all of these. Query requires support from the server, though. We have not made it easily available in the SDK, yet, but it is possible to use it, if you need.

July 24, 2014
18:35, EEST
Avatar
OndrejBlazek
Member
Members
Forum Posts: 19
Member Since:
July 22, 2014
sp_UserOfflineSmall Offline

If you don’t have the necessary server support then, assuming you aren’t going to be changing the subscription frequently, just recurse through the address space and subscribe to the nodes that match the pattern.

Obviously this is not a good solution if you are going to be changing the pattern frequently or if the address space is overly large (since it will take time to explore the address space for matches).

I posted an example of how you can explore the address space recursively in the following post…

https://forum.prosysopc.com/for…..ua-server/

Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 43
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 100
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 773
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1558
Posts: 6567
Newest Members:
aracelyhaley4, raphaelschonell, Ashmag, kathyreimann56, brittanylemos, dorthycundiff76, PromotionToold, CHHinrichs, rodricklienhop, jose_Wanderlei
Moderators: Jouni Aro: 1039, Pyry: 1, Petri: 1, Bjarne Boström: 1054, Jimmy Ni: 26, Matti Siponen: 359, Lusetti: 0
Administrators: admin: 1