AdvancedHMI Software

General Category => Support Questions => Topic started by: Dr pepper on August 02, 2021, 06:50:41 AM

Title: Error stops hmi execution
Post by: Dr pepper 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?
Title: Re: Error stops hmi execution
Post by: Noe on August 16, 2021, 09:39:54 AM
Google for VB.net Try Catch, that is what you need to learn how to use.
Title: Re: Error stops hmi execution
Post by: Archie on September 02, 2021, 04:42:05 PM
Did you add your own code or this happening from inside the driver?