How to implement datachange notification when Quality is changed?|OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
How to implement datachange notification when Quality is changed?
Avatar
Antoni Gnanaraj
Member
Members
Forum Posts: 5
Member Since:
04/23/2016
sp_UserOfflineSmall Offline
1
04/24/2016 - 05:42
sp_Permalink sp_Print sp_EditHistory

Hi,

I am using OPC.Ua.core and OPC.Ua.Client dlls in my OPC UA Client.

I have implemented subscription ,  based on Getdatachanges() method as given code snippet.

When Quality alone is Bad (value remains same ), I am not reviving the notification from Getdatachanges() method.

Can you please help me how can I get datachange event notification when Quality alone changes?

private void session_Notification(Session session, NotificationEventArgs e)
      {
         //now to iterate thru each monitored item change event within the received values:
         foreach (MonitoredItemNotification currentItemNotification in e.NotificationMessage.GetDataChanges(true))
         {}

}

 

Thanks

AntoniConfused

Avatar
Guest
Guests
2
04/24/2016 - 23:31
sp_Permalink sp_Print

Hello Antoni,

a change in quality shall always cause a data change of a monitored item if publishing and sampling are enabled.

To identify the source of the error you should first check whether it is a server problem by using some other client or the compliance test tool (assuming you are an OPC member). You can check here for free Clients (http://www.opcconnect.com/uafr.....hp#freecli). Try for instance UAExpert.

If you are sure that the server sends the notification you will have to track the problem in your client. Note that the OPC Foundation provides the complete sources for the mentioned components to the public at https://github.com/OPCFoundation/UA-.NET. I.e. you can build and debug everything.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 22
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1347
Posts: 4567