Author Topic: Polling continues even on invisible pages  (Read 1231 times)

Neuromorphism

  • Newbie
  • *
  • Posts: 1
    • View Profile
Polling continues even on invisible pages
« on: May 26, 2014, 11:47:57 PM »
Howdy all.

I'm using AdvancedHMI (v3.61) to implement a 5-page HMI, controlling a single device, over ModbusTCP.

Each page addresses perhaps a dozen modbus locations.

I have a problem with the pages continuing to poll in the background, even when they are invisible. This means that, once all pages are running simultaneously, the request rate becomes too high for the modbus device at the other end to keep up, resulting in errors being displayed on the elements every few seconds.

I've used the code snippet for the VisibleChanged event handler on each form, and the FormChangeButton to initiate swapping between pages.

But if I use Wireshark to watch the network traffic, I can see that modbus requests are still being made for addresses not on the current page.

Any ideas what might be causing this, or will I need to modify things to give me more manual control of when a page is allowed to poll?

Thanks,

Matt.