Author Topic: High CPU usage ?  (Read 2071 times)

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: High CPU usage ?
« Reply #15 on: March 04, 2017, 08:43:52 AM »
Yes Archie it is only 1 element in e.Values, when DataRecived event fires.
This has been confirmed as a bug in the driver. A patch has been made to fix this issue. You can download the  V399v Patch 1 from here:

https://sourceforge.net/projects/advancedhmi/files/advancedhmi/3.5/Patches

thug_

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: High CPU usage ?
« Reply #16 on: March 04, 2017, 11:58:07 AM »
Thanks Archie, I suppose I will just replace MfgControl.AdvancedHMI.Drivers.dll in my project with this from the patch ?

Unfortunately I won't be able to test it before Wednesday next week, so I will get back with results next week.

Cheers.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: High CPU usage ?
« Reply #17 on: March 04, 2017, 12:07:52 PM »
Thanks Archie, I suppose I will just replace MfgControl.AdvancedHMI.Drivers.dll in my project with this from the patch ?
Yes, you replace the file found in AdvancedHMIDrivers\support

thug_

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: High CPU usage ?
« Reply #18 on: March 10, 2017, 09:20:26 AM »
Thanks Archie it is working, my CPU usage is now around 7-12%, is that too high by your opinion ?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: High CPU usage ?
« Reply #19 on: March 10, 2017, 09:25:06 AM »
Thanks Archie it is working, my CPU usage is now around 7-12%, is that too high by your opinion ?
It really depends on your system. But from my experience it is very high. I have run applications with dozens of items on a page with a PollRateOverride of 0 (giving a 6ms refresh) and the CPU still never exceeded 5% on moderate systems.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: High CPU usage ?
« Reply #20 on: March 10, 2017, 09:31:08 AM »
You may want to do a Wireshark capture to see what is really happening on the communications which may reveal issues in your code.

thug_

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: High CPU usage ?
« Reply #21 on: March 10, 2017, 08:30:32 PM »
Ok Archie thanks for advice I will try wireshark as well sometimes during next week and I will post results.

Thanks so much for your support.