Author Topic: Preloading Components  (Read 2114 times)

andrew_pj

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Preloading Components
« on: November 09, 2015, 05:16:35 AM »
Hi,

Is there any preloading technique at startup that includes all pages in one Application?
I found out when using OpcDaCom, the data is quite slow to be retrieved at the first time opening page.
So, I am thinking to put this loading time in the beginning of Application instead of when opening the particular page.
Thank you.

Best regards,
Andrew

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Preloading Components
« Reply #1 on: November 09, 2015, 05:54:19 AM »
To my knowledge there is no way to load a form without showing it.

The reason the startup is slow is because upon the initial subscription, the OPC driver will perform a synchronous read to get the initial value. The read holds up the UI until they are complete.

andrew_pj

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Re: Preloading Components
« Reply #2 on: November 10, 2015, 07:11:51 PM »
To my knowledge there is no way to load a form without showing it.

The reason the startup is slow is because upon the initial subscription, the OPC driver will perform a synchronous read to get the initial value. The read holds up the UI until they are complete.

Hi Archie,

Is there any features of showing loading bar for this purpose?
To let user know it is still loading.
Thank you.

Best regards,
Andrew

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Preloading Components
« Reply #3 on: November 10, 2015, 07:19:57 PM »
Unfortunately not. What do you have your PollRateOverride set to? Decreasing that number will make the subscription process go faster.

andrew_pj

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Re: Preloading Components
« Reply #4 on: November 11, 2015, 08:08:17 PM »
Unfortunately not. What do you have your PollRateOverride set to? Decreasing that number will make the subscription process go faster.

Currently the PollRateOverride is 500 (default value).
In that case, I will just create a dummy loading text to let user knows it's loading.

Best regards,
Andrew