Author Topic: Error stops hmi execution  (Read 1160 times)

Dr pepper

  • Newbie
  • *
  • Posts: 5
    • View Profile
Error stops hmi execution
« on: August 02, 2021, 06:50:41 AM »
I have a prototype hmi (laptop for now) connected to a chiller via modbusRTU.
Sometimes the chiller will be powered down while the Hmi si still powered up.
When this happens I get an error on the hmi screen 'convert from string 'setpoint' to 'double' is invalid.
I get it, the reply from the modbus (corrupted or none) is not compatible with VB.
However I dont want the hmi to give the option to quit, the operators will foul things up.
Can I handle the error or stop the do you want to quit message?

Noe

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Re: Error stops hmi execution
« Reply #1 on: August 16, 2021, 09:39:54 AM »
Google for VB.net Try Catch, that is what you need to learn how to use.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Error stops hmi execution
« Reply #2 on: September 02, 2021, 04:42:05 PM »
Did you add your own code or this happening from inside the driver?