Erroneous Default Values Upon Mobile Launch

On several of my projects, when the mobile client is opened, some of the components used to write values to a MODBUS device are automatically set to zero. Is there a way to prevent any components from writing a default value on startup?

After some fiddling I found the problem came from the “Property Change” event handler. After changing the process to a single button that sends all write requests at once, No erroneous values have occurred. So I’m still not sure what the original problem was, but everything is functioning as intended.

PropertyChange events are not like other events – all properties for the component in question send their changes to the same handler. So the handler must check the propertyName to know what action to take, if any. And if you mess up the indentation, or forget to check at all, boom, all hell breaks loose.