Author Topic: DataSubscriber PollRate (3.61)  (Read 1759 times)

kdcui

  • Newbie
  • *
  • Posts: 4
    • View Profile
DataSubscriber PollRate (3.61)
« on: January 16, 2014, 12:10:15 PM »
This question is mainly for Archie but someone else might be able to answer.

In the DataSubscriber component in the AdvancedHMI project, there is a PollRate property.

However nothing seems to be done with this (Aside from a Get / Set).  When I look through the DataSubscriber code, under the SubscribeTo function (line 315), I see:

Code: [Select]
Dim NotificationID As Integer = m_CommComponent.Subscribe(PLCAddress, 1, 250, callBack)
So the DataSubscriber appears to be forcing a hardcoded subscription rate of 250ms, while the PollRate property of the DataSubscriber is being unused.

Was there is a reason for this? 
It should be simple just to modify to component to use the PollRate property, but I  wasn't sure if this omission was intentional or if the object is supposed to be using it.

Kris

EDIT:

Upon further inspection is appears all the Controls seems to update at the 250ms rate as well.
« Last Edit: January 16, 2014, 12:28:52 PM by kdcui »