17:48, EET
December 6, 2018
15:07, EET
Moderators
November 28, 2018
Hi Dipankar,
Nice to hear that you found use for Aggregate Filters. Do you need an example for the Client or the Server side implementation?
Unfortunately, our Server side doesn’t support aggregate filters at the moment so that we cannot provide. However, the Client side does but of course requires a Server that supports them too.
We aim to add Server support and improve the Aggregate Filter situation in future releases
12:58, EET
December 6, 2018
16:51, EET
Moderators
November 28, 2018
Most importantly, you define the used Aggregate Function with class “Identifiers”. If you need average calculation, for example, you can create an AggregateFilter for a MonitoredDataItem as follows:
AggregateConfiguration configuration = new AggregateConfiguration();
AggregateFilter filter = new AggregateFilter(DateTime.currentTime(), Identifiers.AggregateFunction_Average, new Double(10000), configuration);
dataItem.setAggregateFilter(filter);
This sample will start calculating average values from now on every ten seconds. Again, I remind you that AggregateFilters in Subscription are rarely supported by OPC UA Servers. In this case you may need to use a regular Subscription and do the calculation in your own code.
If you, however, want to use an AggregateFilter for HistoryRead you need to use the historyReadProcessed function of UaClient:
aggregateConfiguration, indexRange, TimestampsToReturn.Source);
19:36, EET
December 6, 2018
7:10, EET
February 1, 2019
17:22, EEST
August 3, 2022
15:40, EEST
April 3, 2012
(adding a note here that the above aggregate filter question is being handled at https://forum.prosysopc.com/forum/opc-ua-java-sdk/aggregatefilters-in-subscription/ )
Most Users Ever Online: 518
Currently Online:
23 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
hbrackel: 135
pramanj: 86
Francesco Zambon: 81
rocket science: 77
ibrahim: 75
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
TimK: 41
Member Stats:
Guest Posters: 0
Members: 678
Moderators: 16
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1467
Posts: 6259
Newest Members:
DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule, rashadbrownrigg, christi10l, ahamad1, Flores FrederickModerators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5
Administrators: admin: 1