Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kdcui

Pages: [1]
1
Support Questions / 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.

2
Support Questions / Re: AdvancedHMI Controls and Subscriptions
« on: November 01, 2013, 10:19:20 AM »
Great, thanks again.

I'll have to start playing with the controls more.

3
Support Questions / Re: AdvancedHMI Controls and Subscriptions
« on: October 31, 2013, 05:02:10 PM »
Thanks for the info Archie.

Just as a clarification:
You said the AdvancedHMI controls have all of the necessary code encapsulated for retrieving values.  Did you mean these use subscriptions as their means of retrieving data, or that they can use subscriptions if I choose to enable them with a DataSubscriber?

Thanks again.

4
Support Questions / AdvancedHMI Controls and Subscriptions
« on: October 28, 2013, 04:23:13 PM »
Hi all,

Did some searching and am still a bit confused on a few points.

I'm not exactly sure how to use the Subscription ability.  Is it global or on a per control / plc tag basis?

If I create a Basic Label or Indicator, is it automatically subscribed to, or do I need to enable a subscription?
If I don't use a subscription, do I need to manually program a Read in order for the control to update?

Right now the few programs I have made do not use the AdvancedHMI controls.  Instead I have been manually reading each tag asynchronously, using an event handler to tell what just updated, and moving the new data into a Winform control (button, textbox, label, etc...).

Thanks!

Pages: [1]