67
« on: January 31, 2015, 12:21:34 AM »
Hi Archie,I'm having some trouble with my project and dont know if its my design or possibly the driver. I am using ModbusTCP. I have several devices and each has its own form such that device1 is form2, device2 is form3 and so on. I use the main (form1) to monitor all devices and this polls all the time regardless of visibility set to 500ms. I do this to monitor for events on devices that are not being viewed. The trouble I have is sometimes when I go from the mainform to a device form, I get data that does not update. It appears that the driver doesnt switch to the opened form and update the data everytime. Sometimes it does though, there's no predicability. Question: Is this a common design that the driver is known to work??
Now to the subject of this post. My thought was to possibly create two applications where I have a mainform in app1 that monitors all devices but does not have any graphics. I would set this to minimize(not sizable) App2 will host the devices and graphics and only poll when viewed. But I need to get data from App1 to App2 for say alarm ack and to set a flashing indicator. How do I pass data between the apps? Tell me am I out of my mind or is this a reasonable approach. If its not then I will need to rethink my design. Thanks